Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/6f/a5cf25751b0cc7ff57533a36fa5486/tih_rna_sample_00116_23H5VFLT4_s36.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/bc/e9576a788d1dbca9333b544ea3acb7/.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/bc/e9576a788d1dbca9333b544ea3acb7/.command.run
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/6f/a5cf25751b0cc7ff57533a36fa5486/tih_rna_sample_00116_23H5VFLT4_s36.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 tih_rna_sample_00116_23H5VFLT4_s36
+ all_qc -bam tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36 -reference ref_genome.fa -region chr20
mkdir -p tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/full_bed.bed
seqtool depth -bam tih_rna_sample_00116_23H5VFLT4_s36.md.bam -bed tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth.gz
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 tih_rna_sample_00116_23H5VFLT4_s36.md.bam > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/saturation_qc.tsv
saturation_plot -bams tih_rna_sample_00116_23H5VFLT4_s36.md.bam -region chr20 -output tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/saturation_plot.png -threads 1
fragment_size -bams tih_rna_sample_00116_23H5VFLT4_s36.md.bam -region chr20 -output_prefix tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bam > tih_rna_sample_00116_23H5VFLT4_s36.md.mpileup && contamination -input tih_rna_sample_00116_23H5VFLT4_s36.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bai
0it [00:00, ?it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
144196it [00:00, 1441858.25it/s]
288382it [00:00, 1437614.09it/s]
450497it [00:00, 1521110.27it/s]
611162it [00:00, 1554794.39it/s]
766653it [00:00, 1551756.87it/s]
921837it [00:00, 1547993.88it/s]
1080288it [00:00, 1559856.09it/s]
1240898it [00:00, 1574510.34it/s]
1398649it [00:00, 1575413.27it/s]
1556359it [00:01, 1575900.36it/s]
1719419it [00:01, 1592596.72it/s]
1879280it [00:01, 1594274.20it/s]
2038711it [00:01, 1591024.46it/s]
2197817it [00:01, 1580460.96it/s]
2368801it [00:01, 1619202.28it/s]
2530756it [00:01, 1580759.54it/s]
2689044it [00:01, 1539480.80it/s]
2843309it [00:01, 1532162.33it/s]
3004944it [00:01, 1556742.00it/s]
3160830it [00:02, 1549362.04it/s]
3332937it [00:02, 1600009.28it/s]
3496486it [00:02, 1610338.84it/s]
3657663it [00:02, 1595387.67it/s]
3817322it [00:02, 1567066.60it/s]
3985384it [00:02, 1600205.63it/s]
4149456it [00:02, 1611997.75it/s]
4313528it [00:02, 1620478.16it/s]
4481011it [00:02, 1636619.79it/s]
4647334it [00:02, 1644511.93it/s]
4811854it [00:03, 1540194.31it/s]
4967241it [00:03, 1425299.95it/s]
5113586it [00:03, 1435706.31it/s]
5282693it [00:03, 1507439.22it/s]
5452212it [00:03, 1561190.79it/s]
5616901it [00:03, 1586045.82it/s]
5781077it [00:03, 1602326.59it/s]
5942111it [00:03, 1575601.20it/s]
6100301it [00:03, 1546148.20it/s]
6260240it [00:04, 1561532.15it/s]
6428477it [00:04, 1596960.10it/s]
6599406it [00:04, 1630110.68it/s]
6770992it [00:04, 1655518.38it/s]
6941109it [00:04, 1668958.64it/s]
7112452it [00:04, 1682185.48it/s]
7283836it [00:04, 1691608.87it/s]
7457391it [00:04, 1704716.26it/s]
7630006it [00:04, 1711099.28it/s]
7802330it [00:04, 1714565.64it/s]
7973823it [00:05, 1693777.71it/s]
8143282it [00:05, 1691129.12it/s]
8312450it [00:05, 1622900.83it/s]
8475325it [00:05, 1597021.44it/s]
8646087it [00:05, 1628985.82it/s]
8814674it [00:05, 1645475.75it/s]
8988127it [00:05, 1671357.68it/s]
9159581it [00:05, 1683934.60it/s]
9331773it [00:05, 1695189.01it/s]
9502954it [00:05, 1700101.71it/s]
9674964it [00:06, 1706035.89it/s]
9847749it [00:06, 1712520.85it/s]
10019719it [00:06, 1714632.34it/s]
10191225it [00:06, 1712730.57it/s]
10363055it [00:06, 1714337.47it/s]
10537569it [00:06, 1723529.04it/s]
10709938it [00:06, 1718737.71it/s]
10885330it [00:06, 1729225.41it/s]
11059489it [00:06, 1732889.98it/s]
11232788it [00:06, 1574550.97it/s]
11401672it [00:07, 1606427.86it/s]
11564486it [00:07, 1596493.46it/s][W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
11734221it [00:07, 1625473.55it/s]
11900282it [00:07, 1635672.92it/s]
12064699it [00:07, 1628459.53it/s]
12233324it [00:07, 1645433.64it/s]
12404472it [00:07, 1664816.86it/s]
12574168it [00:07, 1674330.87it/s]
12743828it [00:07, 1680928.05it/s]
12912097it [00:07, 1582193.57it/s]
13071602it [00:08, 1506281.17it/s]
13234471it [00:08, 1540508.89it/s]
13402559it [00:08, 1564612.18it/s]
13574220it [00:08, 1608301.96it/s]
13747239it [00:08, 1643768.22it/s]
13921275it [00:08, 1672113.46it/s]
14093852it [00:08, 1687940.86it/s]
14266144it [00:08, 1698290.79it/s]
14438300it [00:08, 1705183.20it/s]
14444479it [00:08, 1620543.47it/s]
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
tabix -s 1 -b 2 -e 2 tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth.gz
seqtool depth_hist -nbins 500 tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth.gz > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth_hist.tsv
cat tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title tih_rna_sample_00116_23H5VFLT4_s36.md -output tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bam > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bam > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/tih_rna_sample_00116_23H5VFLT4_s36.md.depth.gz> tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bam > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.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_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
[W::hts_idx_load3] The index file is older than the data file: tih_rna_sample_00116_23H5VFLT4_s36.md.bai
cat tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "tih_rna_sample_00116_23H5VFLT4_s36.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md/qc_complete.txt
+ merge_qc -folders tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36.md -output tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36_full_basic_stats.tsv
+ head -n1 tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed tih_rna_sample_00116_23H5VFLT4_s36/tih_rna_sample_00116_23H5VFLT4_s36_full_basic_stats.tsv