Merge branch 'master' of ssh://nickel.broadinstitute.org/humgen/gsa-scr1/gsa-engineering/git/unstable
This commit is contained in:
commit
3d9eee4942
|
|
@ -52,13 +52,16 @@ public class UniformSamplingFrequencySelector extends FrequencyModeSelector {
|
|||
if (! selectedInTargetSamples && !IGNORE_POLYMORPHIC)
|
||||
return;
|
||||
} else {
|
||||
if ( attributes.containsKey(VCFConstants.ALLELE_COUNT_KEY) ) {
|
||||
int ac = vc.getAttributeAsInt(VCFConstants.ALLELE_COUNT_KEY, 0);
|
||||
if (ac == 0) return; // site not polymorphic
|
||||
if (!IGNORE_POLYMORPHIC) {
|
||||
if (vc.getAttributes().containsKey(VCFConstants.ALLELE_COUNT_KEY))
|
||||
{
|
||||
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
|
||||
// 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