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/85/59e28cd17b464f10a5bcc5375cdd7c/.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/88/afab703a3e1efe4ea8dbbad8589288/659_bGc-T1-TRNA-1_A23MVY2LT4_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/85/59e28cd17b464f10a5bcc5375cdd7c/.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/88/afab703a3e1efe4ea8dbbad8589288/659_bGc-T1-TRNA-1_A23MVY2LT4_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 659_bGc-T1-TRNA-1_A23MVY2LT4_1
+ all_qc -bam 659_bGc-T1-TRNA-1_A23MVY2LT4_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 659_bGc-T1-TRNA-1_A23MVY2LT4_1 -reference ref_genome.fa -region chr20
mkdir -p 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/full_bed.bed
seqtool depth -bam 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam -bed 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz
saturation_plot -bams 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam -region chr20 -output 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/saturation_qc.tsv
fragment_size -bams 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam -region chr20 -output_prefix 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.mpileup && contamination -input 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_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: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
0it [00:00, ?it/s]
140049it [00:00, 1400417.88it/s]
296340it [00:00, 1495973.02it/s]
460434it [00:00, 1561981.92it/s]
628646it [00:00, 1609383.46it/s]
798562it [00:00, 1641734.88it/s]
967956it [00:00, 1659462.78it/s]
1139665it [00:00, 1678285.20it/s]
1310686it [00:00, 1688432.03it/s]
1481000it [00:00, 1693012.66it/s]
1650451it [00:01, 1693459.20it/s]
1821530it [00:01, 1698748.80it/s]
1993683it [00:01, 1705658.38it/s]
2164249it [00:01, 1675819.73it/s]
2339712it [00:01, 1699316.41it/s]
2513576it [00:01, 1711052.16it/s]
2684769it [00:01, 1707452.03it/s]
2855575it [00:01, 1700962.60it/s]
3029702it [00:01, 1712869.52it/s]
3203389it [00:01, 1719874.49it/s]
3375407it [00:02, 1691628.51it/s]
3544687it [00:02, 1687596.97it/s]
3715217it [00:02, 1692728.92it/s]
3884551it [00:02, 1688333.74it/s]
4058511it [00:02, 1703559.39it/s]
4228908it [00:02, 1676689.25it/s]
4398424it [00:02, 1682106.25it/s]
4570265it [00:02, 1692828.00it/s]
4742865it [00:02, 1702680.40it/s]
4914573it [00:02, 1706951.74it/s]
5085311it [00:03, 1682795.23it/s]
5253690it [00:03, 1653807.94it/s]
5425123it [00:03, 1671464.65it/s]
5596645it [00:03, 1684367.37it/s]
5769913it [00:03, 1698688.68it/s]
5943286it [00:03, 1709095.28it/s]
6115840it [00:03, 1713876.89it/s]
6287516it [00:03, 1714712.26it/s]
6459027it [00:03, 1691478.19it/s]
6629118it [00:03, 1694244.89it/s]
6798612it [00:04, 1692537.98it/s]
6968512it [00:04, 1694445.39it/s]
7139345it [00:04, 1698578.01it/s]
7309427it [00:04, 1699233.22it/s]
7480865it [00:04, 1703754.28it/s]
7656319it [00:04, 1718949.54it/s]
7828226it [00:04, 1717404.48it/s]
8000583it [00:04, 1719174.66it/s]
8172507it [00:04, 1715432.99it/s]
8344057it [00:04, 1714879.57it/s]
8515549it [00:05, 1701876.26it/s]
8687150it [00:05, 1706073.18it/s]
8857777it [00:05, 1699628.45it/s]
9027756it [00:05, 1698572.03it/s]
9197624it [00:05, 1684593.65it/s]
9370125it [00:05, 1696593.07it/s]
9543758it [00:05, 1708422.25it/s]
9715809it [00:05, 1711964.69it/s]
9888941it [00:05, 1717736.38it/s]
10060732it [00:05, 1708427.33it/s]
10231597it [00:06, 1701056.58it/s]
10401722it [00:06, 1695802.07it/s]
10572301it [00:06, 1698704.49it/s]
10743205it [00:06, 1701774.66it/s]
10914219it [00:06, 1704261.52it/s]
11084653it [00:06, 1703380.02it/s]
11254997it [00:06, 1701138.77it/s]
11425115it [00:06, 1690385.19it/s]
11594575it [00:06, 1691625.57it/s]
11765758it [00:06, 1697553.82it/s]
11936998it [00:07, 1701777.37it/s]
12107993it [00:07, 1704209.60it/s]
12279842it [00:07, 1708321.59it/s]
12451422it [00:07, 1710547.11it/s]
12623458it [00:07, 1713408.23it/s]
12631722it [00:07, 1693902.15it/s]
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
tabix -s 1 -b 2 -e 2 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz
seqtool depth_hist -nbins 500 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth_hist.tsv
cat 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md -output 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_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 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_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 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.depth.gz> 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_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 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bam > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_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: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: 659_bGc-T1-TRNA-1_A23MVY2LT4_1.md.bai
cat 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "659_bGc-T1-TRNA-1_A23MVY2LT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md/qc_complete.txt
+ merge_qc -folders 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1.md -output 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv
+ head -n1 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed 659_bGc-T1-TRNA-1_A23MVY2LT4_1/659_bGc-T1-TRNA-1_A23MVY2LT4_1_full_basic_stats.tsv