Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/326c7fb81cf226da2ef8e1fbca9ff5/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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/d4/cc7f9cf9979e4d5846de8192f83b6c/.command.sh
Downloading: s3://natera-rnd-pltf-dev-nextflow-scratch-01/work/0a/326c7fb81cf226da2ef8e1fbca9ff5/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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/d4/cc7f9cf9979e4d5846de8192f83b6c/.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-platform-sandbox/pipeline-resources/Homo_sapiens_assembly38.dbsnp138.vcf.gz.tbi
==> STAGING COMPLETE (11 inputs)
+ mkdir BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1
+ all_qc -bam BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1 -reference ref_genome.fa -region chr20
mkdir -p BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/
cat Twist_rna_exome_AND_fusion_hg38.bed | cut -f 1-3 | bedtools sort -g ref_genome.fa.fai | bedtools merge > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/full_bed.bed
seqtool depth -bam BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam -bed BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/full_bed.bed -threads 4 -bam_threads 2 | bgzip -c > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth.gz
saturation_plot -bams BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam -region chr20 -output BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/saturation_plot.png -threads 1
seqtool saturation_metric -at 1000000 -region chr20 -bam_threads 1 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/saturation_qc.tsv
fragment_size -bams BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam -region chr20 -output_prefix BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/fragsize -threads 1
samtools mpileup -B --min-MQ 60 --min-BQ 30 -f ref_genome.fa -l dbsnp_hg38_contam_sites.bed BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.mpileup && contamination -input BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.mpileup -dbsnp_vcf Homo_sapiens_assembly38.dbsnp138.vcf.gz > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/contamination.tsv
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[mpileup] 1 samples in 1 input files
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
0it [00:00, ?it/s]
154699it [00:00, 1546604.30it/s]
321269it [00:00, 1616520.56it/s]
493689it [00:00, 1665646.97it/s]
669735it [00:00, 1703043.89it/s]
848950it [00:00, 1735151.02it/s]
1027271it [00:00, 1751383.00it/s]
1205118it [00:00, 1760075.03it/s]
1383096it [00:00, 1766325.19it/s]
1561521it [00:00, 1771903.71it/s]
1738808it [00:01, 1772141.23it/s]
1918511it [00:01, 1779733.78it/s]
2097721it [00:01, 1783475.31it/s]
2278211it [00:01, 1789844.29it/s]
2458004it [00:01, 1792175.90it/s]
2637222it [00:01, 1790664.42it/s]
2817042it [00:01, 1792904.64it/s]
2997268it [00:01, 1795697.68it/s]
3180310it [00:01, 1806105.08it/s]
3360922it [00:01, 1805032.37it/s]
3541426it [00:02, 1785375.47it/s]
3722997it [00:02, 1794387.68it/s]
3902477it [00:02, 1786943.95it/s]
4081349it [00:02, 1787449.60it/s]
4260117it [00:02, 1785819.11it/s]
4439186it [00:02, 1787224.20it/s]
4617920it [00:02, 1774329.01it/s]
4795379it [00:02, 1758978.51it/s]
4972069it [00:02, 1761284.44it/s]
5153035it [00:02, 1775634.76it/s]
5333521it [00:03, 1784177.32it/s]
5514621it [00:03, 1792157.54it/s][W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
5694801it [00:03, 1795007.01it/s]
5874405it [00:03, 1795278.37it/s]
6055593it [00:03, 1800216.54it/s]
6237359it [00:03, 1805412.75it/s]
6419263it [00:03, 1809459.81it/s]
6600214it [00:03, 1799841.83it/s]
6780624it [00:03, 1801078.65it/s]
6961936it [00:03, 1804502.30it/s]
7142395it [00:04, 1790584.18it/s][W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
7321482it [00:04, 1789280.65it/s]
7500429it [00:04, 1781302.02it/s]
7678577it [00:04, 1777974.69it/s]
7856386it [00:04, 1772277.42it/s][W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
8033623it [00:04, 1680654.94it/s]
8203479it [00:04, 1685776.27it/s]
8378856it [00:04, 1705546.98it/s]
8557872it [00:04, 1730365.11it/s]
8736840it [00:04, 1747809.37it/s]
8915760it [00:05, 1760064.38it/s]
9092907it [00:05, 1763429.24it/s]
9274191it [00:05, 1778145.87it/s]
9452133it [00:05, 1771188.15it/s]
9632401it [00:05, 1780559.88it/s]
9721398it [00:05, 1771148.57it/s]
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
tabix -s 1 -b 2 -e 2 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth.gz
seqtool depth_hist -nbins 500 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth.gz > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth_hist.tsv
cat BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth_hist.tsv | plot -x 0 -xlabel Depth -ylabel "Number of Sites" -xlim 0 2000 -title BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md -output BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/reads_per_target.Twist_rna_exome_AND_fusion_hg38.bed.tsv
seqtool depth_stats -bed Twist_rna_exome_AND_fusion_hg38.bed BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.depth.gz> BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bam > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_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: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
[W::hts_idx_load3] The index file is older than the data file: BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md.bai
cat BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/gc_bias_qc.Twist_rna_exome_AND_fusion_hg38.bed.tsv | plot -x 0 -header infer -ylim 0 2 -title "BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md" -suptitle "Twist_rna_exome_AND_fusion_hg38.bed" -output "BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/gc_bias.Twist_rna_exome_AND_fusion_hg38.bed.png" -ylabel "Fold enrichment / depletion" -xlabel "GC Quantile"
echo `date` > BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md/qc_complete.txt
+ merge_qc -folders BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1.md -output BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1_full_basic_stats.tsv
+ head -n1 BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1_full_basic_stats.tsv
++ basename Twist_rna_exome_AND_fusion_hg38.bed
+ grep -e Twist_rna_exome_AND_fusion_hg38.bed BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1/BVT_FFPE_TRNA_bld_01_A23WKFTLT4_1_full_basic_stats.tsv