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

add getNumAlleles()

git-svn-id: svn+ssh://svn.internal.sanger.ac.uk/repos/svn/pathsoft/artemis/trunk@15167 ee4ac58c-ac51-4696-9907-e4b3aa274f04
parent 199d84b8
Branches
Tags
No related merge requests found
......@@ -42,6 +42,14 @@ class VCFRecord
"\t"+filter+"\t"+info+"\t"+format+"\t"+getSampleDataString();
}
protected int getNumAlleles()
{
if (alt.equals("."))
return 1;
return alt.split(",").length+1;
}
/**
* Parse a VCF line and return a VCFRecord
* @param line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment