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/0e/c7c6733c5388d14829d00b0a017bec/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/40/39a51190237e8fb6f6381519a61d9a/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam
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/40/39a51190237e8fb6f6381519a61d9a/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0e/c7c6733c5388d14829d00b0a017bec/.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 659_dts-T1-TRNA-1_B23WHTKLT4_1
+ all_qc -bam 659_dts-T1-TRNA-1_B23WHTKLT4_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 659_dts-T1-TRNA-1_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed
seqtool depth -bam 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam -bed 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
saturation_plot -bams 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam -region chr20 -output 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/saturation_qc.tsv
fragment_size -bams 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam -region chr20 -output_prefix 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.mpileup && contamination -input 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_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: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
105829it [00:00, 1058220.37it/s]
218688it [00:00, 1099570.59it/s]
330738it [00:00, 1109099.77it/s]
465997it [00:00, 1205075.34it/s]
632464it [00:00, 1370767.34it/s]
799041it [00:00, 1471034.79it/s]
946146it [00:00, 1356590.47it/s]
1083386it [00:00, 1283578.86it/s]
1213305it [00:00, 1236056.37it/s]
1338053it [00:01, 1205940.25it/s]
1459377it [00:01, 1188332.10it/s]
1578647it [00:01, 1173977.47it/s]
1696297it [00:01, 1156023.86it/s]
1812042it [00:01, 1144394.45it/s]
1927130it [00:01, 1146242.32it/s]
2043441it [00:01, 1151136.91it/s]
2158610it [00:01, 1147325.31it/s]
2273691it [00:01, 1148333.42it/s]
2388550it [00:01, 1128428.14it/s]
2503379it [00:02, 1134246.91it/s]
2616867it [00:02, 1125054.89it/s]
2729421it [00:02, 1111243.77it/s]
2840598it [00:02, 1108911.52it/s]
2952062it [00:02, 1110584.31it/s]
3064316it [00:02, 1114110.31it/s]
3176453it [00:02, 1116223.56it/s]
3295124it [00:02, 1137230.74it/s]
3423389it [00:02, 1180663.53it/s]
3587601it [00:03, 1318703.13it/s]
3754713it [00:03, 1424145.53it/s]
3920926it [00:03, 1495421.51it/s]
4089940it [00:03, 1553754.47it/s]
4260953it [00:03, 1600607.87it/s]
4429374it [00:03, 1625652.19it/s]
4591964it [00:03, 1607590.13it/s]
4754313it [00:03, 1612179.01it/s]
4918644it [00:03, 1621434.09it/s]
5080920it [00:03, 1621761.40it/s]
5243123it [00:04, 1603706.38it/s]
5403554it [00:04, 1590507.66it/s]
5569215it [00:04, 1610059.97it/s]
5734473it [00:04, 1622644.57it/s]
5905332it [00:04, 1648232.99it/s][W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
6075485it [00:04, 1664125.44it/s]
6241944it [00:04, 1581292.59it/s]
6409162it [00:04, 1607510.44it/s]
6575610it [00:04, 1624119.82it/s]
6738568it [00:04, 1578661.52it/s]
6897030it [00:05, 1394509.92it/s]
7040521it [00:05, 1284258.39it/s]
7172800it [00:05, 1266055.15it/s]
7336556it [00:05, 1364705.76it/s]
7506431it [00:05, 1456546.43it/s]
7675637it [00:05, 1522974.34it/s]
7847595it [00:05, 1579428.03it/s]
8017805it [00:05, 1615094.56it/s]
8184460it [00:05, 1630179.36it/s]
8354974it [00:06, 1652270.29it/s][W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
8526774it [00:06, 1671756.43it/s]
8694527it [00:06, 1591966.02it/s]
8854896it [00:06, 1529556.49it/s]
9024111it [00:06, 1575537.66it/s]
9194810it [00:06, 1613350.85it/s]
9365541it [00:06, 1640677.19it/s]
9530971it [00:06, 1644650.43it/s]
9695954it [00:06, 1633404.53it/s]
9859661it [00:06, 1562029.72it/s]
10016702it [00:07, 1478717.67it/s]
10165835it [00:07, 1475448.64it/s]
10318708it [00:07, 1414364.03it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv
cat 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_dts-T1-TRNA-1_B23WHTKLT4_1.md -output 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_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 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_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 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/659_dts-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz> 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_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 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_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: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_dts-T1-TRNA-1_B23WHTKLT4_1.md.bai
cat 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "659_dts-T1-TRNA-1_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md/qc_complete.txt
+ merge_qc -folders 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1.md -output 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_dts-T1-TRNA-1_B23WHTKLT4_1/659_dts-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv