Package | Description |
---|---|
htsjdk.variant.variantcontext |
Modifier and Type | Method and Description |
---|---|
VariantContextBuilder |
VariantContextBuilder.alleles(Collection<Allele> alleles)
Tells this builder to use this collection of alleles for the resulting VariantContext
|
VariantContextBuilder |
VariantContextBuilder.alleles(List<String> alleleStrings) |
VariantContextBuilder |
VariantContextBuilder.alleles(String... alleleStrings) |
VariantContextBuilder |
VariantContextBuilder.attribute(String key,
Object value)
Puts the key -> value mapping into this builder's attributes
|
VariantContextBuilder |
VariantContextBuilder.attributes(Map<String,Object> attributes)
Tells this builder to use this map of attributes alleles for the resulting
VariantContext
Attributes can be null -> meaning there are no attributes. |
VariantContextBuilder |
VariantContextBuilder.chr(String contig)
Tells us that the resulting VariantContext should have the specified contig chr
|
VariantContextBuilder |
VariantContextBuilder.computeEndFromAlleles(List<Allele> alleles,
int start) |
VariantContextBuilder |
VariantContextBuilder.computeEndFromAlleles(List<Allele> alleles,
int start,
int endForSymbolicAlleles)
Compute the end position for this VariantContext from the alleles themselves
assigns this builder the stop position computed.
|
VariantContextBuilder |
VariantContextBuilder.copy() |
VariantContextBuilder |
VariantContextBuilder.filter(String filter) |
VariantContextBuilder |
VariantContextBuilder.filters(Set<String> filters)
This builder's filters are set to this value
filters can be
null -> meaning there are no filters |
VariantContextBuilder |
VariantContextBuilder.filters(String... filters)
|
VariantContextBuilder |
VariantContextBuilder.fullyDecoded(boolean isFullyDecoded)
Sets this builder's fully decoded state to true.
|
VariantContextBuilder |
VariantContextBuilder.genotypes(Collection<Genotype> genotypes)
Tells this builder that the resulting
VariantContext should use a GenotypeContext containing genotypes
Note that genotypes can be null , meaning there are no genotypes |
VariantContextBuilder |
VariantContextBuilder.genotypes(Genotype... genotypes)
Tells this builder that the resulting
VariantContext should use a GenotypeContext containing genotypes |
VariantContextBuilder |
VariantContextBuilder.genotypes(GenotypesContext genotypes)
Tells this builder that the resulting
VariantContext should use this genotype's GenotypeContext . |
VariantContextBuilder |
VariantContextBuilder.genotypesNoValidation(GenotypesContext genotypes) |
VariantContextBuilder |
VariantContextBuilder.id(String ID)
Tells us that the resulting VariantContext should have ID
|
VariantContextBuilder |
VariantContextBuilder.loc(String contig,
long start,
long stop)
Tells us that the resulting VariantContext should have the specified location
|
VariantContextBuilder |
VariantContextBuilder.log10PError(double log10PError)
Tells us that the resulting VariantContext should have log10PError
|
VariantContextBuilder |
VariantContextBuilder.noGenotypes()
Tells this builder that the resulting VariantContext should not contain any GenotypeContext
|
VariantContextBuilder |
VariantContextBuilder.noID()
Tells us that the resulting VariantContext should not have an ID
|
VariantContextBuilder |
VariantContextBuilder.passFilters()
Tells this builder that the resulting VariantContext should have PASS filters
|
VariantContextBuilder |
VariantContextBuilder.rmAttribute(String key)
Removes key if present in the attributes
|
VariantContextBuilder |
VariantContextBuilder.rmAttributes(List<String> keys)
Removes list of keys if present in the attributes
|
VariantContextBuilder |
VariantContextBuilder.source(String source)
Tells us that the resulting VariantContext should have source field set to source
|
VariantContextBuilder |
VariantContextBuilder.start(long start)
Tells us that the resulting VariantContext should have the specified contig start
|
VariantContextBuilder |
VariantContextBuilder.stop(long stop)
Tells us that the resulting VariantContext should have the specified contig stop
|
VariantContextBuilder |
VariantContextBuilder.unfiltered()
Tells this builder that the resulting VariantContext be unfiltered
|
Modifier and Type | Method and Description |
---|---|
static void |
VariantContextUtils.calculateChromosomeCounts(VariantContextBuilder builder,
boolean removeStaleValues)
Update the attributes of the attributes map in the VariantContextBuilder to reflect the proper
chromosome-based VCF tags based on the current VC produced by builder.make()
|
static void |
VariantContextUtils.calculateChromosomeCounts(VariantContextBuilder builder,
boolean removeStaleValues,
Set<String> founderIds)
Update the attributes of the attributes map in the VariantContextBuilder to reflect the proper
chromosome-based VCF tags based on the current VC produced by builder.make()
|
Constructor and Description |
---|
VariantContextBuilder(VariantContextBuilder parent) |