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/62/809c80a6b9257a6cf87f10d832f52b/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bc/7a2532648f34f4d93a93d570caf3b9/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/bc/7a2532648f34f4d93a93d570caf3b9/aih-tih-sc-318819-R1_A23YTGFLT4_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/62/809c80a6b9257a6cf87f10d832f52b/.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-318819-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/saturation_qc.tsv
saturation_plot -bams aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
fragment_size -bams aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-318819-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-318819-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
130276it [00:00, 1302618.38it/s]
285740it [00:00, 1450823.95it/s]
430823it [00:00, 1429766.55it/s]
594585it [00:00, 1511064.57it/s]
753959it [00:00, 1540499.24it/s]
918025it [00:00, 1574400.28it/s]
1083414it [00:00, 1600261.58it/s]
1245741it [00:00, 1607387.31it/s]
1408886it [00:00, 1614879.79it/s]
1574971it [00:01, 1629037.58it/s]
1745940it [00:01, 1653686.56it/s]
1911323it [00:01, 1595743.40it/s]
2080511it [00:01, 1624114.33it/s]
2244927it [00:01, 1630034.12it/s]
2410596it [00:01, 1637942.15it/s]
2579974it [00:01, 1654577.79it/s]
2750005it [00:01, 1668219.79it/s]
2916945it [00:01, 1622790.84it/s]
3090322it [00:01, 1655347.50it/s]
3256168it [00:02, 1629754.52it/s]
3419416it [00:02, 1581129.23it/s]
3577947it [00:02, 1545578.79it/s]
3740237it [00:02, 1567666.67it/s]
3911067it [00:02, 1608386.12it/s]
4077060it [00:02, 1623493.16it/s]
4247501it [00:02, 1647323.14it/s]
4421435it [00:02, 1674611.01it/s]
4589093it [00:02, 1638928.99it/s]
4753272it [00:02, 1616339.67it/s]
4915135it [00:03, 1564027.54it/s]
5074337it [00:03, 1572055.63it/s]
5231873it [00:03, 1538135.68it/s]
5385997it [00:03, 1530053.93it/s]
5539202it [00:03, 1450673.94it/s]
5710350it [00:03, 1524407.62it/s]
5881688it [00:03, 1578750.44it/s]
6054205it [00:03, 1621378.67it/s]
6228804it [00:03, 1657883.26it/s]
6395944it [00:04, 1661725.54it/s]
6569726it [00:04, 1684287.63it/s]
6742815it [00:04, 1698136.94it/s]
6917654it [00:04, 1713104.19it/s]
7093357it [00:04, 1726204.77it/s]
7269012it [00:04, 1735251.36it/s]
7444112it [00:04, 1739937.03it/s]
7618172it [00:04, 1735060.58it/s]
7791727it [00:04, 1673136.93it/s]
7963797it [00:04, 1686889.66it/s]
8134457it [00:05, 1692647.34it/s]
8305768it [00:05, 1698643.01it/s]
8475838it [00:05, 1598436.20it/s]
8636974it [00:05, 1451836.28it/s]
8785242it [00:05, 1425353.57it/s]
8938264it [00:05, 1453996.09it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
9111023it [00:05, 1530809.01it/s]
9285542it [00:05, 1592134.52it/s]
9452583it [00:05, 1614829.99it/s]
9621236it [00:05, 1635764.15it/s]
9792557it [00:06, 1658595.49it/s]
9964042it [00:06, 1675251.56it/s]
10138446it [00:06, 1695690.67it/s]
10312989it [00:06, 1710498.41it/s]
10486006it [00:06, 1716312.17it/s]
10660753it [00:06, 1725604.25it/s]
10833437it [00:06, 1646411.97it/s]
10998922it [00:06, 1617708.82it/s]
11166740it [00:06, 1635148.52it/s]
11330757it [00:07, 1630610.84it/s]
11494161it [00:07, 1589036.81it/s]
11653466it [00:07, 1562080.06it/s]
11812212it [00:07, 1569277.57it/s]
11890005it [00:07, 1613898.52it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-318819-R1_A23YTGFLT4_1.md -output aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/aih-tih-sc-318819-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-318819-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1.md -output aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-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-318819-R1_A23YTGFLT4_1/aih-tih-sc-318819-R1_A23YTGFLT4_1_full_basic_stats.tsv