Skip to content
Snippets Groups Projects
Commit fbfc668a authored by tcarver's avatar tcarver
Browse files

optimise getNumAlleles()

parent a3c87f7e
No related branches found
No related tags found
No related merge requests found
...@@ -81,7 +81,8 @@ public class VariantBase ...@@ -81,7 +81,8 @@ public class VariantBase
protected int getNumAlleles() protected int getNumAlleles()
{ {
return COMMA_PATTERN.split(alt).length + 1; return VCFRecord.countOccurrences(alt, ',')+2;
//return COMMA_PATTERN.split(alt).length + 1;
//return alt.split(",").length + 1; //return alt.split(",").length + 1;
} }
......
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