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/fd/8f399c2ea16f9ab7f270e51a60a336/.command.sh
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/8f/aa01862f9d34d23525d80b75097ca4/aih-tih-sc-01eb49-R1_A23YTGFLT4_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/fd/8f399c2ea16f9ab7f270e51a60a336/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/8f/aa01862f9d34d23525d80b75097ca4/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam
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 aih-tih-sc-01eb49-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-01eb49-R1_A23YTGFLT4_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 aih-tih-sc-01eb49-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_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: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s]
146151it [00:00, 1461406.87it/s]
309872it [00:00, 1564781.04it/s]
477139it [00:00, 1614014.84it/s]
645405it [00:00, 1640960.58it/s]
818601it [00:00, 1673642.72it/s]
990257it [00:00, 1688209.04it/s]
1160299it [00:00, 1692161.74it/s]
1334425it [00:00, 1707758.02it/s]
1507139it [00:00, 1713798.10it/s]
1678828it [00:01, 1714734.16it/s]
1850302it [00:01, 1700587.16it/s]
2020387it [00:01, 1680572.09it/s]
2188505it [00:01, 1677556.79it/s]
2358425it [00:01, 1684010.45it/s]
2527949it [00:01, 1687269.94it/s]
2698661it [00:01, 1693113.13it/s]
2867994it [00:01, 1688683.42it/s]
3040259it [00:01, 1698767.86it/s]
3210152it [00:01, 1694516.40it/s]
3379616it [00:02, 1674812.56it/s]
3547898it [00:02, 1677005.22it/s]
3717012it [00:02, 1681088.47it/s]
3885523it [00:02, 1682263.99it/s]
4056142it [00:02, 1689384.71it/s]
4225123it [00:02, 1689488.34it/s]
4394085it [00:02, 1683829.90it/s]
4566869it [00:02, 1696964.89it/s]
4738730it [00:02, 1703343.90it/s]
4909076it [00:02, 1687588.39it/s]
5077874it [00:03, 1682831.56it/s]
5249807it [00:03, 1693675.64it/s]
5422123it [00:03, 1702457.99it/s]
5592494it [00:03, 1702815.70it/s]
5763043it [00:03, 1703573.86it/s]
5935428it [00:03, 1709461.74it/s]
6106384it [00:03, 1701569.67it/s]
6276555it [00:03, 1690983.18it/s]
6445674it [00:03, 1690349.15it/s]
6614723it [00:03, 1685095.61it/s]
6783244it [00:04, 1680087.05it/s]
6951760it [00:04, 1681580.71it/s]
7120772it [00:04, 1684112.47it/s]
7289189it [00:04, 1683766.38it/s]
7458078it [00:04, 1685264.29it/s]
7631202it [00:04, 1698995.98it/s]
7801106it [00:04, 1695887.42it/s]
7970699it [00:04, 1692044.47it/s]
8139908it [00:04, 1690424.07it/s]
8309148it [00:04, 1690996.36it/s]
8484286it [00:05, 1709055.24it/s]
8657443it [00:05, 1715770.07it/s]
8830912it [00:05, 1721421.23it/s]
9003058it [00:05, 1708896.49it/s]
9173971it [00:05, 1705913.89it/s]
9344578it [00:05, 1704378.31it/s]
9515027it [00:05, 1696254.08it/s]
9684666it [00:05, 1693153.12it/s]
9854581it [00:05, 1694925.46it/s]
10024081it [00:05, 1693574.07it/s]
10193443it [00:06, 1689455.16it/s]
10365603it [00:06, 1699041.54it/s]
10535514it [00:06, 1696199.06it/s]
10706286it [00:06, 1699626.63it/s]
10878601it [00:06, 1706651.25it/s]
11049359it [00:06, 1706911.64it/s]
11220054it [00:06, 1695496.81it/s]
11389623it [00:06, 1692395.97it/s]
11558876it [00:06, 1687915.56it/s]
11728027it [00:06, 1688971.65it/s]
11897657it [00:07, 1691144.12it/s]
12066778it [00:07, 1691075.05it/s]
12235890it [00:07, 1688533.53it/s]
12404747it [00:07, 1686344.16it/s]
12573384it [00:07, 1678871.52it/s]
12741279it [00:07, 1676656.74it/s]
12908958it [00:07, 1676559.72it/s]
13076888it [00:07, 1677362.96it/s]
13244627it [00:07, 1669170.92it/s]
13412494it [00:07, 1671943.90it/s]
13580333it [00:08, 1673778.37it/s]
13748556it [00:08, 1676291.27it/s]
13916191it [00:08, 1668856.10it/s]
14083087it [00:08, 1663474.98it/s]
14249444it [00:08, 1662003.29it/s]
14261288it [00:08, 1687263.93it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md -output aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_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 aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_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 aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_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 aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_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: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1.md -output aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed aih-tih-sc-01eb49-R1_A23YTGFLT4_1/aih-tih-sc-01eb49-R1_A23YTGFLT4_1_full_basic_stats.tsv