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/99/9e3f37c9855874dd3dee2cc3a98f30/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/7a/8d8078fb58a921fd7a28f3da0b3318/tih_rna_sample_00479_B23WHTKLT4_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/99/9e3f37c9855874dd3dee2cc3a98f30/.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/7a/8d8078fb58a921fd7a28f3da0b3318/tih_rna_sample_00479_B23WHTKLT4_1.md.bai
Downloading: s3://natera-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir tih_rna_sample_00479_B23WHTKLT4_1
+ all_qc -bam tih_rna_sample_00479_B23WHTKLT4_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 tih_rna_sample_00479_B23WHTKLT4_1 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00479_B23WHTKLT4_1.md.bam -bed tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth.gz
saturation_plot -bams tih_rna_sample_00479_B23WHTKLT4_1.md.bam -region chr20 -output tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00479_B23WHTKLT4_1.md.bam > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/saturation_qc.tsv
fragment_size -bams tih_rna_sample_00479_B23WHTKLT4_1.md.bam -region chr20 -output_prefix tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed tih_rna_sample_00479_B23WHTKLT4_1.md.bam > tih_rna_sample_00479_B23WHTKLT4_1.md.mpileup && contamination -input tih_rna_sample_00479_B23WHTKLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_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: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
0it [00:00, ?it/s]
118862it [00:00, 1188561.62it/s]
268457it [00:00, 1369346.62it/s]
419722it [00:00, 1434745.21it/s]
575154it [00:00, 1481930.30it/s]
741106it [00:00, 1545947.98it/s]
906441it [00:00, 1582380.91it/s]
1071716it [00:00, 1605324.20it/s]
1238444it [00:00, 1624978.18it/s]
1402805it [00:00, 1630784.61it/s]
1568392it [00:01, 1638510.93it/s]
1735111it [00:01, 1647270.25it/s]
1904245it [00:01, 1660598.40it/s]
2070305it [00:01, 1659427.27it/s]
2236248it [00:01, 1653322.75it/s]
2402607it [00:01, 1656392.36it/s]
2570641it [00:01, 1663561.16it/s]
2740258it [00:01, 1673333.64it/s]
2915603it [00:01, 1697364.06it/s]
3086798it [00:01, 1701722.66it/s]
3256975it [00:02, 1672441.95it/s]
3424916it [00:02, 1674460.59it/s]
3592882it [00:02, 1675842.59it/s]
3760526it [00:02, 1665475.23it/s]
3927124it [00:02, 1662742.98it/s]
4095048it [00:02, 1667634.28it/s]
4264470it [00:02, 1675543.72it/s]
4432048it [00:02, 1673270.29it/s]
4602147it [00:02, 1681537.36it/s]
4770741it [00:02, 1682824.18it/s]
4939034it [00:03, 1681425.27it/s]
5107184it [00:03, 1672861.84it/s]
5274484it [00:03, 1647848.66it/s]
5442208it [00:03, 1656465.65it/s]
5611606it [00:03, 1667545.11it/s]
5782512it [00:03, 1679892.49it/s]
5952601it [00:03, 1686057.22it/s]
6121245it [00:03, 1679570.88it/s]
6289233it [00:03, 1583492.16it/s]
6448700it [00:03, 1553827.27it/s]
6605056it [00:04, 1556516.18it/s]
6771946it [00:04, 1589109.09it/s]
6940026it [00:04, 1615946.97it/s]
7102040it [00:04, 1591207.82it/s]
7265821it [00:04, 1604850.01it/s]
7433023it [00:04, 1624655.77it/s]
7595713it [00:04, 1532083.19it/s]
7751107it [00:04, 1538203.95it/s]
7917392it [00:04, 1574222.59it/s]
8085419it [00:04, 1605234.01it/s]
8247872it [00:05, 1610897.25it/s]
8412486it [00:05, 1621202.20it/s]
8582196it [00:05, 1643753.94it/s]
8748672it [00:05, 1649989.96it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
8914503it [00:05, 1652451.11it/s]
9083480it [00:05, 1663592.41it/s]
9249926it [00:05, 1661936.89it/s]
9416181it [00:05, 1651619.22it/s]
9581398it [00:05, 1642015.23it/s]
9750242it [00:05, 1655800.85it/s]
9919409it [00:06, 1666473.93it/s]
10087716it [00:06, 1671352.89it/s]
10257491it [00:06, 1679220.56it/s]
10426364it [00:06, 1682043.97it/s]
10594585it [00:06, 1677871.17it/s]
10762385it [00:06, 1672231.50it/s]
10929621it [00:06, 1668577.09it/s]
11097929it [00:06, 1672883.55it/s]
11267082it [00:06, 1678302.05it/s]
11435948it [00:06, 1681299.54it/s]
11604084it [00:07, 1673976.42it/s]
11771492it [00:07, 1671889.45it/s]
11938688it [00:07, 1667114.56it/s]
12105406it [00:07, 1661514.99it/s]
12272864it [00:07, 1665387.94it/s]
12439451it [00:07, 1665509.91it/s]
12608628it [00:07, 1673307.92it/s]
12776598it [00:07, 1675201.89it/s]
12944845it [00:07, 1677359.39it/s]
13113902it [00:07, 1681299.92it/s]
13127513it [00:07, 1642404.96it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth.gz > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth_hist.tsv
cat tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00479_B23WHTKLT4_1.md -output tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_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 tih_rna_sample_00479_B23WHTKLT4_1.md.bam > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_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 tih_rna_sample_00479_B23WHTKLT4_1.md.bam > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/tih_rna_sample_00479_B23WHTKLT4_1.md.depth.gz> tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_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 tih_rna_sample_00479_B23WHTKLT4_1.md.bam > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_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: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00479_B23WHTKLT4_1.md.bai
cat tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00479_B23WHTKLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1.md -output tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00479_B23WHTKLT4_1/tih_rna_sample_00479_B23WHTKLT4_1_full_basic_stats.tsv