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/a5/180e7296dbca67350a09537d6cd5fd/.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/75/b1cdf20894e4f6760af3acd827c856/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam
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/a5/180e7296dbca67350a09537d6cd5fd/.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/b1cdf20894e4f6760af3acd827c856/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
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 BT-20_FFPE_RNA_0001_B23LG7FLT4_1
+ all_qc -bam BT-20_FFPE_RNA_0001_B23LG7FLT4_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 BT-20_FFPE_RNA_0001_B23LG7FLT4_1 -reference ref_genome.fa -region chr20
mkdir -p BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/full_bed.bed
seqtool depth -bam BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam -bed BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth.gz
saturation_plot -bams BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam -region chr20 -output BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/saturation_qc.tsv
fragment_size -bams BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam -region chr20 -output_prefix BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam > BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.mpileup && contamination -input BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_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: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
0it [00:00, ?it/s]
131272it [00:00, 1312549.14it/s]
270606it [00:00, 1359766.28it/s]
411297it [00:00, 1381245.35it/s]
551292it [00:00, 1388586.31it/s]
690151it [00:00, 1347767.88it/s]
829326it [00:00, 1362393.68it/s]
965728it [00:00, 1344413.46it/s]
1100305it [00:00, 1318676.80it/s]
1236490it [00:00, 1331795.93it/s]
1377106it [00:01, 1354306.42it/s]
1514580it [00:01, 1360348.83it/s]
1655117it [00:01, 1373892.13it/s]
1796569it [00:01, 1386092.22it/s]
1938420it [00:01, 1395816.32it/s]
2079178it [00:01, 1399260.49it/s]
2221723it [00:01, 1406911.98it/s]
2362458it [00:01, 1407013.67it/s]
2503179it [00:01, 1214404.02it/s][W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
2638866it [00:01, 1252604.24it/s]
2778506it [00:02, 1292615.13it/s]
2918069it [00:02, 1321899.46it/s]
3056531it [00:02, 1340004.65it/s]
3197766it [00:02, 1361012.25it/s]
3340174it [00:02, 1379565.67it/s]
3479426it [00:02, 1383374.67it/s]
3622208it [00:02, 1396567.32it/s]
3764468it [00:02, 1404304.52it/s]
3905914it [00:02, 1407264.69it/s]
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
4050488it [00:02, 1418744.52it/s]
4193441it [00:03, 1421841.37it/s]
4336019it [00:03, 1422929.98it/s]
4374251it [00:03, 1367362.55it/s]
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
tabix -s 1 -b 2 -e 2 BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth.gz > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth_hist.tsv
cat BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md -output BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_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 BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_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 BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.depth.gz> BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_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 BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bam > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_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: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md.bai
cat BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md/qc_complete.txt
+ merge_qc -folders BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1.md -output BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1_full_basic_stats.tsv
+ head -n1 BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed BT-20_FFPE_RNA_0001_B23LG7FLT4_1/BT-20_FFPE_RNA_0001_B23LG7FLT4_1_full_basic_stats.tsv