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/bc/95334ae44d96f153c873e6e1688616/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/9a/dce86a45bb0a8683c7e84420f4df5c/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/9a/dce86a45bb0a8683c7e84420f4df5c/aih-tih-sc-a03f86-R1_B23WHYVLT4_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/bc/95334ae44d96f153c873e6e1688616/.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 aih-tih-sc-a03f86-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bam -region chr20 -output aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
0it [00:00, ?it/s]
110187it [00:00, 1101789.62it/s]
255813it [00:00, 1310251.98it/s]
404021it [00:00, 1388593.78it/s]
552419it [00:00, 1426215.48it/s]
700317it [00:00, 1445216.01it/s]
847940it [00:00, 1455737.12it/s]
996881it [00:00, 1466719.24it/s]
1146598it [00:00, 1476390.93it/s]
1297607it [00:00, 1486903.63it/s]
1446298it [00:01, 1484133.65it/s]
1594713it [00:01, 1484065.54it/s]
1743121it [00:01, 1481728.70it/s]
1891975it [00:01, 1483764.26it/s]
2041972it [00:01, 1488627.83it/s]
2191228it [00:01, 1489650.98it/s]
2340195it [00:01, 1480069.29it/s]
2488217it [00:01, 1473991.07it/s]
2638738it [00:01, 1483287.18it/s]
2787082it [00:01, 1472987.36it/s]
2934404it [00:02, 1464049.00it/s]
3082607it [00:02, 1469364.11it/s]
3231967it [00:02, 1476450.04it/s]
3383438it [00:02, 1487854.62it/s]
3532243it [00:02, 1482108.50it/s]
3680471it [00:02, 1479964.15it/s]
3828479it [00:02, 1475032.72it/s]
3977009it [00:02, 1478073.11it/s]
4124825it [00:02, 1471665.83it/s]
4272002it [00:02, 1459778.07it/s]
4419342it [00:03, 1463805.63it/s]
4568877it [00:03, 1473185.85it/s]
4718139it [00:03, 1478966.41it/s]
4869402it [00:03, 1489007.39it/s]
5021087it [00:03, 1497159.13it/s]
5171406it [00:03, 1498912.14it/s]
5322514it [00:03, 1502528.31it/s]
5478035it [00:03, 1518296.41it/s]
5630154it [00:03, 1519035.16it/s]
5782071it [00:03, 1519051.05it/s]
5933980it [00:04, 1509166.14it/s]
6084914it [00:04, 1493554.44it/s]
6234311it [00:04, 1485854.42it/s]
6382927it [00:04, 1481022.19it/s]
6455338it [00:04, 1475618.25it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth.gz > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth_hist.tsv
cat aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md -output aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.depth.gz> aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md.bai
cat aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1.md -output aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_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-a03f86-R1_B23WHYVLT4_1/aih-tih-sc-a03f86-R1_B23WHYVLT4_1_full_basic_stats.tsv