Skip to content

Commit

Permalink
better support for manta
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed Dec 11, 2020
1 parent 8c2fec0 commit 1a660d4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion duphold.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ license = "MIT"

# Dependencies

requires "hts >= 0.3.0", "genoiser >= 0.2.2", "docopt >= 0.6.8"
requires "hts >= 0.3.8", "genoiser >= 0.2.7", "docopt >= 0.6.8"
srcDir = "src"
installExt = @["nim"]

Expand Down
4 changes: 3 additions & 1 deletion src/duphold.nim
Original file line number Diff line number Diff line change
Expand Up @@ -519,7 +519,9 @@ proc annotate*(snps:snpset, variant:Variant, sample_i:int) =
if len(snps.starts) == 0: return

# dont annotate BNDs (or INVs)
if ':' in variant.ALT[0] or variant.ALT[0] == "<INV>": return
var alt = variant.ALT[0]
if (':' in alt and ('[' in alt or ']' in alt)) or alt == "<INV>": return

var dhgt = newSeq[int32](5 * variant.vcf.n_samples)
get_or_empty(variant, "DHGT", dhgt, 5)
dhgt[5*sample_i] = 0
Expand Down
2 changes: 1 addition & 1 deletion src/dupholdpkg/version.nim
Original file line number Diff line number Diff line change
@@ -1 +1 @@
const dupholdVersion* = "0.2.1"
const dupholdVersion* = "0.2.2"

0 comments on commit 1a660d4

Please sign in to comment.