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/2066711c070125a7369b4f03b58b0e/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/f3/b9b0de9220ef8c921b9b237a2b4dd3/aih-tih-sc-9ab390-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/2066711c070125a7369b4f03b58b0e/.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/f3/b9b0de9220ef8c921b9b237a2b4dd3/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
142629it [00:00, 1426141.75it/s]
301904it [00:00, 1524089.83it/s]
463774it [00:00, 1567240.21it/s]
632471it [00:00, 1614339.57it/s]
801329it [00:00, 1641058.46it/s]
971073it [00:00, 1660182.78it/s]
1142747it [00:00, 1678480.84it/s]
1311831it [00:00, 1682380.94it/s]
1480069it [00:00, 1654569.04it/s]
1645624it [00:01, 1619812.58it/s]
1808172it [00:01, 1621472.22it/s]
1971215it [00:01, 1623974.55it/s]
2138952it [00:01, 1639928.35it/s]
2310576it [00:01, 1662706.14it/s]
2479056it [00:01, 1669256.51it/s]
2650717it [00:01, 1683329.21it/s]
2821227it [00:01, 1689815.51it/s]
2990243it [00:01, 1655351.62it/s]
3155953it [00:01, 1584312.54it/s]
3315067it [00:02, 1533390.68it/s]
3478656it [00:02, 1562506.27it/s]
3635532it [00:02, 1561406.41it/s]
3793834it [00:02, 1567675.56it/s]
3950923it [00:02, 1555553.51it/s]
4106704it [00:02, 1541808.17it/s]
4273425it [00:02, 1578624.24it/s]
4437253it [00:02, 1596226.43it/s]
4597033it [00:02, 1571228.44it/s]
4754333it [00:02, 1534183.15it/s]
4908011it [00:03, 1498105.05it/s]
5061573it [00:03, 1508893.46it/s]
5212699it [00:03, 1508237.72it/s]
5363687it [00:03, 1508594.29it/s]
5514662it [00:03, 1493562.21it/s]
5664114it [00:03, 1434189.17it/s]
5808025it [00:03, 1432195.08it/s]
5951582it [00:03, 1418153.69it/s]
6108856it [00:03, 1463176.93it/s]
6257976it [00:03, 1466038.41it/s]
6417751it [00:04, 1504810.18it/s]
6586552it [00:04, 1559086.60it/s]
6748628it [00:04, 1577404.55it/s]
6918351it [00:04, 1612948.30it/s]
7084602it [00:04, 1627714.72it/s]
7257431it [00:04, 1657760.10it/s]
7425285it [00:04, 1663930.54it/s]
7596612it [00:04, 1678561.18it/s]
7764510it [00:04, 1676222.47it/s]
7934638it [00:05, 1683684.65it/s]
8105914it [00:05, 1692351.90it/s]
8275166it [00:05, 1686426.53it/s]
8443825it [00:05, 1652848.84it/s]
8612731it [00:05, 1663444.16it/s]
8780347it [00:05, 1667182.75it/s]
8948263it [00:05, 1670710.74it/s]
9116336it [00:05, 1673666.65it/s]
9287129it [00:05, 1683874.00it/s]
9455942it [00:05, 1685112.85it/s]
9627262it [00:06, 1693487.74it/s]
9798825it [00:06, 1700066.96it/s]
9968847it [00:06, 1640541.74it/s]
10141304it [00:06, 1664955.17it/s]
10310159it [00:06, 1671874.71it/s]
10479920it [00:06, 1679464.45it/s]
10648073it [00:06, 1670601.72it/s]
10815282it [00:06, 1665423.67it/s]
10984826it [00:06, 1674307.72it/s]
11155579it [00:06, 1684175.81it/s]
11324060it [00:07, 1673390.55it/s]
11492231it [00:07, 1675837.50it/s]
11659856it [00:07, 1665559.26it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
11826450it [00:07, 1603855.21it/s]
11987312it [00:07, 1568425.70it/s]
12144566it [00:07, 1547553.18it/s]
12309251it [00:07, 1576205.46it/s]
12474211it [00:07, 1597610.40it/s]
12643132it [00:07, 1624547.88it/s]
12812231it [00:07, 1644186.17it/s]
12981747it [00:08, 1659169.07it/s]
13153683it [00:08, 1676986.44it/s]
13324069it [00:08, 1684976.95it/s]
13492652it [00:08, 1678426.25it/s]
13662429it [00:08, 1684037.25it/s]
13679175it [00:08, 1615875.41it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md -output aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1.md -output aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-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-9ab390-R1_A23WJ53LT4_1/aih-tih-sc-9ab390-R1_A23WJ53LT4_1_full_basic_stats.tsv