Merge branch 'master' of ssh://nickel.broadinstitute.org/humgen/gsa-scr1/gsa-engineering/git/unstable
This commit is contained in:
commit
096c23a473
|
|
@ -71,8 +71,8 @@ public class KeepAFSpectrumFrequencySelector extends FrequencyModeSelector {
|
|||
// recompute AF,AC,AN based on genotypes:
|
||||
// todo - - maybe too inefficient??
|
||||
VariantContextUtils.calculateChromosomeCounts(vc, attributes, false);
|
||||
afArray = new double[] {Double.valueOf((String)attributes.get(VCFConstants.ALLELE_FREQUENCY_KEY))};
|
||||
} else {
|
||||
}
|
||||
|
||||
// sites-only vc or we explicitly tell to ignore genotypes; we trust the AF field if present
|
||||
if ( vc.hasAttribute(VCFConstants.ALLELE_FREQUENCY_KEY) ) {
|
||||
String afo = vc.getAttributeAsString(VCFConstants.ALLELE_FREQUENCY_KEY, null);
|
||||
|
|
@ -90,7 +90,6 @@ public class KeepAFSpectrumFrequencySelector extends FrequencyModeSelector {
|
|||
else
|
||||
afArray = new double[] {Double.valueOf(afo)};
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (afArray == null )
|
||||
|
|
|
|||
Loading…
Reference in New Issue