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/29/eeb2ad7e373e279293fee19005ee48/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/09/ad5e3f531e0e19df423f1a8ee61dd4/659_bMa-T1-TRNA-1_B23MHV2LT4_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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/29/eeb2ad7e373e279293fee19005ee48/.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-rnd-pltf-dev-nextflow-scratch-01/work/09/ad5e3f531e0e19df423f1a8ee61dd4/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir 659_bMa-T1-TRNA-1_B23MHV2LT4_1
+ all_qc -bam 659_bMa-T1-TRNA-1_B23MHV2LT4_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 659_bMa-T1-TRNA-1_B23MHV2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed
saturation_plot -bams 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam -bed 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/saturation_qc.tsv
fragment_size -bams 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output_prefix 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.mpileup && contamination -input 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_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: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
0it [00:00, ?it/s]
136660it [00:00, 1366448.18it/s]
297704it [00:00, 1509920.48it/s]
462697it [00:00, 1573800.13it/s]
631454it [00:00, 1618610.24it/s]
801164it [00:00, 1646870.37it/s]
971750it [00:00, 1666853.22it/s]
1140120it [00:00, 1672328.37it/s]
1317602it [00:00, 1704920.40it/s]
1494279it [00:00, 1724224.11it/s]
1671664it [00:01, 1739513.65it/s]
1845616it [00:01, 1725267.28it/s]
2024587it [00:01, 1744566.81it/s]
2205758it [00:01, 1764670.59it/s]
2385383it [00:01, 1774153.76it/s][W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
2565821it [00:01, 1783216.02it/s]
2744374it [00:01, 1783845.56it/s]
2922771it [00:01, 1771447.90it/s]
3099943it [00:01, 1760446.80it/s]
3276017it [00:01, 1760219.64it/s]
3452059it [00:02, 1757898.30it/s]
3631693it [00:02, 1769344.69it/s]
3812058it [00:02, 1779570.76it/s]
3990030it [00:02, 1760770.17it/s]
4170180it [00:02, 1772832.98it/s]
4351084it [00:02, 1783577.23it/s]
4529482it [00:02, 1750634.40it/s]
4704697it [00:02, 1745788.57it/s]
4886083it [00:02, 1765895.57it/s]
5068735it [00:02, 1783768.15it/s]
5249892it [00:03, 1792016.31it/s]
5432163it [00:03, 1801139.14it/s]
5613909it [00:03, 1805978.42it/s]
5796046it [00:03, 1810542.94it/s]
5979087it [00:03, 1816418.46it/s]
6160749it [00:03, 1790529.03it/s]
6339897it [00:03, 1759943.86it/s][W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
6522493it [00:03, 1779323.91it/s]
6700572it [00:03, 1776362.76it/s]
6878309it [00:03, 1775366.15it/s]
7055915it [00:04, 1770496.94it/s]
7235460it [00:04, 1777889.49it/s]
7417502it [00:04, 1790548.40it/s]
7601039it [00:04, 1803909.96it/s]
7783455it [00:04, 1809932.79it/s][W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
7967167it [00:04, 1818045.24it/s]
8113870it [00:04, 1754310.75it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv
cat 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md -output 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_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 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_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 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz> 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_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 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_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: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bMa-T1-TRNA-1_B23MHV2LT4_1.md.bai
cat 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "659_bMa-T1-TRNA-1_B23MHV2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md/qc_complete.txt
+ merge_qc -folders 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1.md -output 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv
+ head -n1 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_bMa-T1-TRNA-1_B23MHV2LT4_1/659_bMa-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv