Skip to content
Snippets Groups Projects
Commit fa5a0054 authored by tjc's avatar tjc
Browse files

optimise isMultiAllele()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15832 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent b88c2f67
No related branches found
No related tags found
No related merge requests found
...@@ -63,10 +63,13 @@ public class VariantBase ...@@ -63,10 +63,13 @@ public class VariantBase
return true; return true;
// look at probability of each genotype (PL) information as well // look at probability of each genotype (PL) information as well
String pl; String pl = record.getFormatValue("PL");
if ((pl = record.getFormatValue("PL")) != null && pl.split(",").length == 3 && if(pl != null)
pl.split(",")[1].equals("0")) // middle value is zero, e.g. {
return true; String pls[] = pl.split(",");
if(pls.length == 3 && pls[1].equals("0")) // middle value is zero, e.g.
return true;
}
return false; return false;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment