Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/eb/54186cf3ace2ecc50b44b82404e693/tih_rna_sample_00596_B23MVV7LT4_1.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/94/b600c34b8c7f20d999e5f6678fcff4/.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/94/b600c34b8c7f20d999e5f6678fcff4/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/eb/54186cf3ace2ecc50b44b82404e693/tih_rna_sample_00596_B23MVV7LT4_1.md.bai
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_00596_B23MVV7LT4_1
+ all_qc -bam tih_rna_sample_00596_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_00596_B23MVV7LT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00596_B23MVV7LT4_1.md.bam -bed tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth.gz
saturation_plot -bams tih_rna_sample_00596_B23MVV7LT4_1.md.bam -region chr20 -output tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00596_B23MVV7LT4_1.md.bam > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00596_B23MVV7LT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bam > tih_rna_sample_00596_B23MVV7LT4_1.md.mpileup && contamination -input tih_rna_sample_00596_B23MVV7LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
0it [00:00, ?it/s]
136237it [00:00, 1362286.85it/s]
282654it [00:00, 1422149.60it/s]
432073it [00:00, 1455012.42it/s]
581933it [00:00, 1472069.21it/s]
735074it [00:00, 1493324.04it/s]
892823it [00:00, 1521910.41it/s]
1045015it [00:00, 1507587.56it/s]
1203110it [00:00, 1530411.66it/s]
1357583it [00:00, 1534844.67it/s]
1515437it [00:01, 1548269.66it/s]
1670285it [00:01, 1524494.89it/s]
1822825it [00:01, 1521730.24it/s]
1975059it [00:01, 1492147.30it/s]
2134814it [00:01, 1523304.63it/s]
2287310it [00:01, 1494536.92it/s]
2436964it [00:01, 1478620.84it/s]
2585851it [00:01, 1481595.07it/s]
2734222it [00:01, 1482196.10it/s]
2886084it [00:01, 1492955.52it/s]
3035447it [00:02, 1483378.17it/s]
3192227it [00:02, 1508424.43it/s]
3343134it [00:02, 1508218.69it/s]
3515082it [00:02, 1571237.77it/s]
3672271it [00:02, 1452477.47it/s]
3819317it [00:02, 1369805.97it/s]
3987363it [00:02, 1455317.94it/s]
4158792it [00:02, 1528393.75it/s]
4324694it [00:02, 1565908.65it/s]
4482805it [00:02, 1552353.86it/s]
4652785it [00:03, 1595275.76it/s]
4824938it [00:03, 1632350.73it/s]
4997750it [00:03, 1660641.02it/s]
5170741it [00:03, 1681188.22it/s]
5344474it [00:03, 1697889.10it/s]
5514546it [00:03, 1693981.13it/s]
5685227it [00:03, 1697640.13it/s]
5855132it [00:03, 1556549.76it/s]
6013147it [00:03, 1449964.18it/s]
6160861it [00:04, 1452560.73it/s]
6314081it [00:04, 1474744.56it/s]
6471400it [00:04, 1502768.94it/s]
6630313it [00:04, 1527615.32it/s]
6789511it [00:04, 1546359.88it/s]
6949360it [00:04, 1561645.37it/s]
7107542it [00:04, 1567603.60it/s]
7269480it [00:04, 1582924.13it/s]
7428569it [00:04, 1585222.66it/s]
7589530it [00:04, 1592480.65it/s]
7748918it [00:05, 1579865.24it/s]
7913952it [00:05, 1600817.74it/s]
8074133it [00:05, 1574377.72it/s]
8233628it [00:05, 1580368.83it/s]
8391783it [00:05, 1532727.55it/s]
8546215it [00:05, 1536083.19it/s]
8700081it [00:05, 1535231.81it/s]
8853783it [00:05, 1523592.73it/s]
9007007it [00:05, 1526121.65it/s]
9160020it [00:05, 1527262.26it/s]
9312814it [00:06, 1526029.77it/s]
9467850it [00:06, 1533256.06it/s]
9621213it [00:06, 1484484.43it/s]
9770007it [00:06, 1482147.09it/s]
9918459it [00:06, 1454136.43it/s]
10069744it [00:06, 1471243.84it/s]
10217085it [00:06, 1471850.58it/s]
10364421it [00:06, 1461157.95it/s]
10519190it [00:06, 1486693.92it/s]
10668039it [00:06, 1487201.22it/s]
10816841it [00:07, 1481168.32it/s]
10965033it [00:07, 1481346.18it/s]
11123954it [00:07, 1513494.06it/s]
11280977it [00:07, 1530422.93it/s]
11441886it [00:07, 1553832.68it/s]
11607121it [00:07, 1583306.70it/s]
11765482it [00:07, 1542029.71it/s]
11919938it [00:07, 1537453.02it/s]
12073856it [00:07, 1498839.96it/s]
12229669it [00:08, 1516080.78it/s]
12390899it [00:08, 1544327.87it/s]
12545744it [00:08, 1545520.86it/s]
12713397it [00:08, 1584400.20it/s]
12877410it [00:08, 1599238.15it/s]
13047784it [00:08, 1630382.81it/s]
13217865it [00:08, 1651398.16it/s]
13383083it [00:08, 1626554.29it/s]
13545872it [00:08, 1618645.98it/s]
13707830it [00:08, 1576525.44it/s]
13866881it [00:09, 1580582.08it/s]
14032870it [00:09, 1603891.88it/s]
14195230it [00:09, 1609699.93it/s]
14360484it [00:09, 1622375.10it/s]
14527811it [00:09, 1637518.55it/s]
14698453it [00:09, 1658066.23it/s]
14864976it [00:09, 1660030.02it/s]
15031028it [00:09, 1654572.78it/s]
15198757it [00:09, 1661192.85it/s]
15364905it [00:09, 1659997.08it/s]
15530925it [00:10, 1637352.49it/s]
15640161it [00:10, 1549154.97it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth.gz > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth_hist.tsv
cat tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00596_B23MVV7LT4_1.md -output tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bam > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bam > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/tih_rna_sample_00596_B23MVV7LT4_1.md.depth.gz> tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bam > tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00596_B23MVV7LT4_1.md.bai
cat tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1.md -output tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00596_B23MVV7LT4_1/tih_rna_sample_00596_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_00596_B23MVV7LT4_1/tih_rna_sample_00596_B23MVV7LT4_1_full_basic_stats.tsv