No longer adds a binding of ID -> . when the ID field is dot in the VCF

-- Really we should make ID a primary key in VariantContext.  Putting it into the attributes is just annoying now
This commit is contained in:
Mark DePristo 2011-10-18 10:57:02 -04:00
parent e5b793f4ce
commit 1a92ee3593
1 changed files with 2 additions and 1 deletions

View File

@ -381,7 +381,8 @@ public abstract class AbstractVCFCodec implements FeatureCodec, NameAwareCodec,
}
}
attributes.put(VariantContext.ID_KEY, id);
if ( ! id.equals(VCFConstants.EMPTY_ID_FIELD) )
attributes.put(VariantContext.ID_KEY, id);
return attributes;
}