Skip to content

Commit

Permalink
fix for #22
Browse files Browse the repository at this point in the history
  • Loading branch information
brentp committed May 1, 2019
1 parent 0f931a6 commit 89327be
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
v0.1.4
======
+ output DHSP for BND elements on same chrom
+ fix for #22: allow GQ of type Integer or Float

v0.1.3
======
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ It also adds **GCF** to the INFO field indicating the fraction of G or C bases i
After annotating with `duphold`, a sensible way to filter to high-quality variants is:

```
bcftools view -i '(SVTYPE = "DEL" & FMT/DHFFC[0] < 0.7) | (SVTYPE = "DUP" & FMT/DHBFC[0] > 1.3)" $svvcf
bcftools view -i '(SVTYPE = "DEL" & FMT/DHFFC[0] < 0.7) | (SVTYPE = "DUP" & FMT/DHBFC[0] > 1.3)' $svvcf
```

Expand Down
2 changes: 1 addition & 1 deletion src/duphold.nim
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ proc read(snps:VCF, chrom:string): snpset =
gq.setLen(o.len)
for i, v in o:
gq[i] = v.int32
else:
elif st != Status.OK:
quit "expected GQ field in snps VCF"

if not hq(0, gq, ad, alts):
Expand Down

0 comments on commit 89327be

Please sign in to comment.