Fixed a bug which caused a parsing exception when there was a variant with a dp field of ".", e.g. "GT:DP 0/1:." -- which can happen when using imputation.
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4420 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
6448753cf7
commit
74087c44ae
|
|
@ -255,7 +255,7 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
|
|||
else if (g.isHomVar()) { alleleCount += 2; }
|
||||
|
||||
String dp = (String) g.getAttribute("DP");
|
||||
if (dp != null) {
|
||||
if (dp != null && ! dp.equals(".")) {
|
||||
depth += Integer.valueOf(dp);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue