bug fix in my new function at SampleUtils.java

This commit is contained in:
Ami Levy-Moonshine 2013-01-28 19:04:39 -05:00
parent 99cb8d68e9
commit c103623cf6
1 changed files with 4 additions and 1 deletions

View File

@ -143,8 +143,11 @@ public class SampleUtils {
for ( Map.Entry<String, VCFHeader> val : VCF_Headers.entrySet() ) {
VCFHeader header = val.getValue();
for ( String sample : header.getGenotypeSamples() ) {
if (samples.add(sample))
if (samples.contains(sample)){
return false;
}
samples.add(sample);
}
}