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/80/008de0e5466c00319ab269b6667c20/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/94/787b9ca6b5645f1d5da38d1058352c/tih_rna_sample_00576_B23MVV7LT4_1.md.bam
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/94/787b9ca6b5645f1d5da38d1058352c/tih_rna_sample_00576_B23MVV7LT4_1.md.bai
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/80/008de0e5466c00319ab269b6667c20/.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_00576_B23MVV7LT4_1
+ all_qc -bam tih_rna_sample_00576_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_00576_B23MVV7LT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00576_B23MVV7LT4_1.md.bam -bed tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth.gz
saturation_plot -bams tih_rna_sample_00576_B23MVV7LT4_1.md.bam -region chr20 -output tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00576_B23MVV7LT4_1.md.bam > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/saturation_qc.tsv
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed tih_rna_sample_00576_B23MVV7LT4_1.md.bam > tih_rna_sample_00576_B23MVV7LT4_1.md.mpileup && contamination -input tih_rna_sample_00576_B23MVV7LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/contamination.tsv
fragment_size -bams tih_rna_sample_00576_B23MVV7LT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/fragsize -threads 1
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
0it [00:00, ?it/s]
107161it [00:00, 1071276.43it/s]
245732it [00:00, 1256142.13it/s]
393660it [00:00, 1357986.43it/s]
549905it [00:00, 1438670.94it/s]
709415it [00:00, 1494918.06it/s]
865017it [00:00, 1515661.46it/s]
1022825it [00:00, 1535935.77it/s]
1177874it [00:00, 1540488.40it/s]
1345203it [00:00, 1581971.53it/s]
1507994it [00:01, 1596119.95it/s]
1669364it [00:01, 1601472.35it/s]
1836090it [00:01, 1621453.04it/s]
1998236it [00:01, 1548025.36it/s]
2161522it [00:01, 1572801.47it/s]
2319419it [00:01, 1574447.78it/s]
2483526it [00:01, 1594153.41it/s]
2651481it [00:01, 1619510.06it/s]
2819782it [00:01, 1638409.02it/s]
2983811it [00:01, 1626835.40it/s]
3146639it [00:02, 1579553.82it/s]
3313667it [00:02, 1606027.47it/s]
3483749it [00:02, 1633889.83it/s]
3656465it [00:02, 1661457.20it/s]
3822848it [00:02, 1656784.65it/s]
3988692it [00:02, 1630124.55it/s]
4151897it [00:02, 1611278.35it/s]
4322066it [00:02, 1637802.58it/s]
4486010it [00:02, 1496117.40it/s]
4637990it [00:03, 1377468.96it/s]
4804753it [00:03, 1454950.31it/s]
4970725it [00:03, 1511469.93it/s]
5124500it [00:03, 1401188.39it/s]
5267712it [00:03, 1335490.09it/s]
5403636it [00:03, 1284279.52it/s]
5533730it [00:03, 1246368.68it/s]
5659440it [00:03, 1224194.85it/s]
5782497it [00:03, 1225769.88it/s]
5905535it [00:03, 1213875.32it/s]
6027203it [00:04, 1189589.38it/s]
6146355it [00:04, 1167688.39it/s]
6263248it [00:04, 1131749.22it/s]
6376599it [00:04, 1124698.90it/s]
6489163it [00:04, 1118958.55it/s]
6601106it [00:04, 1114713.70it/s]
6736630it [00:04, 1184854.56it/s]
6863438it [00:04, 1209313.65it/s]
6984568it [00:04, 1189060.16it/s]
7103666it [00:05, 1185125.19it/s]
7222308it [00:05, 1182985.83it/s]
7340694it [00:05, 1167639.81it/s]
7457545it [00:05, 1163647.71it/s]
7576804it [00:05, 1172172.90it/s]
7694798it [00:05, 1174396.56it/s]
7812286it [00:05, 1174520.77it/s]
7930487it [00:05, 1176735.22it/s]
8048182it [00:05, 1170868.74it/s]
8165289it [00:05, 1160468.76it/s]
8282750it [00:06, 1164645.63it/s]
8399541it [00:06, 1165595.59it/s]
8517875it [00:06, 1170745.40it/s]
8636048it [00:06, 1174009.40it/s]
8753461it [00:06, 1171917.39it/s]
8916466it [00:06, 1308908.12it/s]
9082457it [00:06, 1413953.61it/s]
9240103it [00:06, 1462609.18it/s]
9407065it [00:06, 1524617.33it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
9569904it [00:06, 1555678.53it/s]
9727883it [00:07, 1562885.96it/s]
9897028it [00:07, 1601365.48it/s]
10060828it [00:07, 1612330.90it/s]
10233366it [00:07, 1646212.34it/s]
10408552it [00:07, 1677876.43it/s]
10576347it [00:07, 1647855.89it/s]
10750571it [00:07, 1675787.36it/s]
10922412it [00:07, 1688434.13it/s]
11100966it [00:07, 1717357.86it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
11274602it [00:07, 1722929.55it/s]
11446958it [00:08, 1678708.46it/s]
11620964it [00:08, 1696715.97it/s]
11794733it [00:08, 1708670.91it/s]
11965782it [00:08, 1695820.91it/s]
12141109it [00:08, 1712815.96it/s]
12314394it [00:08, 1718749.01it/s]
12488190it [00:08, 1724391.09it/s]
12660695it [00:08, 1702243.11it/s]
12831021it [00:08, 1696248.14it/s]
13000715it [00:08, 1694375.80it/s]
13170200it [00:09, 1675460.77it/s]
13337812it [00:09, 1653046.95it/s]
13512408it [00:09, 1680359.09it/s]
13685530it [00:09, 1695384.66it/s]
13857446it [00:09, 1702339.96it/s]
14036249it [00:09, 1727852.06it/s]
14210034it [00:09, 1730814.32it/s]
14385026it [00:09, 1736502.67it/s]
14558714it [00:09, 1734450.18it/s]
14733595it [00:09, 1738610.11it/s]
14819642it [00:10, 1477112.83it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth.gz > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth_hist.tsv
cat tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00576_B23MVV7LT4_1.md -output tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bam > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bam > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/tih_rna_sample_00576_B23MVV7LT4_1.md.depth.gz> tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bam > tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00576_B23MVV7LT4_1.md.bai
cat tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1.md -output tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00576_B23MVV7LT4_1/tih_rna_sample_00576_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_00576_B23MVV7LT4_1/tih_rna_sample_00576_B23MVV7LT4_1_full_basic_stats.tsv