Package picard.fingerprint
Class Snp
- java.lang.Object
-
- picard.fingerprint.Snp
-
- All Implemented Interfaces:
Comparable<Snp>
public class Snp extends Object implements Comparable<Snp>
Class to represent a SNP in context of a haplotype block that is used in fingerprinting.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Snp that)booleanequals(Object o)Snpflip()Returns a new SNP object with the alleles swapped and MAF corrected.bytegetAllele1()bytegetAllele2()List<htsjdk.variant.variantcontext.Allele>getAlleles()StringgetAlleleString()StringgetChrom()List<String>getFingerprintPanels()DiploidGenotypegetHeterogyzousGenotype()DiploidGenotypegetHomozygousAllele1Genotype()DiploidGenotypegetHomozygousAllele2Genotype()doublegetMaf()StringgetName()intgetPos()inthashCode()StringtoString()
-
-
-
Method Detail
-
flip
public Snp flip()
Returns a new SNP object with the alleles swapped and MAF corrected.
-
getName
public String getName()
-
getChrom
public String getChrom()
-
getPos
public int getPos()
-
getAllele1
public byte getAllele1()
-
getAllele2
public byte getAllele2()
-
getAlleles
public List<htsjdk.variant.variantcontext.Allele> getAlleles()
-
getMaf
public double getMaf()
-
getHomozygousAllele1Genotype
public DiploidGenotype getHomozygousAllele1Genotype()
-
getHeterogyzousGenotype
public DiploidGenotype getHeterogyzousGenotype()
-
getHomozygousAllele2Genotype
public DiploidGenotype getHomozygousAllele2Genotype()
-
getAlleleString
public String getAlleleString()
-
compareTo
public int compareTo(Snp that)
- Specified by:
compareToin interfaceComparable<Snp>
-
-