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/74/47f30baf66717b47daaf6544803c8e/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/1a/068fa53f4a4ae559f398ff943576a7/tih_rna_sample_00087_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-rnd-pltf-dev-nextflow-scratch-01/work/1a/068fa53f4a4ae559f398ff943576a7/tih_rna_sample_00087_B23WHTKLT4_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/74/47f30baf66717b47daaf6544803c8e/.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_00087_B23WHTKLT4_1
+ all_qc -bam tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.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_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00087_B23WHTKLT4_1.md.bam -bed tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth.gz
saturation_plot -bams tih_rna_sample_00087_B23WHTKLT4_1.md.bam -region chr20 -output tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00087_B23WHTKLT4_1.md.bam > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00087_B23WHTKLT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1.md.bam > tih_rna_sample_00087_B23WHTKLT4_1.md.mpileup && contamination -input tih_rna_sample_00087_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.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_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_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: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
143497it [00:00, 1434834.53it/s]
296050it [00:00, 1487906.04it/s]
456168it [00:00, 1539588.47it/s]
622070it [00:00, 1586706.80it/s]
785680it [00:00, 1604488.73it/s]
955427it [00:00, 1636073.34it/s]
1123873it [00:00, 1651766.94it/s]
1292163it [00:00, 1661655.19it/s]
1460559it [00:00, 1668603.17it/s]
1630649it [00:01, 1678399.62it/s]
1801309it [00:01, 1687007.77it/s]
1972102it [00:01, 1693349.14it/s]
2141437it [00:01, 1674669.90it/s]
2313044it [00:01, 1687050.29it/s]
2484729it [00:01, 1695960.10it/s]
2657231it [00:01, 1704649.76it/s]
2828814it [00:01, 1707977.46it/s]
3001605it [00:01, 1713931.61it/s]
3173014it [00:01, 1701151.40it/s]
3343160it [00:02, 1689119.38it/s]
3512106it [00:02, 1656300.97it/s]
3677875it [00:02, 1622831.75it/s]
3840347it [00:02, 1602627.18it/s]
4005681it [00:02, 1617369.30it/s]
4172098it [00:02, 1631076.04it/s]
4335332it [00:02, 1627975.03it/s]
4502462it [00:02, 1640778.38it/s]
4674695it [00:02, 1665014.15it/s]
4841269it [00:02, 1646620.40it/s]
5007484it [00:03, 1651201.19it/s]
5172671it [00:03, 1635398.73it/s]
5340994it [00:03, 1649523.09it/s]
5510369it [00:03, 1662582.90it/s]
5678937it [00:03, 1669445.26it/s]
5845927it [00:03, 1669487.64it/s]
6016601it [00:03, 1680610.84it/s]
6188584it [00:03, 1692333.04it/s]
6357838it [00:03, 1689509.43it/s]
6526925it [00:03, 1689891.83it/s]
6695925it [00:04, 1678082.81it/s]
6865448it [00:04, 1683167.67it/s]
7036693it [00:04, 1691895.07it/s]
7207318it [00:04, 1696164.99it/s]
7376949it [00:04, 1688528.19it/s]
7546561it [00:04, 1690754.72it/s]
7715649it [00:04, 1642818.29it/s]
7881592it [00:04, 1647643.90it/s]
8050938it [00:04, 1661003.40it/s]
8221137it [00:04, 1673000.81it/s]
8388571it [00:05, 1617810.44it/s]
8557336it [00:05, 1637985.63it/s]
8725385it [00:05, 1650442.31it/s]
8890727it [00:05, 1651125.30it/s]
9061088it [00:05, 1666686.19it/s]
9231584it [00:05, 1678069.38it/s]
9400438it [00:05, 1681174.80it/s]
9570103it [00:05, 1685782.10it/s]
9740291it [00:05, 1690578.17it/s]
9910444it [00:05, 1693837.86it/s]
10083933it [00:06, 1706119.20it/s]
10255354it [00:06, 1708521.60it/s]
10426223it [00:06, 1688113.31it/s]
10596911it [00:06, 1693566.73it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
10766319it [00:06, 1647903.92it/s]
10931458it [00:06, 1648609.03it/s]
11097032it [00:06, 1650694.58it/s]
11262245it [00:06, 1646143.86it/s]
11432095it [00:06, 1661672.35it/s]
11604959it [00:06, 1681580.16it/s]
11775590it [00:07, 1688946.05it/s]
11946698it [00:07, 1695541.13it/s]
12117328it [00:07, 1698740.52it/s]
12287232it [00:07, 1696528.02it/s]
12458363it [00:07, 1700932.74it/s]
12629431it [00:07, 1703747.03it/s]
12800730it [00:07, 1706392.94it/s]
12972880it [00:07, 1710905.85it/s]
13143977it [00:07, 1688882.10it/s]
13317914it [00:07, 1703865.04it/s]
13490559it [00:08, 1710578.92it/s]
13661665it [00:08, 1705931.95it/s]
13832765it [00:08, 1707423.03it/s]
14003532it [00:08, 1690784.24it/s]
14174067it [00:08, 1695096.39it/s]
14344491it [00:08, 1697802.46it/s]
14518283it [00:08, 1709766.30it/s]
14692963it [00:08, 1720678.61it/s]
14866136it [00:08, 1723965.79it/s]
15038549it [00:08, 1719389.26it/s]
15210501it [00:09, 1718680.04it/s]
15355965it [00:09, 1674415.53it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth.gz > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth_hist.tsv
cat tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00087_B23WHTKLT4_1.md -output tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1.md.bam > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1.md.bam > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/tih_rna_sample_00087_B23WHTKLT4_1.md.depth.gz> tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_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 tih_rna_sample_00087_B23WHTKLT4_1.md.bam > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_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: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00087_B23WHTKLT4_1.md.bai
cat tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00087_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1.md -output tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00087_B23WHTKLT4_1/tih_rna_sample_00087_B23WHTKLT4_1_full_basic_stats.tsv