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/60/8c64994373af5f2ab7f0cec433fa13/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0b/aa87346b13cd7f3613121a369cc5b6/tih_rna_sample_00591_B23MVV7LT4_1.md.bai
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/0b/aa87346b13cd7f3613121a369cc5b6/tih_rna_sample_00591_B23MVV7LT4_1.md.bam
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/60/8c64994373af5f2ab7f0cec433fa13/.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_00591_B23MVV7LT4_1
+ all_qc -bam tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00591_B23MVV7LT4_1.md.bam -bed tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth.gz
saturation_plot -bams tih_rna_sample_00591_B23MVV7LT4_1.md.bam -region chr20 -output tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00591_B23MVV7LT4_1.md.bam > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00591_B23MVV7LT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bam > tih_rna_sample_00591_B23MVV7LT4_1.md.mpileup && contamination -input tih_rna_sample_00591_B23MVV7LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
0it [00:00, ?it/s]
149351it [00:00, 1493418.85it/s]
306270it [00:00, 1537938.09it/s]
476608it [00:00, 1613442.01it/s]
637953it [00:00, 1495538.55it/s]
797969it [00:00, 1531421.15it/s]
959328it [00:00, 1558429.43it/s]
1125658it [00:00, 1591932.21it/s]
1289797it [00:00, 1607409.19it/s]
1450939it [00:00, 1578691.86it/s]
1609170it [00:01, 1522517.87it/s]
1761999it [00:01, 1495616.70it/s]
1911972it [00:01, 1485490.42it/s]
2065939it [00:01, 1501320.04it/s]
2218392it [00:01, 1508055.49it/s]
2369380it [00:01, 1501387.29it/s]
2519643it [00:01, 1498993.10it/s]
2670789it [00:01, 1502667.80it/s]
2821119it [00:01, 1475884.25it/s]
2968839it [00:01, 1408830.31it/s]
3110361it [00:02, 1363504.47it/s]
3284043it [00:02, 1469329.77it/s]
3432012it [00:02, 1404731.85it/s]
3595394it [00:02, 1469333.07it/s]
3763784it [00:02, 1530834.99it/s]
3937388it [00:02, 1590507.88it/s]
4097411it [00:02, 1523151.14it/s]
4254072it [00:02, 1535544.17it/s]
4413296it [00:02, 1551950.17it/s]
4569173it [00:03, 1540750.80it/s]
4723722it [00:03, 1462094.22it/s]
4873975it [00:03, 1473555.99it/s]
5046073it [00:03, 1544977.26it/s]
5219452it [00:03, 1600047.17it/s]
5389074it [00:03, 1628311.23it/s]
5562171it [00:03, 1658654.96it/s]
5734113it [00:03, 1676548.98it/s]
5904525it [00:03, 1684711.48it/s]
6073227it [00:03, 1636996.22it/s]
6237369it [00:04, 1626656.12it/s]
6400337it [00:04, 1622368.75it/s]
6565446it [00:04, 1630804.03it/s]
6733054it [00:04, 1644180.65it/s]
6898424it [00:04, 1646978.49it/s]
7065466it [00:04, 1653934.76it/s]
7230928it [00:04, 1652888.56it/s]
7401518it [00:04, 1668706.86it/s]
7572882it [00:04, 1682122.73it/s]
7742080it [00:04, 1685046.36it/s]
7913811it [00:05, 1694686.14it/s]
8087792it [00:05, 1708178.97it/s]
8259446it [00:05, 1710578.60it/s]
8430513it [00:05, 1704296.30it/s]
8603335it [00:05, 1711423.63it/s]
8775133it [00:05, 1713358.85it/s]
8949226it [00:05, 1721592.85it/s]
9121392it [00:05, 1712335.67it/s]
9292641it [00:05, 1711576.68it/s]
9463809it [00:05, 1706916.72it/s]
9634903it [00:06, 1708092.17it/s]
9805719it [00:06, 1705953.74it/s]
9976319it [00:06, 1692785.27it/s]
10145621it [00:06, 1688643.38it/s]
10317415it [00:06, 1697238.49it/s]
10490155it [00:06, 1706214.41it/s]
10662245it [00:06, 1710578.31it/s]
10838841it [00:06, 1726949.02it/s]
11013762it [00:06, 1733588.49it/s]
11187275it [00:06, 1733897.26it/s]
11360672it [00:07, 1727446.45it/s]
11533427it [00:07, 1617547.21it/s]
11705630it [00:07, 1647375.28it/s]
11877145it [00:07, 1666995.71it/s]
12044705it [00:07, 1662911.15it/s]
12213041it [00:07, 1668900.11it/s]
12385584it [00:07, 1685602.37it/s]
12557940it [00:07, 1696856.48it/s]
12729887it [00:07, 1703490.53it/s]
12901951it [00:07, 1708585.41it/s]
13073620it [00:08, 1710969.97it/s]
13244804it [00:08, 1697732.24it/s]
13414708it [00:08, 1698090.87it/s]
13588840it [00:08, 1710878.66it/s]
13759975it [00:08, 1694870.43it/s]
13929524it [00:08, 1691050.97it/s]
14102614it [00:08, 1702881.97it/s]
14275312it [00:08, 1710044.12it/s]
14446348it [00:08, 1707478.69it/s]
14617118it [00:09, 1649854.71it/s]
14782522it [00:09, 1629255.57it/s]
14945750it [00:09, 1626114.22it/s]
15108566it [00:09, 1598221.30it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
15268586it [00:09, 1597718.70it/s]
15428495it [00:09, 1581579.91it/s]
15586757it [00:09, 1539667.93it/s]
15729662it [00:09, 1616714.19it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth.gz > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth_hist.tsv
cat tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00591_B23MVV7LT4_1.md -output tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bam > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bam > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/tih_rna_sample_00591_B23MVV7LT4_1.md.depth.gz> tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bam > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00591_B23MVV7LT4_1.md.bai
cat tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1.md -output tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_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_00591_B23MVV7LT4_1/tih_rna_sample_00591_B23MVV7LT4_1_full_basic_stats.tsv