public class InheritanceCompatibilityChecker extends Object
Pedigree
that allows checking whether a
Genotype
call of a VariantContext
is
compatible with a selected mode of inheritance.Modifier and Type | Class and Description |
---|---|
static class |
InheritanceCompatibilityChecker.Builder
Builder for a compatibility checker.
|
Modifier and Type | Method and Description |
---|---|
Map<htsjdk.variant.variantcontext.VariantContext,Set<ModeOfInheritance>> |
check(List<htsjdk.variant.variantcontext.VariantContext> vcList)
Method for checking whether a
List of VariantContext is
compatible with a given ModeOfInheritance and
Pedigree . |
Set<ModeOfInheritance> |
getAllCompatibleModes(List<htsjdk.variant.variantcontext.VariantContext> vcList)
|
List<htsjdk.variant.variantcontext.VariantContext> |
getCompatibleWith(List<htsjdk.variant.variantcontext.VariantContext> vcList)
Method for filtering whether a
List of VariantContext is
compatible with a given ModeOfInheritance and
Pedigree . |
com.google.common.collect.ImmutableSet<ModeOfInheritance> |
getInheritanceModes()
Getter for the field
inheritanceModes . |
Pedigree |
getPedigree()
Getter for the field
pedigree . |
public Pedigree getPedigree()
Getter for the field pedigree
.
InheritanceCompatibilityChecker
public com.google.common.collect.ImmutableSet<ModeOfInheritance> getInheritanceModes()
Getter for the field inheritanceModes
.
InheritanceCompatibilityChecker
public List<htsjdk.variant.variantcontext.VariantContext> getCompatibleWith(List<htsjdk.variant.variantcontext.VariantContext> vcList) throws InheritanceCompatibilityCheckerException
List
of VariantContext
is
compatible with a given ModeOfInheritance
and
Pedigree
.vcList
- List
of VariantContext
to check for
compatibilityVariantContext
that matches the mode of
inheritances.InheritanceCompatibilityCheckerException
- if there are problems with list
or pedigree
.public Set<ModeOfInheritance> getAllCompatibleModes(List<htsjdk.variant.variantcontext.VariantContext> vcList) throws InheritanceCompatibilityCheckerException
List
of VariantContext
is
compatible with ALL possible modes of inheritance (UNINITIALIZED is excluded) and the given
Pedigree
.vcList
- List
of VariantContext
to check for
compatibilityInheritanceCompatibilityCheckerException
- if there are problems with list
or pedigree
.public Map<htsjdk.variant.variantcontext.VariantContext,Set<ModeOfInheritance>> check(List<htsjdk.variant.variantcontext.VariantContext> vcList) throws InheritanceCompatibilityCheckerException
List
of VariantContext
is
compatible with a given ModeOfInheritance
and
Pedigree
.vcList
- List
of VariantContext
to check for
compatibilityVariantContext
and a set to which inheritance mode
they belong.InheritanceCompatibilityCheckerException
- if there are problems with list
or pedigree
.Copyright © 2016. All rights reserved.