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/27/2d01a4a1939a5f65639ff6d7b538f4/.command.sh
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/c1/83f4b081b15e7cc5aa9a51b81281e3/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/27/2d01a4a1939a5f65639ff6d7b538f4/.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/c1/83f4b081b15e7cc5aa9a51b81281e3/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bam
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir aih-tih-sc-387c73-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
135576it [00:00, 1355283.07it/s]
286938it [00:00, 1448151.86it/s]
445921it [00:00, 1512804.76it/s]
613475it [00:00, 1577020.10it/s]
782289it [00:00, 1617065.67it/s]
954060it [00:00, 1651263.06it/s]
1123516it [00:00, 1665395.57it/s]
1294499it [00:00, 1679523.42it/s]
1467948it [00:00, 1696688.97it/s]
1637917it [00:01, 1697598.42it/s]
1809088it [00:01, 1701736.38it/s]
1981004it [00:01, 1707017.02it/s]
2151706it [00:01, 1690359.67it/s]
2328138it [00:01, 1712527.65it/s]
2502920it [00:01, 1723087.91it/s]
2675742it [00:01, 1724487.32it/s]
2848215it [00:01, 1720987.54it/s]
3023347it [00:01, 1730055.38it/s]
3197500it [00:01, 1733453.70it/s]
3370857it [00:02, 1705738.63it/s]
3543474it [00:02, 1711776.87it/s]
3717599it [00:02, 1720527.67it/s]
3893835it [00:02, 1732987.48it/s]
4067186it [00:02, 1731496.28it/s]
4240757it [00:02, 1732740.37it/s]
4414057it [00:02, 1730782.24it/s]
4588653it [00:02, 1735305.84it/s]
4762198it [00:02, 1734155.94it/s]
4935624it [00:02, 1729763.59it/s]
5108609it [00:03, 1709318.08it/s]
5279596it [00:03, 1673379.64it/s]
5452223it [00:03, 1688834.76it/s]
5626168it [00:03, 1703751.51it/s]
5798598it [00:03, 1709824.57it/s]
5971217it [00:03, 1714672.39it/s]
6143779it [00:03, 1717914.87it/s]
6316518it [00:03, 1720693.10it/s]
6488626it [00:03, 1713375.96it/s]
6663283it [00:03, 1723258.73it/s]
6835637it [00:04, 1714450.58it/s]
7007647it [00:04, 1716084.43it/s]
7180762it [00:04, 1720570.66it/s]
7352835it [00:04, 1720153.90it/s]
7526896it [00:04, 1726252.59it/s]
7700406it [00:04, 1728880.82it/s]
7873301it [00:04, 1722146.04it/s]
8045526it [00:04, 1709203.77it/s]
8218980it [00:04, 1716723.05it/s]
8390676it [00:04, 1713557.91it/s]
8562048it [00:05, 1711212.84it/s]
8733181it [00:05, 1705865.45it/s]
8907319it [00:05, 1716445.59it/s]
9078976it [00:05, 1710773.50it/s]
9253883it [00:05, 1722058.55it/s]
9429490it [00:05, 1732212.60it/s]
9603237it [00:05, 1733767.82it/s]
9779414it [00:05, 1742094.51it/s]
9953632it [00:05, 1737963.98it/s]
10127436it [00:05, 1733959.34it/s]
10300839it [00:06, 1721314.79it/s]
10475004it [00:06, 1727355.34it/s]
10647760it [00:06, 1716074.17it/s]
10819797it [00:06, 1717339.32it/s]
10992212it [00:06, 1719358.89it/s]
11164868it [00:06, 1721496.16it/s]
11337029it [00:06, 1714966.23it/s]
11509237it [00:06, 1717074.97it/s]
11683838it [00:06, 1725715.14it/s]
11856945it [00:06, 1727169.25it/s]
12032969it [00:07, 1737053.24it/s]
12206681it [00:07, 1728874.98it/s]
12379581it [00:07, 1725488.66it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
12552139it [00:07, 1724775.72it/s]
12694705it [00:07, 1709231.35it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-387c73-R1_A23WJ53LT4_1.md -output aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-387c73-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1.md -output aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_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-387c73-R1_A23WJ53LT4_1/aih-tih-sc-387c73-R1_A23WJ53LT4_1_full_basic_stats.tsv