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-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/53/3616301dee37b081637e6f71710f3b/.command.sh
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/b41d7119779ab27516e6e420716f70/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/53/3616301dee37b081637e6f71710f3b/.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/4f/b41d7119779ab27516e6e420716f70/aih-tih-sc-7c610c-R1_B23WHYVLT4_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-7c610c-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-7c610c-R1_B23WHYVLT4_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-7c610c-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_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-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/full_bed.bed
seqtool depth -bam aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth.gz
saturation_plot -bams aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bam -region chr20 -output aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/saturation_plot.png -threads 1
fragment_size -bams aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/fragsize -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/saturation_qc.tsv
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_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-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_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-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
0it [00:00, ?it/s]
131954it [00:00, 1319443.74it/s]
275454it [00:00, 1387373.94it/s]
432643it [00:00, 1471371.04it/s]
599672it [00:00, 1549407.26it/s]
770345it [00:00, 1606104.35it/s]
944085it [00:00, 1650714.17it/s]
1109157it [00:00, 1629903.59it/s]
1272200it [00:00, 1618560.87it/s]
1434100it [00:00, 1570674.17it/s]
1591446it [00:01, 1527324.62it/s]
1744520it [00:01, 1520941.72it/s]
1908643it [00:01, 1556377.51it/s]
2064546it [00:01, 1549212.89it/s]
2219645it [00:01, 1517086.02it/s]
2392225it [00:01, 1578218.64it/s]
2564957it [00:01, 1622132.77it/s]
2734406it [00:01, 1643564.47it/s]
2905526it [00:01, 1663665.46it/s]
3077623it [00:01, 1680733.71it/s]
3245846it [00:02, 1665449.27it/s]
3417420it [00:02, 1680372.82it/s]
3594922it [00:02, 1708536.52it/s]
3768676it [00:02, 1717153.65it/s]
3940462it [00:02, 1714344.11it/s]
4111946it [00:02, 1711925.65it/s]
4283173it [00:02, 1710231.12it/s]
4454220it [00:02, 1616803.90it/s]
4616952it [00:02, 1608610.22it/s]
4778528it [00:02, 1606590.81it/s]
4939682it [00:03, 1585432.23it/s]
5098587it [00:03, 1509400.88it/s]
5266386it [00:03, 1557233.58it/s]
5439317it [00:03, 1606852.95it/s]
5615084it [00:03, 1650847.73it/s]
5791475it [00:03, 1684092.15it/s]
5967304it [00:03, 1706028.60it/s]
6141563it [00:03, 1716870.22it/s]
6314500it [00:03, 1720573.60it/s]
6486770it [00:03, 1680175.04it/s]
6659467it [00:04, 1693914.51it/s]
6832268it [00:04, 1703978.60it/s]
7005196it [00:04, 1711410.38it/s]
7181104it [00:04, 1725589.34it/s]
7355600it [00:04, 1731353.89it/s]
7529118it [00:04, 1732467.37it/s]
7702887it [00:04, 1734012.27it/s]
7876330it [00:04, 1734002.92it/s]
8049760it [00:04, 1733391.57it/s]
8223994it [00:04, 1735987.90it/s]
8397608it [00:05, 1731703.76it/s]
8571755it [00:05, 1734494.84it/s]
8745214it [00:05, 1715702.78it/s]
8916835it [00:05, 1714109.02it/s]
9088280it [00:05, 1709815.69it/s]
9261159it [00:05, 1715352.56it/s]
9434206it [00:05, 1719846.19it/s]
9607980it [00:05, 1725172.53it/s]
9780511it [00:05, 1724477.05it/s]
9955484it [00:06, 1732020.31it/s]
10131115it [00:06, 1739182.31it/s]
10305040it [00:06, 1642239.51it/s]
10470378it [00:06, 1570121.26it/s]
10639229it [00:06, 1603473.01it/s]
10810528it [00:06, 1634893.44it/s]
10978681it [00:06, 1648437.01it/s]
11148957it [00:06, 1664364.21it/s]
11315900it [00:06, 1664733.24it/s]
11484770it [00:06, 1671825.49it/s]
11654922it [00:07, 1680641.52it/s]
11823173it [00:07, 1639268.60it/s]
11987438it [00:07, 1579511.00it/s]
12145995it [00:07, 1546004.88it/s]
12301059it [00:07, 1542614.22it/s]
12455632it [00:07, 1519649.82it/s]
12607822it [00:07, 1504337.68it/s]
12758398it [00:07, 1479729.26it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
12906489it [00:07, 1462151.17it/s]
13052778it [00:07, 1437966.99it/s]
13202340it [00:08, 1454650.79it/s]
13369257it [00:08, 1517416.68it/s]
13540627it [00:08, 1575269.66it/s]
13711560it [00:08, 1614910.61it/s]
13883025it [00:08, 1644552.46it/s]
14059923it [00:08, 1681632.82it/s]
14233166it [00:08, 1696783.88it/s]
14407667it [00:08, 1711184.79it/s]
14580163it [00:08, 1715279.82it/s]
14752993it [00:08, 1719049.22it/s]
14925300it [00:09, 1720183.35it/s]
15100891it [00:09, 1730871.10it/s]
15274000it [00:09, 1725330.38it/s]
15446553it [00:09, 1723017.17it/s]
15618869it [00:09, 1719260.29it/s]
15790806it [00:09, 1716344.20it/s]
15962448it [00:09, 1715891.68it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
16139050it [00:09, 1730874.28it/s]
16312830it [00:09, 1732931.14it/s]
16488232it [00:09, 1739228.52it/s]
16662160it [00:10, 1580496.06it/s]
16822991it [00:10, 1578018.78it/s]
16995198it [00:10, 1618935.07it/s]
17164261it [00:10, 1639620.93it/s]
17329406it [00:10, 1559007.71it/s]
17486832it [00:10, 1450980.86it/s]
17642446it [00:10, 1479703.00it/s]
17779311it [00:10, 1637367.69it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth.gz > aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth_hist.tsv
cat aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md -output aih-tih-sc-7c610c-R1_B23WHYVLT4_1/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md/aih-tih-sc-7c610c-R1_B23WHYVLT4_1.md.depth.png