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/c3/d5df12204ff75ead258a5b1efa2bea/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/00/873f9d2510e32010bf8fbdf59f45d0/aih-tih-sc-184b05-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/00/873f9d2510e32010bf8fbdf59f45d0/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/c3/d5df12204ff75ead258a5b1efa2bea/.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-184b05-R1_A23YTGFLT4_1
+ all_qc -bam aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bam -bed aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/saturation_qc.tsv
saturation_plot -bams aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bam -region chr20 -output aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/saturation_plot.png -threads 1
fragment_size -bams aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.mpileup && contamination -input aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
0it [00:00, ?it/s]
138386it [00:00, 1383663.38it/s]
280660it [00:00, 1405899.86it/s]
425954it [00:00, 1427337.38it/s]
583886it [00:00, 1487297.03it/s]
746107it [00:00, 1535910.68it/s]
909093it [00:00, 1567823.85it/s]
1077683it [00:00, 1606395.41it/s]
1238324it [00:00, 1577166.11it/s]
1396151it [00:00, 1454559.72it/s]
1561816it [00:01, 1512890.67it/s]
1730107it [00:01, 1562543.56it/s]
1899942it [00:01, 1602344.30it/s]
2061250it [00:01, 1590958.93it/s]
2230286it [00:01, 1620284.46it/s]
2398997it [00:01, 1640076.57it/s]
2563982it [00:01, 1642950.50it/s]
2728589it [00:01, 1634612.48it/s]
2898102it [00:01, 1652427.58it/s]
3069562it [00:01, 1666101.58it/s]
3240016it [00:02, 1677486.89it/s]
3410083it [00:02, 1684262.17it/s]
3578577it [00:02, 1658724.86it/s]
3746558it [00:02, 1664934.50it/s]
3917290it [00:02, 1677501.39it/s]
4085120it [00:02, 1673130.90it/s]
4252924it [00:02, 1674532.84it/s]
4421893it [00:02, 1678861.59it/s]
4590996it [00:02, 1682461.21it/s]
4761211it [00:02, 1688316.30it/s]
4930060it [00:03, 1660068.38it/s]
5100092it [00:03, 1671957.69it/s]
5267383it [00:03, 1647483.31it/s]
5432260it [00:03, 1551296.67it/s]
5588517it [00:03, 1550426.43it/s]
5754022it [00:03, 1580532.92it/s]
5923031it [00:03, 1612440.39it/s]
6093224it [00:03, 1638721.05it/s]
6257544it [00:03, 1580133.27it/s]
6416263it [00:03, 1576392.46it/s]
6579534it [00:04, 1592793.97it/s]
6746559it [00:04, 1615548.69it/s]
6913663it [00:04, 1631940.73it/s]
7082259it [00:04, 1647895.33it/s]
7250169it [00:04, 1657167.22it/s]
7416176it [00:04, 1657948.18it/s]
7584362it [00:04, 1665069.26it/s]
7750939it [00:04, 1632571.31it/s]
7920156it [00:04, 1650146.39it/s]
8086466it [00:04, 1653962.46it/s]
8251976it [00:05, 1513427.15it/s]
8409308it [00:05, 1530179.58it/s]
8570816it [00:05, 1554352.69it/s]
8740062it [00:05, 1594361.43it/s]
8902087it [00:05, 1601918.66it/s]
9071028it [00:05, 1627659.75it/s]
9238433it [00:05, 1641384.36it/s]
9403000it [00:05, 1638851.71it/s]
9567185it [00:05, 1588155.22it/s]
9726525it [00:06, 1563925.56it/s]
9883311it [00:06, 1562816.32it/s]
10039865it [00:06, 1541524.85it/s]
10194231it [00:06, 1517914.16it/s]
10346198it [00:06, 1515411.05it/s]
10503826it [00:06, 1533245.76it/s]
10657272it [00:06, 1529956.82it/s]
10811745it [00:06, 1534306.55it/s]
10971476it [00:06, 1553007.17it/s]
11131708it [00:06, 1567675.11it/s]
11301276it [00:07, 1605744.65it/s]
11469854it [00:07, 1629647.97it/s]
11637044it [00:07, 1642109.71it/s]
11801288it [00:07, 1600008.85it/s]
11967450it [00:07, 1618106.11it/s]
12136971it [00:07, 1640817.36it/s]
12301234it [00:07, 1604823.40it/s]
12461990it [00:07, 1525381.16it/s]
12615412it [00:07, 1504453.13it/s]
12782692it [00:08, 1552572.35it/s]
12945261it [00:08, 1573753.41it/s]
13109621it [00:08, 1594186.57it/s]
13274951it [00:08, 1611598.77it/s]
13436433it [00:08, 1596841.17it/s]
13596359it [00:08, 1580092.36it/s]
13754555it [00:08, 1531125.21it/s]
13908056it [00:08, 1487393.47it/s]
14058080it [00:08, 1490971.66it/s]
14212454it [00:08, 1506263.33it/s]
14364701it [00:09, 1510993.69it/s]
14520324it [00:09, 1524178.14it/s]
14672902it [00:09, 1517121.01it/s]
14827255it [00:09, 1524924.89it/s]
14979835it [00:09, 1525014.79it/s]
15140605it [00:09, 1549637.67it/s]
15147736it [00:09, 1588527.72it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth.gz > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth_hist.tsv
cat aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-184b05-R1_A23YTGFLT4_1.md -output aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.depth.gz> aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bam > aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-184b05-R1_A23YTGFLT4_1.md.bai
cat aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1.md -output aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-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-184b05-R1_A23YTGFLT4_1/aih-tih-sc-184b05-R1_A23YTGFLT4_1_full_basic_stats.tsv