VCF is both a multi- and single- sample format, so we shouldn't be throwing an exception when used for SS
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1803 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
d9f5a314ac
commit
9f3482ef11
|
|
@ -8,6 +8,7 @@ import org.broadinstitute.sting.utils.genotype.ReadBacked;
|
|||
import org.broadinstitute.sting.utils.genotype.SampleBacked;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.Arrays;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
|
@ -82,7 +83,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
|||
*/
|
||||
@Override
|
||||
public void addGenotypeCall(Genotype call) {
|
||||
throw new UnsupportedOperationException("VCF is a multi sample fomat");
|
||||
addMultiSampleCall(Arrays.asList(call));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -92,7 +93,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
|||
*/
|
||||
@Override
|
||||
public void addNoCall(int position) {
|
||||
throw new UnsupportedOperationException("VCF is a multi sample fomat");
|
||||
throw new UnsupportedOperationException("We don't currently support no-calls in VCF");
|
||||
}
|
||||
|
||||
/** finish writing, closing any open files. */
|
||||
|
|
|
|||
Loading…
Reference in New Issue