Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/3e/e00fb722bd8a15a02a4dd5f224abd4/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bam
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/4f/36534c59d13b38b8932b9ac401c7ab/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/3e/e00fb722bd8a15a02a4dd5f224abd4/aih-tih-sc-1ffee4-R1_A23WJ53LT4_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/4f/36534c59d13b38b8932b9ac401c7ab/.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-1ffee4-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
148948it [00:00, 1488434.55it/s]
310764it [00:00, 1564275.04it/s]
474888it [00:00, 1599375.51it/s]
638669it [00:00, 1614511.62it/s]
804876it [00:00, 1631177.28it/s]
967994it [00:00, 1630749.23it/s]
1135256it [00:00, 1644408.86it/s]
1302418it [00:00, 1653045.98it/s]
1467724it [00:00, 1645839.24it/s]
1633500it [00:01, 1649430.86it/s]
1798450it [00:01, 1644856.22it/s]
1967538it [00:01, 1658778.86it/s]
2133425it [00:01, 1653791.70it/s]
2303246it [00:01, 1667133.53it/s]
2472459it [00:01, 1674626.93it/s]
2641280it [00:01, 1678514.65it/s]
2809139it [00:01, 1675947.29it/s]
2978189it [00:01, 1680112.31it/s]
3146205it [00:01, 1678810.34it/s]
3314090it [00:02, 1640677.46it/s]
3479347it [00:02, 1644165.71it/s]
3643902it [00:02, 1641484.21it/s]
3809472it [00:02, 1645607.43it/s]
3974938it [00:02, 1648259.75it/s]
4139815it [00:02, 1633428.84it/s]
4303218it [00:02, 1604635.73it/s]
4467944it [00:02, 1617148.06it/s]
4632567it [00:02, 1625679.16it/s]
4797082it [00:02, 1631433.84it/s]
4965025it [00:03, 1645705.96it/s]
5129655it [00:03, 1553766.71it/s]
5286103it [00:03, 1540194.13it/s]
5443156it [00:03, 1548926.70it/s]
5601735it [00:03, 1559667.31it/s]
5758111it [00:03, 1546280.00it/s]
5923649it [00:03, 1578337.02it/s]
6081751it [00:03, 1541481.97it/s]
6236236it [00:03, 1511596.01it/s]
6387692it [00:03, 1388454.00it/s]
6543221it [00:04, 1434299.24it/s]
6699012it [00:04, 1469198.48it/s]
6867122it [00:04, 1530108.83it/s]
7032374it [00:04, 1565692.75it/s]
7198597it [00:04, 1593900.75it/s]
7369430it [00:04, 1627669.28it/s]
7538770it [00:04, 1647086.34it/s]
7711533it [00:04, 1671050.26it/s]
7881987it [00:04, 1681021.98it/s]
8055923it [00:04, 1698437.50it/s]
8226896it [00:05, 1701798.89it/s]
8397193it [00:05, 1699125.74it/s]
8568100it [00:05, 1702085.05it/s]
8738367it [00:05, 1694139.36it/s]
8907829it [00:05, 1689642.20it/s]
9077977it [00:05, 1693155.35it/s]
9247319it [00:05, 1633473.42it/s]
9411121it [00:05, 1606934.42it/s]
9575235it [00:05, 1616854.73it/s]
9740864it [00:06, 1628402.91it/s]
9908807it [00:06, 1643451.19it/s]
10075387it [00:06, 1649836.57it/s]
10242780it [00:06, 1656968.71it/s]
10410750it [00:06, 1663735.75it/s]
10527950it [00:06, 1623223.64it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md -output aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1.md -output aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-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-1ffee4-R1_A23WJ53LT4_1/aih-tih-sc-1ffee4-R1_A23WJ53LT4_1_full_basic_stats.tsv