public class Snp extends Object implements Comparable<Snp>
Constructor and Description |
---|
Snp(String name,
String chrom,
int pos,
byte allele1,
byte allele2,
double maf,
List<String> fingerprintPanels) |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Snp that) |
boolean |
equals(Object o) |
Snp |
flip()
Returns a new SNP object with the alleles swapped and MAF corrected.
|
byte |
getAllele1() |
byte |
getAllele2() |
String |
getAlleleString() |
String |
getChrom() |
List<String> |
getFingerprintPanels() |
DiploidGenotype |
getHeterogyzousGenotype() |
DiploidGenotype |
getHomozygousAllele1Genotype() |
DiploidGenotype |
getHomozygousAllele2Genotype() |
double |
getMaf() |
String |
getName() |
int |
getPos() |
int |
hashCode() |
String |
toString() |
public Snp flip()
public String getName()
public String getChrom()
public int getPos()
public byte getAllele1()
public byte getAllele2()
public double getMaf()
public DiploidGenotype getHomozygousAllele1Genotype()
public DiploidGenotype getHeterogyzousGenotype()
public DiploidGenotype getHomozygousAllele2Genotype()
public String getAlleleString()
public int compareTo(Snp that)
compareTo
in interface Comparable<Snp>