Skip to content

Commit

Permalink
Merge branch 'CW-2475-sort-vcf-medaka' into 'dev'
Browse files Browse the repository at this point in the history
CW-2475-sort-vcf-medaka

Closes CW-2475

See merge request epi2melabs/workflows/wf-bacterial-genomes!81
  • Loading branch information
mattdmem committed Aug 15, 2023
2 parents 8dbc8b7 + 3b696fb commit f90d53e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [unreleased]
### Fixed
- Edge case where medaka variant output is unsorted and causes medaka annotate to exit
### Changed
- Bumped minimum required Nextflow version to 23.04.2.
- Now uses Medaka v1.8.2 with updated models.
Expand Down
3 changes: 2 additions & 1 deletion main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,8 @@ process medakaVariant {
// reference.* will break
"""
medaka variant ref.fasta.gz consensus_probs*.hdf vanilla.vcf
medaka tools annotate vanilla.vcf ref.fasta.gz align.bam "${meta.alias}.medaka.vcf"
bcftools sort vanilla.vcf > vanilla.sorted.vcf
medaka tools annotate vanilla.sorted.vcf ref.fasta.gz align.bam "${meta.alias}.medaka.vcf"
bgzip -i "${meta.alias}.medaka.vcf"
bcftools stats "${meta.alias}.medaka.vcf.gz" > "${meta.alias}.variants.stats"
"""
Expand Down

0 comments on commit f90d53e

Please sign in to comment.