public class Variant extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Variant.FromTo
Helper class to keep from/to together for a variation.
|
static class |
Variant.GobyIndelFromVCF
VCFToGobyFormatFromTo converts a vcf format indel ("GATC -> GA") to a goby format indel ("TC -> --").
|
| Modifier and Type | Field and Description |
|---|---|
static int |
numFromMistmaches |
static int |
numIndelsEncountered |
int |
position |
String |
referenceBase |
int |
referenceIndex |
static long |
serialVersionUID |
Set<Variant.FromTo> |
trueAlleles |
| Constructor and Description |
|---|
Variant(char referenceBase,
Set<Variant.FromTo> alleles,
int position,
int referenceIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isHeterozygous()
Return True if the genomic site represented by this variant has heterozygous alleles.
|
boolean |
isHomozygous()
Return True if the genomic site represented by this variant has homozygous alleles.
|
boolean |
isIndel()
Returns true iff the set of alleles contains an indel.
|
boolean |
isNoCall()
Return True if the genomic site represented is a no call.
|
boolean |
isSNP()
Returns true iff the set of alleles contains a single nucleotide polymophism.
|
void |
merge(Variant reVar)
Merge another variant with this one.
|
String |
toString() |
public String referenceBase
public Set<Variant.FromTo> trueAlleles
public int position
public int referenceIndex
public static int numFromMistmaches
public static int numIndelsEncountered
public static final long serialVersionUID
public Variant(char referenceBase,
Set<Variant.FromTo> alleles,
int position,
int referenceIndex)
referenceBase - refbase corresponding to base in genome at positionalleles - set of alleles containing a from and to field.position - zero-indexed position on genomereferenceIndex - public void merge(Variant reVar)
reVar - public boolean isIndel()
public boolean isSNP()
public boolean isNoCall()
public boolean isHomozygous()
public boolean isHeterozygous()
Copyright © 2017 Campagne Laboratory. All rights reserved.