Fixed logic: throw exception if contigs are NOT equal
git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@1827 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
aeca14d052
commit
1b214c0de5
|
|
@ -203,7 +203,7 @@ public class VCFGenotypeWriterAdapter implements GenotypeWriter {
|
|||
}
|
||||
this.referenceBase = refBase;
|
||||
} else {
|
||||
if (contig.equals(this.contig))
|
||||
if (!contig.equals(this.contig))
|
||||
throw new IllegalArgumentException("The contig name has to be the same at a single locus");
|
||||
if (position != this.position)
|
||||
throw new IllegalArgumentException("The position has to be the same at a single locus");
|
||||
|
|
|
|||
Loading…
Reference in New Issue