Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/98/7415b8cc437e6ef8e5a9ca7ae2eb83/tih_rna_sample_00121_B23WHTKLT4_2.md.bam
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/bb/a91376b7c4bdf3703885d4baf376c0/.command.sh
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/bb/a91376b7c4bdf3703885d4baf376c0/.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-rnd-pltf-dev-nextflow-scratch-01/work/98/7415b8cc437e6ef8e5a9ca7ae2eb83/tih_rna_sample_00121_B23WHTKLT4_2.md.bai
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_00121_B23WHTKLT4_2
+ all_qc -bam tih_rna_sample_00121_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_00121_B23WHTKLT4_2 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00121_B23WHTKLT4_2.md.bam -bed tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth.gz
saturation_plot -bams tih_rna_sample_00121_B23WHTKLT4_2.md.bam -region chr20 -output tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00121_B23WHTKLT4_2.md.bam > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00121_B23WHTKLT4_2.md.bam -region chr20 -output_prefix tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bam > tih_rna_sample_00121_B23WHTKLT4_2.md.mpileup && contamination -input tih_rna_sample_00121_B23WHTKLT4_2.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
131995it [00:00, 1319872.59it/s]
284408it [00:00, 1439979.50it/s]
446003it [00:00, 1520213.83it/s]
608391it [00:00, 1561035.22it/s]
773925it [00:00, 1595009.79it/s]
939007it [00:00, 1613955.78it/s]
1102022it [00:00, 1619221.23it/s]
1268766it [00:00, 1634549.18it/s]
1432286it [00:00, 1634728.75it/s]
1595759it [00:01, 1617889.39it/s]
1757586it [00:01, 1523315.41it/s]
1915440it [00:01, 1539316.74it/s]
2070204it [00:01, 1540854.97it/s]
2224875it [00:01, 1538157.31it/s]
2391974it [00:01, 1577432.43it/s]
2563516it [00:01, 1618400.63it/s]
2728812it [00:01, 1628671.27it/s]
2896387it [00:01, 1642581.18it/s]
3063863it [00:01, 1652172.66it/s]
3229199it [00:02, 1650725.21it/s]
3395184it [00:02, 1653428.07it/s]
3561467it [00:02, 1656205.21it/s]
3730797it [00:02, 1667290.64it/s]
3898824it [00:02, 1671040.61it/s]
4066630it [00:02, 1673106.03it/s]
4233957it [00:02, 1655052.55it/s]
4399772it [00:02, 1655933.75it/s]
4565405it [00:02, 1639987.97it/s]
4734542it [00:02, 1655200.46it/s]
4900771it [00:03, 1657081.20it/s]
5066519it [00:03, 1639120.64it/s]
5230494it [00:03, 1622062.38it/s]
5399484it [00:03, 1641972.87it/s]
5566481it [00:03, 1650243.85it/s]
5734263it [00:03, 1658418.59it/s]
5903568it [00:03, 1668716.98it/s]
6070481it [00:03, 1665212.44it/s]
6239274it [00:03, 1671966.39it/s]
6408328it [00:03, 1677483.10it/s]
6576095it [00:04, 1674865.26it/s]
6744425it [00:04, 1677362.14it/s]
6912904it [00:04, 1679561.76it/s]
7081293it [00:04, 1680833.84it/s]
7252774it [00:04, 1690991.35it/s]
7421977it [00:04, 1691276.63it/s]
7592606it [00:04, 1695608.12it/s]
7762170it [00:04, 1685644.00it/s]
7930750it [00:04, 1679821.24it/s]
8098745it [00:04, 1659459.51it/s]
8269659it [00:05, 1674147.64it/s]
8437131it [00:05, 1673813.95it/s]
8604854it [00:05, 1674805.38it/s]
8772363it [00:05, 1642830.81it/s]
8939955it [00:05, 1652567.98it/s]
9105329it [00:05, 1579558.21it/s]
9263985it [00:05, 1555205.93it/s]
9429464it [00:05, 1583875.32it/s]
9594085it [00:05, 1602026.56it/s]
9764383it [00:05, 1631634.71it/s]
9934878it [00:06, 1653291.02it/s]
10103651it [00:06, 1663495.67it/s]
10275933it [00:06, 1681117.85it/s]
10446189it [00:06, 1687495.61it/s]
10615043it [00:06, 1664810.34it/s]
10784120it [00:06, 1672483.08it/s]
10951473it [00:06, 1668818.13it/s]
11118427it [00:06, 1662382.85it/s]
11287928it [00:06, 1671967.72it/s]
11458149it [00:06, 1680918.38it/s]
11626277it [00:07, 1679477.57it/s]
11794250it [00:07, 1676981.24it/s]
11962745it [00:07, 1679335.23it/s]
12130692it [00:07, 1678068.61it/s]
12298508it [00:07, 1671310.01it/s]
12466834it [00:07, 1674855.77it/s]
12635605it [00:07, 1678677.77it/s]
12804830it [00:07, 1682718.19it/s]
12973277it [00:07, 1683213.35it/s]
13142356it [00:07, 1685457.85it/s]
13312757it [00:08, 1690995.49it/s]
13481860it [00:08, 1688654.79it/s]
13651499it [00:08, 1690903.83it/s]
13820592it [00:08, 1660770.89it/s]
13988583it [00:08, 1666412.45it/s]
13992976it [00:08, 1647125.16it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth.gz > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth_hist.tsv
cat tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00121_B23WHTKLT4_2.md -output tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bam > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bam > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/tih_rna_sample_00121_B23WHTKLT4_2.md.depth.gz> tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bam > tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00121_B23WHTKLT4_2.md.bai
cat tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2.md -output tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00121_B23WHTKLT4_2/tih_rna_sample_00121_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_00121_B23WHTKLT4_2/tih_rna_sample_00121_B23WHTKLT4_2_full_basic_stats.tsv