Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/75/714be8d0014dcb3888c2f97f60ddf4/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
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/22/7677fcc46862331c8d32c92241e8d8/.command.sh
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/22/7677fcc46862331c8d32c92241e8d8/.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-rnd-pltf-dev-nextflow-scratch-01/work/75/714be8d0014dcb3888c2f97f60ddf4/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bam
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-b157e9-R1_B23WHYVLT4_1
+ all_qc -bam aih-tih-sc-b157e9-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-b157e9-R1_B23WHYVLT4_1 -reference ref_genome.fa -region chr20
mkdir -p aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-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-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/full_bed.bed
saturation_plot -bams aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bam -region chr20 -output aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/saturation_plot.png -threads 1
seqtool depth -bam aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bam -bed aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/saturation_qc.tsv
fragment_size -bams aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bam -region chr20 -output_prefix aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_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-b157e9-R1_B23WHYVLT4_1.md.bam > aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.mpileup && contamination -input aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-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-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-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-b157e9-R1_B23WHYVLT4_1.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
139515it [00:00, 1394915.20it/s]
290296it [00:00, 1461279.14it/s]
443527it [00:00, 1493643.97it/s]
607281it [00:00, 1550346.13it/s]
775274it [00:00, 1597048.47it/s]
942627it [00:00, 1623026.15it/s]
1112760it [00:00, 1648600.29it/s]
1284682it [00:00, 1671058.90it/s]
1453787it [00:00, 1677286.17it/s]
1621516it [00:01, 1512416.38it/s]
1789027it [00:01, 1558685.25it/s]
1960302it [00:01, 1603136.10it/s]
2131837it [00:01, 1635905.92it/s]
2298597it [00:01, 1645221.60it/s]
2473906it [00:01, 1677146.51it/s]
2650818it [00:01, 1704470.07it/s]
2822857it [00:01, 1709066.63it/s]
2994913it [00:01, 1712436.07it/s]
3166663it [00:01, 1713928.87it/s]
3338259it [00:02, 1699845.70it/s]
3508410it [00:02, 1699054.85it/s]
3678431it [00:02, 1690770.06it/s]
3848124it [00:02, 1692559.92it/s]
4017442it [00:02, 1653831.44it/s]
4183046it [00:02, 1629305.40it/s]
4346170it [00:02, 1623481.96it/s]
4510632it [00:02, 1629666.60it/s]
4681106it [00:02, 1651851.20it/s]
4853526it [00:02, 1673316.17it/s]
5022171it [00:03, 1677199.39it/s]
5189959it [00:03, 1661527.21it/s]
5358132it [00:03, 1667489.60it/s]
5524939it [00:03, 1629921.49it/s]
5690382it [00:03, 1637092.30it/s]
5862153it [00:03, 1660902.11it/s]
6033234it [00:03, 1675578.71it/s]
6205673it [00:03, 1690099.60it/s]
6378691it [00:03, 1702047.74it/s]
6548968it [00:03, 1696511.45it/s]
6719193it [00:04, 1698165.84it/s]
6890526it [00:04, 1702603.97it/s]
7062191it [00:04, 1706794.49it/s]
7233277it [00:04, 1707996.67it/s]
7407917it [00:04, 1719486.93it/s]
7581462it [00:04, 1724256.21it/s]
7754410it [00:04, 1725808.08it/s]
7926997it [00:04, 1721057.86it/s]
8099779it [00:04, 1723066.47it/s]
8272092it [00:04, 1710499.45it/s]
8443165it [00:05, 1695464.60it/s]
8612749it [00:05, 1689467.89it/s]
8784224it [00:05, 1696327.88it/s]
8953881it [00:05, 1672299.52it/s]
9127110it [00:05, 1690011.15it/s]
9297955it [00:05, 1695422.40it/s]
9471545it [00:05, 1707350.83it/s]
9645009it [00:05, 1715327.65it/s]
9816583it [00:05, 1541452.92it/s]
9987743it [00:06, 1588590.78it/s]
10154172it [00:06, 1610053.11it/s]
10324720it [00:06, 1637483.41it/s]
10492782it [00:06, 1649016.07it/s]
10663668it [00:06, 1666597.11it/s]
10834738it [00:06, 1679626.31it/s]
11004542it [00:06, 1685082.42it/s]
11176206it [00:06, 1694456.08it/s]
11347218it [00:06, 1699117.26it/s]
11518414it [00:06, 1702939.26it/s]
11691606it [00:07, 1711597.31it/s]
11864558it [00:07, 1716932.47it/s]
12036907it [00:07, 1718880.68it/s]
12213238it [00:07, 1732178.96it/s]
12386494it [00:07, 1729247.91it/s]
12559521it [00:07, 1729444.61it/s]
12732485it [00:07, 1725293.27it/s]
12789142it [00:07, 1671273.63it/s]
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.bai
tabix -s 1 -b 2 -e 2 aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth.gz > aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth_hist.tsv
cat aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md -output aih-tih-sc-b157e9-R1_B23WHYVLT4_1/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md/aih-tih-sc-b157e9-R1_B23WHYVLT4_1.md.depth.png