Bug fix: if the FORMAT field consisted of just GT, we were exceptioning out. How did we not catch this until now?

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3735 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-07-08 04:41:40 +00:00
parent 1c146aebe8
commit b7a3d1e61f
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ public class VCF4Codec implements FeatureCodec, NameAwareCodec {
throw new VCFParserException("Too few keys for compared to the value string " + sampleName + ", keys = " + parts[8] + " values = " + parts[genotypeOffset]);
int genotypeAlleleLocation = -1;
if (nGTKeys > 1) {
if (nGTKeys >= 1) {
gtAttributes = new HashMap<String, String>(nGTKeys - 1);
for (int i = 0; i < nGTKeys; i++) {
if (i >= GTValueSplitSize)