Merged bug fix from Stable into Unstable
This commit is contained in:
commit
2f08846d82
|
|
@ -52,13 +52,16 @@ public class UniformSamplingFrequencySelector extends FrequencyModeSelector {
|
||||||
if (! selectedInTargetSamples && !IGNORE_POLYMORPHIC)
|
if (! selectedInTargetSamples && !IGNORE_POLYMORPHIC)
|
||||||
return;
|
return;
|
||||||
} else {
|
} else {
|
||||||
if ( attributes.containsKey(VCFConstants.ALLELE_COUNT_KEY) ) {
|
if (!IGNORE_POLYMORPHIC) {
|
||||||
int ac = vc.getAttributeAsInt(VCFConstants.ALLELE_COUNT_KEY, 0);
|
if (vc.getAttributes().containsKey(VCFConstants.ALLELE_COUNT_KEY))
|
||||||
if (ac == 0) return; // site not polymorphic
|
{
|
||||||
|
int ac = vc.getAttributeAsInt(VCFConstants.ALLELE_COUNT_KEY, 0);
|
||||||
|
if (ac == 0) return; // site not polymorphic
|
||||||
|
}
|
||||||
|
else
|
||||||
|
// no allele count field in VC
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
return;
|
|
||||||
|
|
||||||
}
|
}
|
||||||
// create bare-bones event and log in corresponding bin
|
// create bare-bones event and log in corresponding bin
|
||||||
// attributes contains AC,AF,AN pulled from original vc, and we keep them here and log in output file for bookkeeping purposes
|
// attributes contains AC,AF,AN pulled from original vc, and we keep them here and log in output file for bookkeeping purposes
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue