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/b5/38f687bfe2f9823f4a6c9a4f5710ae/.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/d5/8884d48b28ae3a27d875a8b82f616e/aih-tih-sc-98fc22-R1_A23WJ53LT4_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/b5/38f687bfe2f9823f4a6c9a4f5710ae/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/d5/8884d48b28ae3a27d875a8b82f616e/aih-tih-sc-98fc22-R1_A23WJ53LT4_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-98fc22-R1_A23WJ53LT4_1
+ all_qc -bam aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/full_bed.bed
saturation_plot -bams aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bam -region chr20 -output aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bam -bed aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.mpileup && contamination -input aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
0it [00:00, ?it/s]
146082it [00:00, 1460758.70it/s]
300698it [00:00, 1510958.72it/s]
461767it [00:00, 1556472.37it/s]
622452it [00:00, 1576337.29it/s]
780821it [00:00, 1578967.49it/s]
938718it [00:00, 1569638.66it/s]
1097002it [00:00, 1573918.16it/s]
1256714it [00:00, 1581228.51it/s]
1419676it [00:00, 1596311.40it/s]
1581871it [00:01, 1604202.38it/s]
1742299it [00:01, 1600662.88it/s]
1902372it [00:01, 1590850.40it/s]
2061473it [00:01, 1589490.51it/s]
2221519it [00:01, 1592715.71it/s]
2380800it [00:01, 1589724.65it/s]
2539779it [00:01, 1585993.32it/s]
2702672it [00:01, 1598832.38it/s]
2862565it [00:01, 1592489.62it/s]
3021825it [00:01, 1584979.45it/s]
3180335it [00:02, 1573382.39it/s]
3337694it [00:02, 1564880.55it/s]
3494199it [00:02, 1564651.09it/s]
3656152it [00:02, 1580913.03it/s]
3818368it [00:02, 1593208.40it/s]
3985077it [00:02, 1615151.86it/s]
4148699it [00:02, 1621430.74it/s]
4310860it [00:02, 1620165.10it/s]
4472889it [00:02, 1611857.78it/s]
4635736it [00:02, 1616803.61it/s]
4800444it [00:03, 1625801.18it/s]
4965130it [00:03, 1632088.73it/s]
5131468it [00:03, 1641442.89it/s]
5301495it [00:03, 1659052.38it/s]
5467409it [00:03, 1626120.82it/s]
5631239it [00:03, 1629706.82it/s]
5794320it [00:03, 1487800.87it/s]
5945485it [00:03, 1395852.79it/s]
6104655it [00:03, 1448985.28it/s]
6267792it [00:03, 1499879.04it/s]
6434291it [00:04, 1546865.82it/s]
6595471it [00:04, 1565648.27it/s]
6756215it [00:04, 1577862.41it/s]
6917268it [00:04, 1587478.45it/s]
7076641it [00:04, 1582643.02it/s]
7238695it [00:04, 1593866.26it/s]
7402458it [00:04, 1606875.29it/s]
7563379it [00:04, 1591638.13it/s]
7724817it [00:04, 1598368.33it/s]
7884794it [00:04, 1568702.39it/s]
8041867it [00:05, 1458750.39it/s]
8192178it [00:05, 1471205.42it/s]
8348946it [00:05, 1498749.18it/s]
8508546it [00:05, 1526979.01it/s]
8669350it [00:05, 1550733.77it/s]
8825009it [00:05, 1547440.90it/s]
8981807it [00:05, 1553495.98it/s]
9137718it [00:05, 1555031.37it/s]
9297827it [00:05, 1568735.50it/s]
9457265it [00:06, 1576326.81it/s]
9616150it [00:06, 1580048.03it/s]
9775846it [00:06, 1585088.68it/s]
9938424it [00:06, 1597259.24it/s]
10099773it [00:06, 1602103.79it/s]
10262903it [00:06, 1610811.00it/s]
10424006it [00:06, 1602576.33it/s]
10586954it [00:06, 1610496.05it/s]
10755810it [00:06, 1633792.43it/s]
10919210it [00:06, 1630644.87it/s]
11082290it [00:07, 1627601.45it/s]
11250400it [00:07, 1643583.47it/s]
11419585it [00:07, 1658016.24it/s]
11589569it [00:07, 1670527.95it/s]
11756633it [00:07, 1665131.33it/s]
11923166it [00:07, 1665168.67it/s]
12090408it [00:07, 1667323.17it/s]
12257147it [00:07, 1659513.26it/s]
12424190it [00:07, 1662757.91it/s]
12595769it [00:07, 1678603.76it/s]
12765492it [00:08, 1684165.67it/s]
12933918it [00:08, 1681058.52it/s]
13102032it [00:08, 1672629.60it/s]
13269308it [00:08, 1659746.51it/s]
13439458it [00:08, 1672134.93it/s]
13607411it [00:08, 1674324.36it/s]
13778068it [00:08, 1683865.43it/s]
13948143it [00:08, 1688899.60it/s]
14117049it [00:08, 1673775.36it/s]
14284465it [00:08, 1672640.45it/s]
14451756it [00:09, 1665159.01it/s]
14619034it [00:09, 1667312.87it/s]
14785783it [00:09, 1639912.17it/s]
14949875it [00:09, 1626113.10it/s]
15112564it [00:09, 1618858.99it/s]
15274500it [00:09, 1608851.06it/s]
15435420it [00:09, 1599970.78it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
15547967it [00:09, 1599887.25it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth.gz > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth_hist.tsv
cat aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md -output aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.depth.gz> aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bam > aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md.bai
cat aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md/qc_complete.txt
+ merge_qc -folders aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1.md -output aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1_full_basic_stats.tsv
+ head -n1 aih-tih-sc-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-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-98fc22-R1_A23WJ53LT4_1/aih-tih-sc-98fc22-R1_A23WJ53LT4_1_full_basic_stats.tsv