Variant class

A variant represents a change in DNA sequence relative to a reference sequence. For example, a variant could represent a SNP or an insertion. Variants belong to a variant set.

Each of the calls on a variant represent a determination of genotype with respect to that variant. For example, a call might assign probability of 0.32 to the occurrence of a SNP named rs1234 in a sample named NA12345. A call belongs to a call set, which contains related calls typically from one sample.


Variant.fromJson(Map _json)


alternateBases ↔ List<String>
The bases that appear instead of the reference bases.
read / write
calls ↔ List<VariantCall>
The variant calls for this particular variant. Each one represents the determination of genotype with respect to this variant.
read / write
created ↔ String
The date this variant was created, in milliseconds from the epoch.
read / write
end ↔ String
The end position (0-based) of this variant. This corresponds to the first base after the last base in the reference allele. So, the length of the reference allele is (end - start). This is useful for variants that don't explicitly give alternate bases, for example large deletions.
read / write
filter ↔ List<String>
A list of filters (normally quality filters) this variant has failed. PASS indicates this variant has passed all filters.
read / write
id ↔ String
The server-generated variant ID, unique across all variants.
read / write
info ↔ Map<String, List<Object>>
A map of additional variant information. This must be of the form map<string, string[]> (string key mapping to a list of string values). [...]
read / write
names ↔ List<String>
Names for the variant, for example a RefSNP ID.
read / write
quality ↔ double
A measure of how likely this variant is to be real. A higher value is better.
read / write
referenceBases ↔ String
The reference bases for this variant. They start at the given position.
read / write
referenceName ↔ String
The reference on which this variant occurs. (such as chr20 or X)
read / write
start ↔ String
The position at which this variant occurs (0-based). This corresponds to the first base of the string of reference bases.
read / write
variantSetId ↔ String
The ID of the variant set this variant belongs to.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited


toJson() → Map<String, Object>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
toString() → String
Returns a string representation of this object.


operator ==(dynamic other) → bool
The equality operator.