Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/cb/93150769d480d8dfbec8258f167f9d/659_bua-T1-TRNA-1_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-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/aa/d8bab50a2f48a1359c60142e0dbc49/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/cb/93150769d480d8dfbec8258f167f9d/659_bua-T1-TRNA-1_B23WHTKLT4_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-platform-sandbox/pipeline-resources/AIH/rna/GRCh38/gatk4/dbsnp_hg38_contam_sites.bed
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/aa/d8bab50a2f48a1359c60142e0dbc49/.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_bua-T1-TRNA-1_B23WHTKLT4_1
+ all_qc -bam 659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed
seqtool depth -bam 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam -bed 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
saturation_plot -bams 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam -region chr20 -output 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/saturation_qc.tsv
fragment_size -bams 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam -region chr20 -output_prefix 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.mpileup && contamination -input 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_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: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
0it [00:00, ?it/s]
156827it [00:00, 1568166.81it/s][W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
324258it [00:00, 1630557.47it/s]
493505it [00:00, 1658587.77it/s]
666868it [00:00, 1688174.57it/s]
840415it [00:00, 1705193.67it/s]
1013377it [00:00, 1713469.48it/s]
1185511it [00:00, 1716014.84it/s]
1360590it [00:00, 1727058.05it/s]
1535448it [00:00, 1733761.80it/s]
1708826it [00:01, 1733734.75it/s]
1882626it [00:01, 1735012.74it/s]
2056128it [00:01, 1729735.18it/s]
2229106it [00:01, 1723037.33it/s]
2402847it [00:01, 1727332.30it/s]
2580938it [00:01, 1743403.80it/s]
2756805it [00:01, 1747938.55it/s]
2931607it [00:01, 1744621.41it/s]
3106076it [00:01, 1742623.52it/s]
3280343it [00:01, 1742109.08it/s]
3454557it [00:02, 1716918.92it/s]
3627233it [00:02, 1719808.94it/s]
3801024it [00:02, 1725101.13it/s]
3973580it [00:02, 1710938.96it/s]
4145949it [00:02, 1714697.57it/s]
4317459it [00:02, 1714020.40it/s]
4492315it [00:02, 1724305.67it/s]
4664770it [00:02, 1722677.52it/s]
4837055it [00:02, 1706507.36it/s]
5009042it [00:02, 1710454.54it/s]
5180121it [00:03, 1662238.32it/s]
5346640it [00:03, 1649271.83it/s]
5515006it [00:03, 1659328.40it/s]
5681103it [00:03, 1636054.79it/s]
5851407it [00:03, 1655697.54it/s]
6024892it [00:03, 1679060.41it/s]
6194658it [00:03, 1684506.56it/s]
6363214it [00:03, 1668224.00it/s]
6535477it [00:03, 1684322.03it/s]
6704496it [00:03, 1685990.16it/s]
6874390it [00:04, 1689653.99it/s]
7045935it [00:04, 1697334.57it/s][W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
7218038it [00:04, 1704399.07it/s]
7388506it [00:04, 1699498.28it/s]
7558478it [00:04, 1689035.27it/s]
7728487it [00:04, 1692304.31it/s]
7900451it [00:04, 1700441.98it/s]
8072548it [00:04, 1706555.79it/s]
8243219it [00:04, 1705090.09it/s]
8413739it [00:04, 1700318.45it/s]
8584848it [00:05, 1703513.37it/s]
8757055it [00:05, 1709041.26it/s]
8929447it [00:05, 1713435.08it/s]
9100796it [00:05, 1709640.40it/s]
9274157it [00:05, 1716782.35it/s]
9448469it [00:05, 1724634.81it/s]
9622364it [00:05, 1728897.44it/s]
9796995it [00:05, 1733982.11it/s]
9970397it [00:05, 1728806.40it/s]
10143284it [00:05, 1593554.92it/s]
10307174it [00:06, 1606350.68it/s]
10479052it [00:06, 1638667.92it/s]
10651620it [00:06, 1663934.47it/s]
10822746it [00:06, 1677815.80it/s]
10991202it [00:06, 1677212.85it/s]
11159475it [00:06, 1678687.11it/s]
11327676it [00:06, 1675366.19it/s]
11498282it [00:06, 1684481.43it/s]
11672685it [00:06, 1702223.09it/s]
11845719it [00:06, 1710603.35it/s]
12020805it [00:07, 1722591.93it/s]
12193767it [00:07, 1724671.13it/s]
12369184it [00:07, 1733410.79it/s]
12542560it [00:07, 1730361.68it/s]
12715622it [00:07, 1713858.98it/s]
12887059it [00:07, 1699257.55it/s]
13057038it [00:07, 1683521.27it/s]
13225787it [00:07, 1684665.13it/s]
13398657it [00:07, 1697713.72it/s]
13569816it [00:07, 1701814.08it/s]
13740845it [00:08, 1704286.08it/s]
13911828it [00:08, 1705921.83it/s][W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
14086761it [00:08, 1718885.85it/s]
14219787it [00:08, 1701140.82it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv
cat 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_bua-T1-TRNA-1_B23WHTKLT4_1.md -output 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/659_bua-T1-TRNA-1_B23WHTKLT4_1.md.depth.gz> 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_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 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bam > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_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: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bua-T1-TRNA-1_B23WHTKLT4_1.md.bai
cat 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "659_bua-T1-TRNA-1_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md/qc_complete.txt
+ merge_qc -folders 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1.md -output 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_bua-T1-TRNA-1_B23WHTKLT4_1/659_bua-T1-TRNA-1_B23WHTKLT4_1_full_basic_stats.tsv