Embarassing bug fixed

This commit is contained in:
Mark DePristo 2011-11-22 10:16:36 -05:00
parent e484625594
commit 7087310373
1 changed files with 1 additions and 1 deletions

View File

@ -965,7 +965,7 @@ public class VariantContextUtils {
private static void mergeGenotypes(GenotypesContext mergedGenotypes, VariantContext oneVC, AlleleMapper alleleMapping, boolean uniqifySamples) {
for ( Genotype g : oneVC.getGenotypes() ) {
String name = mergedSampleName(oneVC.getSource(), g.getSampleName(), uniqifySamples);
if ( mergedGenotypes.containsSample(name) ) {
if ( ! mergedGenotypes.containsSample(name) ) {
// only add if the name is new
Genotype newG = g;