Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/41/ea9c85af3a78c714e4471cecbe54c6/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d2/bb355e413d2232a8a2cf6e3be5fed3/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/41/ea9c85af3a78c714e4471cecbe54c6/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d2/bb355e413d2232a8a2cf6e3be5fed3/.command.run
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa.fai
Downloading: s3://natera-platform-sandbox/pipeline-resources/beds/twist/Twist_rna_exome_AND_fusion_hg38.bed
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir aih-tih-sc-ea2fad-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam -beds Twist_rna_exome_AND_fusion_hg38.bed -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz -contamination_bed dbsnp_hg38_contam_sites.bed -output_folder aih-tih-sc-ea2fad-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/full_bed.bed
saturation_plot -bams aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam -region chr20 -output aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
/opt/conda/lib/python3.9/site-packages/pyranges/__init__.py:8: UserWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html. The pkg_resources package is slated for removal as early as 2025-11-30. Refrain from using this package or pin to Setuptools<81.
import pkg_resources
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
64013it [00:00, 640036.00it/s]
131290it [00:00, 659241.50it/s]
200762it [00:00, 675407.76it/s]
287453it [00:00, 750966.54it/s]
362550it [00:00, 747235.77it/s]
437277it [00:00, 713942.71it/s]
508930it [00:00, 695937.94it/s]
578738it [00:00, 691350.00it/s]
648008it [00:00, 691146.64it/s]
717215it [00:01, 691253.76it/s]
786404it [00:01, 685748.39it/s]
855025it [00:01, 683624.62it/s]
923417it [00:01, 682647.45it/s]
991744it [00:01, 682784.47it/s]
1060037it [00:01, 679387.66it/s]
1127987it [00:01, 677211.39it/s]
1195716it [00:01, 675339.07it/s]
1263998it [00:01, 677439.21it/s]
1333526it [00:01, 682657.09it/s]
1413607it [00:02, 717956.84it/s]
1490941it [00:02, 734501.65it/s]
1574240it [00:02, 763968.39it/s]
1656979it [00:02, 782950.78it/s]
1735290it [00:02, 778303.82it/s]
1813138it [00:02, 750676.09it/s]
1891465it [00:02, 760146.89it/s]
1975177it [00:02, 782747.15it/s]
2057823it [00:02, 795564.99it/s]
2148362it [00:02, 828156.49it/s]
2231307it [00:03, 793166.32it/s]
2327236it [00:03, 841225.51it/s]
2424310it [00:03, 879057.46it/s]
2521244it [00:03, 905638.94it/s]
2613555it [00:03, 910780.73it/s]
2704873it [00:03, 876152.93it/s]
2792919it [00:03, 851358.51it/s]
2878445it [00:03, 810532.29it/s]
2960048it [00:03, 796249.20it/s]
3049860it [00:04, 824932.88it/s]
3143383it [00:04, 856577.77it/s]
3229487it [00:04, 833995.53it/s]
3313276it [00:04, 771358.48it/s]
3391455it [00:04, 738167.54it/s]
3466098it [00:04, 709127.06it/s]
3537622it [00:04, 691944.10it/s]
3620889it [00:04, 730514.19it/s]
3708974it [00:04, 772772.73it/s]
3794818it [00:04, 797321.76it/s]
3893240it [00:05, 851610.35it/s]
3994216it [00:05, 897970.77it/s]
4084541it [00:05, 897391.29it/s]
4175970it [00:05, 902374.72it/s]
4269321it [00:05, 911608.47it/s]
4362067it [00:05, 916306.38it/s]
4461915it [00:05, 940823.70it/s]
4556105it [00:05, 892057.79it/s]
4645904it [00:05, 877813.58it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
4734991it [00:06, 881549.31it/s]
4832215it [00:06, 907950.25it/s]
4923304it [00:06, 855972.92it/s]
5009651it [00:06, 843677.67it/s]
5094525it [00:06, 834565.97it/s]
5178316it [00:06, 789616.83it/s]
5260634it [00:06, 798959.89it/s]
5347486it [00:06, 818691.02it/s]
5429797it [00:06, 815441.56it/s]
5526383it [00:06, 859139.09it/s]
5619938it [00:07, 881560.63it/s]
5708380it [00:07, 833634.43it/s]
5806046it [00:07, 874393.31it/s]
5897084it [00:07, 884785.81it/s]
5992006it [00:07, 903605.97it/s]
6087355it [00:07, 918279.29it/s]
6181819it [00:07, 926063.81it/s]
6274658it [00:07, 921601.51it/s]
6373890it [00:07, 942547.18it/s]
6473088it [00:07, 957237.23it/s]
6575809it [00:08, 978099.06it/s]
6673703it [00:08, 967463.34it/s]
6770532it [00:08, 934254.83it/s]
6864235it [00:08, 919768.19it/s]
6956416it [00:08, 906512.61it/s]
7047527it [00:08, 907810.38it/s]
7139069it [00:08, 910012.15it/s]
7230151it [00:08, 888969.42it/s]
7319433it [00:08, 890066.05it/s]
7408536it [00:09, 870532.46it/s]
7495718it [00:09, 816402.43it/s]
7578021it [00:09, 776530.34it/s]
7656354it [00:09, 752568.10it/s]
7732083it [00:09, 740110.65it/s]
7809771it [00:09, 750342.46it/s]
7910502it [00:09, 823503.10it/s]
8007972it [00:09, 867196.72it/s]
8095262it [00:09, 760474.81it/s]
8178696it [00:10, 780218.91it/s]
8274926it [00:10, 830513.09it/s]
8376395it [00:10, 882649.73it/s]
8470181it [00:10, 898471.35it/s]
8561238it [00:10, 865259.00it/s]
8649434it [00:10, 869931.28it/s]
8741458it [00:10, 884376.16it/s]
8833533it [00:10, 894953.63it/s]
8923465it [00:10, 854859.89it/s]
9009592it [00:10, 841425.24it/s]
9100562it [00:11, 860987.33it/s]
9176044it [00:11, 821496.44it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth.gz > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth_hist.tsv
cat aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md -output aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth.png
[W::hts_idx_load3] The index file is older than the data file: Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
seqtool read_qc -bed Twist_rna_exome_AND_fusion_hg38.bed -n_threads 1 -bam_threads 2 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/read_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool reads_per_target -bed Twist_rna_exome_AND_fusion_hg38.bed -threads 1 -bam_threads 2 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.depth.gz> aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/depth_stats.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool gc_bias -reference ref_genome.fa -bed Twist_rna_exome_AND_fusion_hg38.bed -bin_size 0.05 -threads 1 -bam_threads 2 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md.bai
cat aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1.md -output aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-ea2fad-R1_B23WHYVLT4_1/aih-tih-sc-ea2fad-R1_B23WHYVLT4_1_full_basic_stats.tsv