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/26/87209b261cef584231467305bfbe42/.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/44/53484021ab132d703149a3c4848796/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/26/87209b261cef584231467305bfbe42/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/44/53484021ab132d703149a3c4848796/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]
155267it [00:00, 1552512.32it/s]
322720it [00:00, 1624237.50it/s]
493185it [00:00, 1660916.88it/s]
666295it [00:00, 1688495.27it/s]
843997it [00:00, 1720385.17it/s]
1019184it [00:00, 1730979.12it/s]
1194308it [00:00, 1737579.85it/s]
1372782it [00:00, 1752566.34it/s]
1548330it [00:00, 1753450.23it/s]
1723878it [00:01, 1754052.82it/s]
1899284it [00:01, 1743599.14it/s]
2073658it [00:01, 1703061.65it/s]
2244164it [00:01, 1664882.63it/s]
2410916it [00:01, 1649036.13it/s]
2575994it [00:01, 1592542.18it/s]
2735657it [00:01, 1526724.22it/s]
2901553it [00:01, 1564077.60it/s]
3076990it [00:01, 1618786.44it/s]
3245565it [00:01, 1626958.97it/s]
3417061it [00:02, 1652663.50it/s]
3588678it [00:02, 1671351.32it/s]
3756150it [00:02, 1671402.96it/s]
3929870it [00:02, 1690803.51it/s]
4100891it [00:02, 1696564.72it/s]
4272396it [00:02, 1702058.47it/s]
4444734it [00:02, 1708377.37it/s]
4620242it [00:02, 1722331.80it/s]
4792527it [00:02, 1711403.01it/s]
4963718it [00:02, 1710239.86it/s]
5134777it [00:03, 1710221.92it/s]
5306706it [00:03, 1712906.04it/s]
5480100it [00:03, 1719175.50it/s]
5652032it [00:03, 1717206.93it/s]
5823763it [00:03, 1532097.07it/s]
5980680it [00:03, 1541045.69it/s]
6148902it [00:03, 1580943.28it/s]
6315402it [00:03, 1605103.91it/s]
6484407it [00:03, 1629758.60it/s]
6649581it [00:03, 1636139.10it/s]
6819470it [00:04, 1654670.01it/s]
6987176it [00:04, 1661296.67it/s]
7156639it [00:04, 1671204.13it/s]
7328387it [00:04, 1684891.56it/s]
7500932it [00:04, 1696994.22it/s]
7675118it [00:04, 1710397.35it/s]
7846978it [00:04, 1712608.49it/s]
8019312it [00:04, 1715765.29it/s]
8192368it [00:04, 1720175.33it/s]
8366519it [00:04, 1726458.31it/s]
8544550it [00:05, 1742543.55it/s]
8721162it [00:05, 1749590.44it/s]
8896622it [00:05, 1751069.59it/s]
9071740it [00:05, 1680490.71it/s]
9240403it [00:05, 1580747.52it/s]
9399927it [00:05, 1571549.80it/s]
9570219it [00:05, 1608949.85it/s]
9739438it [00:05, 1633001.94it/s]
9910590it [00:05, 1655932.47it/s]
10079918it [00:06, 1666912.75it/s]
10251746it [00:06, 1682097.78it/s]
10423805it [00:06, 1693408.79it/s]
10596692it [00:06, 1703956.43it/s]
10770284it [00:06, 1713476.71it/s]
10942575it [00:06, 1716131.96it/s]
11116993it [00:06, 1724504.56it/s]
11289504it [00:06, 1712445.21it/s]
11460809it [00:06, 1712522.55it/s]
11632104it [00:06, 1709532.74it/s]
11804296it [00:07, 1713210.27it/s]
11975640it [00:07, 1711397.62it/s]
12146853it [00:07, 1711550.06it/s]
12318268it [00:07, 1712254.38it/s]
12489801it [00:07, 1713150.51it/s]
12661122it [00:07, 1708397.20it/s]
12831969it [00:07, 1707216.26it/s]
13004669it [00:07, 1713110.93it/s]
13177294it [00:07, 1717023.27it/s]
13349001it [00:07, 1716054.53it/s]
13523599it [00:08, 1724995.79it/s]
13696221it [00:08, 1725333.63it/s]
13868757it [00:08, 1693641.52it/s]
14038252it [00:08, 1693579.92it/s]
14207701it [00:08, 1691801.40it/s]
14261288it [00:08, 1682189.88it/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