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/6d/ef20bcc3d076aedd6eea9ef622782b/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/98/cd6309ff0446091224bf76303612e4/tih_rna_sample_00097_B23WHTKLT4_2.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/6d/ef20bcc3d076aedd6eea9ef622782b/.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-rnd-pltf-dev-nextflow-scratch-01/work/98/cd6309ff0446091224bf76303612e4/tih_rna_sample_00097_B23WHTKLT4_2.md.bam
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir tih_rna_sample_00097_B23WHTKLT4_2
+ all_qc -bam tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00097_B23WHTKLT4_2.md.bam -bed tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00097_B23WHTKLT4_2.md.bam > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/saturation_qc.tsv
saturation_plot -bams tih_rna_sample_00097_B23WHTKLT4_2.md.bam -region chr20 -output tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/saturation_plot.png -threads 1
fragment_size -bams tih_rna_sample_00097_B23WHTKLT4_2.md.bam -region chr20 -output_prefix tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bam > tih_rna_sample_00097_B23WHTKLT4_2.md.mpileup && contamination -input tih_rna_sample_00097_B23WHTKLT4_2.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
0it [00:00, ?it/s]
153892it [00:00, 1538686.68it/s]
312321it [00:00, 1565480.63it/s]
485159it [00:00, 1639834.55it/s]
658639it [00:00, 1677112.01it/s]
831981it [00:00, 1697393.66it/s]
1007183it [00:00, 1715946.31it/s]
1178778it [00:00, 1700712.34it/s]
1350740it [00:00, 1706674.78it/s]
1525801it [00:00, 1720336.88it/s]
1700714it [00:01, 1729180.12it/s]
1873650it [00:01, 1699602.64it/s]
2050364it [00:01, 1719857.50it/s]
2225560it [00:01, 1729396.46it/s]
2398585it [00:01, 1723426.86it/s]
2570988it [00:01, 1717946.99it/s]
2745821it [00:01, 1727011.36it/s]
2918559it [00:01, 1722573.72it/s]
3092340it [00:01, 1727052.66it/s]
3266999it [00:01, 1732878.79it/s]
3440304it [00:02, 1720640.74it/s]
3615865it [00:02, 1730906.01it/s]
3788983it [00:02, 1709878.96it/s]
3960039it [00:02, 1699730.22it/s]
4131816it [00:02, 1705060.86it/s]
4306308it [00:02, 1716806.19it/s]
4479103it [00:02, 1720110.81it/s]
4653724it [00:02, 1727887.37it/s]
4826537it [00:02, 1704596.05it/s]
4997079it [00:02, 1691449.64it/s]
5169094it [00:03, 1699814.35it/s]
5342035it [00:03, 1708592.12it/s]
5517488it [00:03, 1722262.17it/s]
5689758it [00:03, 1721400.83it/s]
5862739it [00:03, 1723894.98it/s]
6035151it [00:03, 1718606.36it/s]
6207030it [00:03, 1702685.77it/s]
6377339it [00:03, 1640307.52it/s]
6548589it [00:03, 1661200.18it/s]
6718242it [00:03, 1671522.49it/s]
6885699it [00:04, 1659175.70it/s]
7055234it [00:04, 1669826.17it/s]
7224603it [00:04, 1676407.70it/s]
7393441it [00:04, 1679882.14it/s]
7563925it [00:04, 1687306.69it/s]
7734556it [00:04, 1692968.27it/s]
7904885it [00:04, 1696036.68it/s]
8077997it [00:04, 1706471.87it/s]
8250586it [00:04, 1712271.95it/s]
8421834it [00:04, 1705866.39it/s]
8594469it [00:05, 1711954.55it/s]
8765680it [00:05, 1693087.54it/s]
8936657it [00:05, 1698025.14it/s]
9107323it [00:05, 1700580.80it/s]
9279930it [00:05, 1708063.57it/s]
9450762it [00:05, 1692458.27it/s]
9620485it [00:05, 1693845.31it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
9792630it [00:05, 1702053.20it/s]
9962864it [00:05, 1663464.02it/s]
10129410it [00:05, 1613984.92it/s]
10295809it [00:06, 1628446.08it/s]
10463495it [00:06, 1642596.90it/s]
10633678it [00:06, 1660039.29it/s]
10799894it [00:06, 1638166.31it/s]
10970294it [00:06, 1657539.44it/s]
11141156it [00:06, 1672651.01it/s]
11308939it [00:06, 1674013.33it/s]
11483298it [00:06, 1694730.63it/s]
11652853it [00:06, 1685762.85it/s]
11821494it [00:06, 1674916.88it/s]
11990728it [00:07, 1680071.17it/s]
12166108it [00:07, 1702023.04it/s]
12341151it [00:07, 1716458.38it/s]
12513426it [00:07, 1718320.58it/s]
12685286it [00:07, 1717926.59it/s]
12857098it [00:07, 1704244.04it/s]
13029205it [00:07, 1709096.15it/s]
13200553it [00:07, 1710385.89it/s]
13371613it [00:07, 1664125.00it/s]
13544334it [00:07, 1682625.36it/s]
13713789it [00:08, 1686126.46it/s]
13884674it [00:08, 1692853.34it/s]
14056143it [00:08, 1699335.21it/s]
14230761it [00:08, 1713287.09it/s]
14403363it [00:08, 1717072.50it/s]
14575123it [00:08, 1714404.37it/s]
14746601it [00:08, 1710947.13it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
14920524it [00:08, 1719381.60it/s]
15092484it [00:08, 1712221.52it/s]
15227876it [00:08, 1696366.95it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth.gz > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth_hist.tsv
cat tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00097_B23WHTKLT4_2.md -output tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bam > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bam > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/tih_rna_sample_00097_B23WHTKLT4_2.md.depth.gz> tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bam > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.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_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00097_B23WHTKLT4_2.md.bai
cat tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00097_B23WHTKLT4_2.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2.md -output tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00097_B23WHTKLT4_2/tih_rna_sample_00097_B23WHTKLT4_2_full_basic_stats.tsv