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:
chartl 2010-10-04 12:37:36 +00:00
parent 6448753cf7
commit 74087c44ae
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}