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/d0/3cfc0d6089660c2ddcd14c15823870/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/22/ecb317181e880743ddc815dfa4956f/tih_rna_sample_00115_23H5VFLT4_s35.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/22/ecb317181e880743ddc815dfa4956f/tih_rna_sample_00115_23H5VFLT4_s35.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d0/3cfc0d6089660c2ddcd14c15823870/.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 tih_rna_sample_00115_23H5VFLT4_s35
+ all_qc -bam tih_rna_sample_00115_23H5VFLT4_s35.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 tih_rna_sample_00115_23H5VFLT4_s35 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00115_23H5VFLT4_s35.md.bam -bed tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth.gz
saturation_plot -bams tih_rna_sample_00115_23H5VFLT4_s35.md.bam -region chr20 -output tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00115_23H5VFLT4_s35.md.bam > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00115_23H5VFLT4_s35.md.bam -region chr20 -output_prefix tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed tih_rna_sample_00115_23H5VFLT4_s35.md.bam > tih_rna_sample_00115_23H5VFLT4_s35.md.mpileup && contamination -input tih_rna_sample_00115_23H5VFLT4_s35.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.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: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
131331it [00:00, 1313220.45it/s]
282343it [00:00, 1428997.18it/s]
437446it [00:00, 1484649.31it/s]
600149it [00:00, 1540829.98it/s]
766802it [00:00, 1586132.44it/s]
931785it [00:00, 1607760.70it/s]
1098455it [00:00, 1626994.90it/s]
1266251it [00:00, 1643197.18it/s]
1433740it [00:00, 1653072.93it/s]
1599048it [00:01, 1646281.63it/s]
1763906it [00:01, 1646958.34it/s]
1928607it [00:01, 1646335.76it/s]
2093244it [00:01, 1638230.33it/s]
2260399it [00:01, 1648216.62it/s]
2430238it [00:01, 1663260.91it/s]
2598511it [00:01, 1669067.60it/s]
2765429it [00:01, 1667075.70it/s]
2933202it [00:01, 1670242.69it/s]
3100907it [00:01, 1672256.14it/s]
3268137it [00:02, 1647626.69it/s]
3433499it [00:02, 1649378.27it/s]
3598497it [00:02, 1647074.15it/s]
3763246it [00:02, 1645430.20it/s]
3930565it [00:02, 1653626.56it/s]
4095952it [00:02, 1630416.90it/s]
4263984it [00:02, 1645075.64it/s]
4430812it [00:02, 1651917.72it/s]
4596064it [00:02, 1607074.09it/s]
4757057it [00:02, 1531988.18it/s]
4911062it [00:03, 1411305.86it/s]
5054250it [00:03, 1337268.83it/s]
5189734it [00:03, 1291257.00it/s]
5320033it [00:03, 1262056.72it/s]
5446938it [00:03, 1241696.21it/s]
5574127it [00:03, 1250038.26it/s]
5724990it [00:03, 1323326.93it/s]
5857986it [00:03, 1271702.89it/s]
5985898it [00:03, 1242720.69it/s]
6146164it [00:04, 1344535.12it/s]
6308994it [00:04, 1426207.05it/s]
6474046it [00:04, 1491549.99it/s]
6639348it [00:04, 1538840.64it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
6803859it [00:04, 1570235.49it/s]
6966713it [00:04, 1587524.42it/s]
7126793it [00:04, 1591448.87it/s]
7288306it [00:04, 1598491.02it/s]
7452003it [00:04, 1609966.10it/s]
7617248it [00:04, 1622474.27it/s]
7784241it [00:05, 1636657.58it/s]
7951947it [00:05, 1648739.67it/s]
8120563it [00:05, 1659929.95it/s]
8286596it [00:05, 1650567.02it/s]
8452233it [00:05, 1652259.44it/s]
8619782it [00:05, 1659178.80it/s]
8785722it [00:05, 1639819.75it/s]
8949767it [00:05, 1572197.28it/s]
9107573it [00:05, 1444788.80it/s]
9268479it [00:05, 1489932.89it/s]
9432364it [00:06, 1531839.10it/s]
9601454it [00:06, 1577476.12it/s]
9771126it [00:06, 1612141.94it/s]
9940211it [00:06, 1635222.16it/s]
10109902it [00:06, 1653421.23it/s]
10279676it [00:06, 1666549.88it/s]
10448678it [00:06, 1673500.68it/s]
10620709it [00:06, 1687441.18it/s]
10794141it [00:06, 1701342.89it/s]
10964431it [00:07, 1668227.03it/s]
11131501it [00:07, 1667016.60it/s]
11297602it [00:07, 1567368.27it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth.gz > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth_hist.tsv
cat tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00115_23H5VFLT4_s35.md -output tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.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 tih_rna_sample_00115_23H5VFLT4_s35.md.bam > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.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 tih_rna_sample_00115_23H5VFLT4_s35.md.bam > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/tih_rna_sample_00115_23H5VFLT4_s35.md.depth.gz> tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.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 tih_rna_sample_00115_23H5VFLT4_s35.md.bam > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.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: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00115_23H5VFLT4_s35.md.bai
cat tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00115_23H5VFLT4_s35.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35.md -output tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00115_23H5VFLT4_s35/tih_rna_sample_00115_23H5VFLT4_s35_full_basic_stats.tsv