Package | Description |
---|---|
htsjdk.variant.variantcontext |
Modifier and Type | Class and Description |
---|---|
class |
LazyGenotypesContext
Lazy-loading GenotypesContext.
|
Modifier and Type | Field and Description |
---|---|
protected GenotypesContext |
VariantContext.genotypes
A mapping from sampleName -> genotype objects for all genotypes associated with this context
|
static GenotypesContext |
GenotypesContext.NO_GENOTYPES
static constant value for an empty GenotypesContext.
|
static GenotypesContext |
VariantContext.NO_GENOTYPES |
Modifier and Type | Method and Description |
---|---|
static GenotypesContext |
GenotypesContext.copy(Collection<Genotype> toCopy)
Create a GenotypesContext containing the genotypes in iteration order contained
in toCopy
|
static GenotypesContext |
GenotypesContext.copy(GenotypesContext toCopy)
Create a freshly allocated GenotypeContext containing the genotypes in toCopy
|
static GenotypesContext |
GenotypesContext.create()
Basic creation routine
|
static GenotypesContext |
GenotypesContext.create(ArrayList<Genotype> genotypes)
Create a fully resolved GenotypeContext containing genotypes
|
static GenotypesContext |
GenotypesContext.create(ArrayList<Genotype> genotypes,
Map<String,Integer> sampleNameToOffset,
List<String> sampleNamesInOrder)
Create a fully resolved GenotypeContext containing genotypes, sample lookup table,
and sorted sample names
|
static GenotypesContext |
GenotypesContext.create(Genotype... genotypes)
Create a fully resolved GenotypeContext containing genotypes
|
static GenotypesContext |
GenotypesContext.create(int nGenotypes)
Basic creation routine
|
GenotypesContext |
VariantContext.getGenotypes() |
protected GenotypesContext |
VariantContext.getGenotypes(Collection<String> sampleNames)
Returns a map from sampleName -> Genotype for each sampleName in sampleNames.
|
GenotypesContext |
VariantContext.getGenotypes(Set<String> sampleNames) |
GenotypesContext |
VariantContext.getGenotypes(String sampleName)
Returns a map from sampleName -> Genotype for the genotype associated with sampleName.
|
GenotypesContext |
GenotypesContext.immutable() |
GenotypesContext |
GenotypesContext.subsetToSamples(Set<String> samples)
Return a freshly allocated subcontext of this context containing only the samples
listed in samples.
|
Modifier and Type | Method and Description |
---|---|
static GenotypesContext |
GenotypesContext.copy(GenotypesContext toCopy)
Create a freshly allocated GenotypeContext containing the genotypes in toCopy
|
VariantContextBuilder |
VariantContextBuilder.genotypes(GenotypesContext genotypes)
Tells this builder that the resulting
VariantContext should use this genotype's GenotypeContext . |
VariantContextBuilder |
VariantContextBuilder.genotypesNoValidation(GenotypesContext genotypes) |
Constructor and Description |
---|
VariantContext(String source,
String ID,
String contig,
long start,
long stop,
Collection<Allele> alleles,
GenotypesContext genotypes,
double log10PError,
Set<String> filters,
Map<String,Object> attributes,
boolean fullyDecoded,
EnumSet<VariantContext.Validation> validationToPerform)
the actual constructor.
|