bug fixes

This commit is contained in:
Guillermo del Angel 2011-07-04 21:10:44 -04:00
parent bb85f232b9
commit 9124c84a7c
1 changed files with 1 additions and 1 deletions

View File

@ -321,7 +321,7 @@ public class SelectVariants extends RodWalker<Integer, Integer> {
if (SELECT_RANDOM_NUMBER) {
randomlyAddVariant(++variantNumber, sub, ref.getBase());
}
else if (!SELECT_RANDOM_FRACTION || GenomeAnalysisEngine.getRandomGenerator().nextDouble() < fractionRandom) {
else if (!SELECT_RANDOM_FRACTION || (!KEEP_AF_SPECTRUM && GenomeAnalysisEngine.getRandomGenerator().nextDouble() < fractionRandom)) {
vcfWriter.add(sub, ref.getBase());
}
else {