Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d3/b3654ddb3b9ba069c1362638636940/tih_rna_sample_00149_B23WHTKLT4_1.md.bai
Downloading: s3://natera-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/starfusion/ctat_genome_lib_build_dir/ref_genome.fa
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/aa/a73aaa986e4801613b4175da35b96e/.command.sh
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
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/aa/a73aaa986e4801613b4175da35b96e/.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/d3/b3654ddb3b9ba069c1362638636940/tih_rna_sample_00149_B23WHTKLT4_1.md.bam
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_00149_B23WHTKLT4_1
+ all_qc -bam tih_rna_sample_00149_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_00149_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/full_bed.bed
saturation_plot -bams tih_rna_sample_00149_B23WHTKLT4_1.md.bam -region chr20 -output tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam tih_rna_sample_00149_B23WHTKLT4_1.md.bam -bed tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00149_B23WHTKLT4_1.md.bam > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00149_B23WHTKLT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bam > tih_rna_sample_00149_B23WHTKLT4_1.md.mpileup && contamination -input tih_rna_sample_00149_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
0it [00:00, ?it/s]
150943it [00:00, 1509334.28it/s]
312025it [00:00, 1568982.67it/s]
474938it [00:00, 1596415.78it/s]
638732it [00:00, 1612781.86it/s]
804510it [00:00, 1628981.99it/s]
971788it [00:00, 1643846.78it/s]
1136173it [00:00, 1642455.52it/s]
1301099it [00:00, 1644597.24it/s]
1465560it [00:00, 1642137.74it/s]
1629775it [00:01, 1633624.52it/s]
1793147it [00:01, 1628524.89it/s]
1956008it [00:01, 1616993.03it/s]
2117726it [00:01, 1613295.56it/s]
2279067it [00:01, 1598138.90it/s]
2448238it [00:01, 1625986.58it/s]
2610891it [00:01, 1620753.85it/s]
2774707it [00:01, 1625924.60it/s]
2937330it [00:01, 1608091.35it/s]
3098196it [00:01, 1356215.28it/s]
3253369it [00:02, 1407686.01it/s]
3408298it [00:02, 1446370.73it/s]
3557070it [00:02, 1457655.62it/s]
3712888it [00:02, 1486406.33it/s]
3868423it [00:02, 1506387.75it/s]
4025708it [00:02, 1525763.88it/s]
4180985it [00:02, 1533706.70it/s]
4335517it [00:02, 1537121.99it/s]
4489820it [00:02, 1536933.01it/s]
4645297it [00:02, 1542071.04it/s]
4799797it [00:03, 1533728.24it/s]
4953383it [00:03, 1522616.72it/s]
5106968it [00:03, 1526512.73it/s]
5259943it [00:03, 1527446.76it/s]
5412770it [00:03, 1526370.09it/s]
5567800it [00:03, 1533396.49it/s]
5721652it [00:03, 1534905.21it/s]
5875173it [00:03, 1526167.40it/s]
6028924it [00:03, 1529524.58it/s]
6181901it [00:03, 1522874.58it/s]
6334210it [00:04, 1498749.55it/s]
6484173it [00:04, 1488659.64it/s]
6633102it [00:04, 1477235.40it/s]
6780873it [00:04, 1470655.50it/s]
6928550it [00:04, 1472449.87it/s]
7075819it [00:04, 1470714.26it/s]
7222906it [00:04, 1461863.43it/s]
7369374it [00:04, 1462681.79it/s]
7516389it [00:04, 1464886.25it/s]
7662888it [00:05, 1461373.89it/s]
7810688it [00:05, 1466310.50it/s]
7958817it [00:05, 1470767.60it/s]
8107117it [00:05, 1474406.35it/s]
8254564it [00:05, 1448156.22it/s]
8406805it [00:05, 1470014.83it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
8560625it [00:05, 1490250.47it/s]
8711278it [00:05, 1495076.89it/s]
8860908it [00:05, 1495421.19it/s]
9010498it [00:05, 1490890.76it/s]
9165430it [00:06, 1508322.88it/s]
9316295it [00:06, 1502031.10it/s]
9468358it [00:06, 1507560.68it/s]
9622161it [00:06, 1516648.98it/s]
9775076it [00:06, 1520371.62it/s]
9927128it [00:06, 1515068.57it/s]
10078648it [00:06, 1507326.43it/s]
10229397it [00:06, 1498407.58it/s]
10379256it [00:06, 1486502.65it/s]
10527931it [00:06, 1483894.93it/s]
10677910it [00:07, 1488600.18it/s]
10826786it [00:07, 1484377.70it/s]
10975235it [00:07, 1481651.31it/s]
11123407it [00:07, 1480080.02it/s]
11272916it [00:07, 1484534.87it/s]
11421375it [00:07, 1483802.97it/s]
11569836it [00:07, 1484024.72it/s]
11718719it [00:07, 1485445.88it/s]
11867266it [00:07, 1482362.87it/s]
12016293it [00:07, 1484713.80it/s]
12170890it [00:08, 1503041.54it/s]
12321199it [00:08, 1497178.08it/s]
12470925it [00:08, 1484946.66it/s]
12619755it [00:08, 1485926.87it/s]
12768366it [00:08, 1480557.67it/s]
12916587it [00:08, 1481030.52it/s]
13065306it [00:08, 1482852.25it/s]
13138356it [00:08, 1514353.95it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth.gz > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth_hist.tsv
cat tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00149_B23WHTKLT4_1.md -output tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bam > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bam > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/tih_rna_sample_00149_B23WHTKLT4_1.md.depth.gz> tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bam > tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00149_B23WHTKLT4_1.md.bai
cat tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1.md -output tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00149_B23WHTKLT4_1/tih_rna_sample_00149_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_00149_B23WHTKLT4_1/tih_rna_sample_00149_B23WHTKLT4_1_full_basic_stats.tsv