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/1e/1fa9c0d6df1b042f69b9ef839ad0b9/tih_rna_sample_00104_23H5VFLT4_s20.md.bam
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/8c/468d3c515f815c6baa6d22efe62ab7/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/1e/1fa9c0d6df1b042f69b9ef839ad0b9/tih_rna_sample_00104_23H5VFLT4_s20.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/8c/468d3c515f815c6baa6d22efe62ab7/.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_00104_23H5VFLT4_s20
+ all_qc -bam tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00104_23H5VFLT4_s20.md.bam -bed tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth.gz
saturation_plot -bams tih_rna_sample_00104_23H5VFLT4_s20.md.bam -region chr20 -output tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00104_23H5VFLT4_s20.md.bam > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00104_23H5VFLT4_s20.md.bam -region chr20 -output_prefix tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bam > tih_rna_sample_00104_23H5VFLT4_s20.md.mpileup && contamination -input tih_rna_sample_00104_23H5VFLT4_s20.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
153601it [00:00, 1535897.95it/s]
322993it [00:00, 1628811.38it/s]
498739it [00:00, 1687381.40it/s]
667477it [00:00, 1656103.37it/s]
843662it [00:00, 1693754.14it/s]
1018133it [00:00, 1710886.95it/s]
1192770it [00:00, 1722403.88it/s]
1366454it [00:00, 1726964.95it/s]
1541649it [00:00, 1734734.38it/s]
1721103it [00:01, 1753101.07it/s]
1897690it [00:01, 1756981.59it/s]
2073406it [00:01, 1752570.97it/s]
2248678it [00:01, 1746532.01it/s]
2425343it [00:01, 1752521.42it/s]
2604096it [00:01, 1763023.94it/s]
2782427it [00:01, 1769092.84it/s]
2959346it [00:01, 1767716.54it/s]
3137635it [00:01, 1772249.14it/s]
3316363it [00:01, 1776738.77it/s]
3494041it [00:02, 1744968.08it/s]
3668666it [00:02, 1641521.95it/s]
3834069it [00:02, 1630051.43it/s]
4005237it [00:02, 1653476.10it/s]
4180867it [00:02, 1683373.19it/s]
4356252it [00:02, 1704045.65it/s]
4532117it [00:02, 1720157.01it/s]
4708026it [00:02, 1731690.57it/s]
4881446it [00:02, 1675218.73it/s]
5049815it [00:02, 1677640.36it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
5223285it [00:03, 1694389.04it/s]
5398936it [00:03, 1712734.73it/s]
5570450it [00:03, 1701393.39it/s]
5742228it [00:03, 1706198.16it/s]
5912977it [00:03, 1705271.89it/s]
6087404it [00:03, 1716869.72it/s]
6263820it [00:03, 1730964.80it/s]
6438695it [00:03, 1736259.13it/s]
6613270it [00:03, 1739071.97it/s]
6788019it [00:03, 1741547.87it/s]
6962195it [00:04, 1683812.46it/s]
7134422it [00:04, 1695048.04it/s]
7304252it [00:04, 1682794.00it/s]
7472761it [00:04, 1654585.29it/s]
7647388it [00:04, 1681402.38it/s]
7822455it [00:04, 1701806.95it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
7998166it [00:04, 1718175.24it/s]
8173805it [00:04, 1729518.41it/s]
8346879it [00:04, 1729863.51it/s]
8520286it [00:04, 1731098.47it/s]
8693455it [00:05, 1730850.05it/s]
8867582it [00:05, 1733837.15it/s]
9040995it [00:05, 1725913.06it/s]
9215686it [00:05, 1732102.46it/s]
9390344it [00:05, 1736412.96it/s]
9564002it [00:05, 1727911.16it/s]
9738918it [00:05, 1734229.91it/s]
9914202it [00:05, 1739772.83it/s]
10092136it [00:05, 1751590.55it/s]
10267308it [00:05, 1749146.96it/s]
10442232it [00:06, 1735106.88it/s]
10616750it [00:06, 1738087.85it/s]
10793498it [00:06, 1746647.70it/s]
10970261it [00:06, 1752896.35it/s]
11146885it [00:06, 1756870.94it/s]
11322585it [00:06, 1753481.03it/s]
11497943it [00:06, 1748748.10it/s]
11674590it [00:06, 1754024.05it/s]
11852478it [00:06, 1761439.13it/s]
12028630it [00:06, 1761173.40it/s]
12204753it [00:07, 1751328.91it/s]
12379901it [00:07, 1740062.26it/s]
12556845it [00:07, 1748782.31it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
12732563it [00:07, 1751268.09it/s]
12909084it [00:07, 1755414.70it/s]
13084639it [00:07, 1743922.21it/s]
13261204it [00:07, 1750378.52it/s]
13442246it [00:07, 1768172.76it/s]
13621775it [00:07, 1776256.48it/s]
13799420it [00:07, 1764821.70it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
13976776it [00:08, 1767408.73it/s]
14157418it [00:08, 1779039.28it/s]
14337452it [00:08, 1785290.94it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
14515997it [00:08, 1768590.33it/s]
14694073it [00:08, 1772081.40it/s]
14778521it [00:08, 1730720.17it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth.gz > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth_hist.tsv
cat tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00104_23H5VFLT4_s20.md -output tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bam > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bam > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/tih_rna_sample_00104_23H5VFLT4_s20.md.depth.gz> tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bam > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.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_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00104_23H5VFLT4_s20.md.bai
cat tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00104_23H5VFLT4_s20.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20.md -output tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00104_23H5VFLT4_s20/tih_rna_sample_00104_23H5VFLT4_s20_full_basic_stats.tsv