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/0c/e0ca075b1c811ec8f9e819309c4bd1/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/6f/aa726391a4b3f0fc0720651e838594/659_b7Z-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/6f/aa726391a4b3f0fc0720651e838594/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0c/e0ca075b1c811ec8f9e819309c4bd1/.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 659_b7Z-T1-TRNA-1_B23MHV2LT4_1
+ all_qc -bam 659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed
saturation_plot -bams 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam -bed 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/saturation_qc.tsv
fragment_size -bams 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam -region chr20 -output_prefix 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.mpileup && contamination -input 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
149510it [00:00, 1494798.50it/s]
313593it [00:00, 1580504.74it/s]
479782it [00:00, 1617626.61it/s]
645392it [00:00, 1632670.43it/s]
811287it [00:00, 1642124.00it/s]
978998it [00:00, 1654000.08it/s]
1144399it [00:00, 1652264.06it/s]
1312671it [00:00, 1661937.80it/s]
1479282it [00:00, 1663225.79it/s]
1646187it [00:01, 1664847.28it/s]
1812673it [00:01, 1663881.90it/s]
1979142it [00:01, 1664101.52it/s]
2145553it [00:01, 1657300.37it/s]
2311290it [00:01, 1656804.45it/s]
2483677it [00:01, 1676953.28it/s]
2653725it [00:01, 1684006.30it/s]
2822133it [00:01, 1681324.89it/s]
2990271it [00:01, 1678281.91it/s]
3158104it [00:01, 1674429.46it/s]
3325552it [00:02, 1658824.12it/s]
3491466it [00:02, 1657073.40it/s]
3657733it [00:02, 1658727.49it/s]
3825737it [00:02, 1665076.32it/s]
3992859it [00:02, 1666752.23it/s]
4160226it [00:02, 1668807.62it/s]
4327205it [00:02, 1669085.64it/s]
4494120it [00:02, 1666294.81it/s]
4660755it [00:02, 1665259.81it/s]
4828816it [00:02, 1669776.98it/s]
4995797it [00:03, 1668965.95it/s]
5162696it [00:03, 1652952.80it/s]
5329562it [00:03, 1657614.20it/s]
5495826it [00:03, 1658992.77it/s]
5666224it [00:03, 1672424.93it/s]
5833486it [00:03, 1664726.87it/s]
6000421it [00:03, 1666090.59it/s]
6167045it [00:03, 1662552.66it/s]
6333311it [00:03, 1657466.69it/s]
6499067it [00:03, 1650453.14it/s]
6664123it [00:04, 1640761.15it/s]
6828273it [00:04, 1640963.90it/s]
6992783it [00:04, 1642182.48it/s]
7159746it [00:04, 1650366.77it/s]
7325854it [00:04, 1653543.28it/s]
7492976it [00:04, 1658699.42it/s]
7660051it [00:04, 1662281.02it/s]
7826284it [00:04, 1659276.66it/s]
7992657it [00:04, 1660583.16it/s]
8158899it [00:04, 1661108.98it/s]
8325013it [00:05, 1660564.65it/s]
8491072it [00:05, 1656401.60it/s]
8657318it [00:05, 1658186.80it/s]
8823140it [00:05, 1645504.26it/s]
8990027it [00:05, 1652392.13it/s]
9156608it [00:05, 1656375.72it/s]
9323845it [00:05, 1661137.53it/s]
9492445it [00:05, 1668554.65it/s]
9659798it [00:05, 1669898.64it/s]
9829415it [00:05, 1677748.35it/s]
9997197it [00:06, 1671093.26it/s]
10164520it [00:06, 1671588.41it/s]
10331686it [00:06, 1652273.52it/s]
10496965it [00:06, 1651828.43it/s]
10666636it [00:06, 1665178.24it/s]
10833935it [00:06, 1667489.12it/s]
11000710it [00:06, 1667483.20it/s]
11167477it [00:06, 1665056.75it/s]
11333996it [00:06, 1662568.89it/s]
11500900it [00:06, 1664484.65it/s]
11668270it [00:07, 1667224.82it/s]
11836994it [00:07, 1673202.94it/s]
12005017it [00:07, 1675292.55it/s]
12172550it [00:07, 1667215.70it/s]
12339283it [00:07, 1666841.81it/s]
12443725it [00:07, 1660579.91it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv
cat 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md -output 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.depth.gz> 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bam > 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md.bai
cat 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md/qc_complete.txt
+ merge_qc -folders 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1.md -output 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv
+ head -n1 659_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-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_b7Z-T1-TRNA-1_B23MHV2LT4_1/659_b7Z-T1-TRNA-1_B23MHV2LT4_1_full_basic_stats.tsv