Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/aa/a3bc88a2d02e81937927644d775407/.command.sh
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.dict
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/4b/a2837ccdc1dfe8741935a5254afa44/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
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/aa/a3bc88a2d02e81937927644d775407/.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-rnd-pltf-dev-nextflow-scratch-01/work/4b/a2837ccdc1dfe8741935a5254afa44/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bam
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-150e73-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s]
117342it [00:00, 1173289.64it/s]
238728it [00:00, 1197026.56it/s]
363370it [00:00, 1219540.81it/s]
487220it [00:00, 1226996.76it/s]
612231it [00:00, 1235190.27it/s]
735988it [00:00, 1235970.63it/s]
859586it [00:00, 1229889.24it/s]
982581it [00:00, 1210443.34it/s]
1105680it [00:00, 1216756.57it/s]
1231817it [00:01, 1230375.10it/s]
1356365it [00:01, 1234917.55it/s]
1479893it [00:01, 1214433.23it/s]
1603149it [00:01, 1219817.42it/s]
1726653it [00:01, 1224339.99it/s]
1853378it [00:01, 1237157.33it/s]
1977142it [00:01, 1227405.09it/s]
2103738it [00:01, 1238873.88it/s]
2227669it [00:01, 1228493.68it/s]
2350563it [00:01, 1225332.54it/s]
2473126it [00:02, 1207437.08it/s]
2593935it [00:02, 1193270.87it/s]
2717772it [00:02, 1206515.11it/s]
2838494it [00:02, 1194504.88it/s]
2958005it [00:02, 1192390.35it/s]
3078680it [00:02, 1196557.39it/s]
3205113it [00:02, 1216677.92it/s]
3331095it [00:02, 1229511.73it/s]
3454085it [00:02, 1228826.64it/s]
3577822it [00:02, 1231348.97it/s]
3702230it [00:03, 1235130.51it/s]
3827172it [00:03, 1239258.55it/s]
3952950it [00:03, 1244770.38it/s]
4077436it [00:03, 1241680.69it/s]
4201612it [00:03, 1241524.95it/s]
4325770it [00:03, 1235297.56it/s]
4449310it [00:03, 1230677.64it/s]
4575391it [00:03, 1239637.98it/s]
4700806it [00:03, 1243947.00it/s]
4825211it [00:03, 1242714.42it/s]
4949657it [00:04, 1243100.44it/s]
5074348it [00:04, 1244217.36it/s]
5198774it [00:04, 1241842.80it/s]
5322962it [00:04, 1238825.71it/s]
5447453it [00:04, 1240622.24it/s]
5571519it [00:04, 1231729.54it/s]
5694707it [00:04, 1228563.46it/s]
5818854it [00:04, 1232382.55it/s]
5942102it [00:04, 1224999.39it/s]
6064616it [00:04, 1222554.93it/s]
6186881it [00:05, 1216322.34it/s]
6309318it [00:05, 1218694.65it/s]
6431197it [00:05, 1217289.94it/s]
6552932it [00:05, 1208851.15it/s]
6673831it [00:05, 1201064.21it/s]
6793953it [00:05, 1199526.39it/s]
6914053it [00:05, 1199943.07it/s]
7034061it [00:05, 1199962.92it/s]
7158462it [00:05, 1213100.59it/s]
7281209it [00:05, 1217376.91it/s]
7403105it [00:06, 1217826.02it/s]
7524893it [00:06, 1212701.88it/s]
7646528it [00:06, 1213772.45it/s]
7770274it [00:06, 1220784.42it/s]
7895325it [00:06, 1229664.50it/s]
8018298it [00:06, 1219308.67it/s]
8140252it [00:06, 1217908.13it/s]
8262059it [00:06, 1213053.96it/s]
8383377it [00:06, 1205728.18it/s]
8508264it [00:06, 1218532.81it/s]
8632392it [00:07, 1225292.28it/s]
8755336it [00:07, 1226506.07it/s]
8880035it [00:07, 1232610.34it/s]
9003308it [00:07, 1225843.66it/s]
9128520it [00:07, 1233661.40it/s]
9251902it [00:07, 1223888.90it/s]
9374316it [00:07, 1223887.56it/s]
9497596it [00:07, 1226521.63it/s]
9620262it [00:07, 1214416.21it/s]
9741736it [00:07, 1208518.76it/s]
9865263it [00:08, 1216322.90it/s]
9990785it [00:08, 1227883.21it/s]
10116008it [00:08, 1235127.93it/s]
10239543it [00:08, 1225069.82it/s]
10363919it [00:08, 1230605.44it/s]
10488541it [00:08, 1235244.40it/s]
10612225it [00:08, 1235699.47it/s]
10735810it [00:08, 1218454.50it/s]
10859980it [00:08, 1225319.91it/s]
10982705it [00:08, 1225871.85it/s]
11105328it [00:09, 1221243.73it/s]
11229406it [00:09, 1226982.24it/s]
11352285it [00:09, 1227498.71it/s]
11475051it [00:09, 1225616.51it/s]
11597624it [00:09, 1217678.06it/s]
11721166it [00:09, 1222942.05it/s]
11843476it [00:09, 1219029.69it/s]
11967573it [00:09, 1225550.13it/s]
12092853it [00:09, 1233669.74it/s]
12219663it [00:09, 1243946.88it/s]
12344069it [00:10, 1232716.00it/s]
12471110it [00:10, 1243913.10it/s]
12596057it [00:10, 1245543.97it/s]
12721271it [00:10, 1247491.55it/s]
12846689it [00:10, 1249371.81it/s]
12971638it [00:10, 1244112.62it/s]
13096062it [00:10, 1240257.65it/s]
13220098it [00:10, 1237326.09it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
13343838it [00:10, 1230690.73it/s]
13466917it [00:10, 1220224.63it/s]
13588960it [00:11, 1216682.27it/s]
13712312it [00:11, 1221662.92it/s]
13834492it [00:11, 1220067.18it/s]
13956508it [00:11, 1218427.40it/s]
14078357it [00:11, 1217468.26it/s]
14200108it [00:11, 1212583.62it/s]
14321372it [00:11, 1204908.27it/s]
14442301it [00:11, 1206186.39it/s]
14562929it [00:11, 1199883.53it/s]
14682928it [00:12, 1194883.79it/s]
14805616it [00:12, 1204376.52it/s]
14928455it [00:12, 1211511.52it/s]
15049845it [00:12, 1212203.83it/s]
15171076it [00:12, 1206095.43it/s]
15291698it [00:12, 1203770.74it/s]
15413108it [00:12, 1206825.97it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
15534257it [00:12, 1208198.78it/s]
15655083it [00:12, 1206171.28it/s]
15778239it [00:12, 1213740.97it/s]
15903017it [00:13, 1223902.42it/s]
16025414it [00:13, 1219505.60it/s]
16150219it [00:13, 1228014.07it/s]
16273029it [00:13, 1221193.77it/s]
16398553it [00:13, 1231325.51it/s]
16522736it [00:13, 1234440.88it/s]
16646192it [00:13, 1223311.22it/s]
16770035it [00:13, 1227785.13it/s]
16893496it [00:13, 1229798.23it/s]
17018277it [00:13, 1235104.23it/s]
17141802it [00:14, 1224820.82it/s]
17264311it [00:14, 1222755.54it/s]
17386605it [00:14, 1216497.77it/s]
17447427it [00:14, 1222936.86it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-150e73-R1_A23YTGFLT4_1.md -output aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-150e73-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1.md -output aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_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-150e73-R1_A23YTGFLT4_1/aih-tih-sc-150e73-R1_A23YTGFLT4_1_full_basic_stats.tsv