Fixed broken VariantEval stratifications VariantType and IndelSize - integration tests to follow

This commit is contained in:
Guillermo del Angel 2012-06-03 08:38:38 -04:00
parent 4bc04e2a9e
commit 2ddbdee3bc
2 changed files with 8 additions and 2 deletions

View File

@ -47,4 +47,8 @@ public class IndelSize extends VariantStratifier {
return Collections.emptyList();
}
@Override
public String getFormat() {
return "%d";
}
}

View File

@ -38,10 +38,12 @@ import java.util.List;
public class VariantType extends VariantStratifier {
@Override
public void initialize() {
states.addAll(Arrays.asList(VariantContext.Type.values()));
for (VariantContext.Type t : VariantContext.Type.values())
states.add(t.toString());
}
public List<Object> getRelevantStates(ReferenceContext ref, RefMetaDataTracker tracker, VariantContext comp, String compName, VariantContext eval, String evalName, String sampleName) {
return eval == null ? Collections.emptyList() : Collections.singletonList((Object)eval.getType());
return eval == null ? Collections.emptyList() : Collections.singletonList((Object)eval.getType().toString());
}
}