public class AlleleDepth implements SiteScore
public static net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE[] ALLELE_DEPTH_TYPES
public static int NUM_ALLELE_DEPTH_TYPES
public int value(int taxon,
int site,
net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE scoreType)
Returns the depth of nucleotide (scoreType) at given taxon and site. Depth values are stored in bytes and translated to integer using AlleleDepthUtil.depthByteToInt().
taxon - taxonsite - sitescoreType - nucleotidepublic int depthForAllele(int taxon,
int site,
int allele)
Same as value() but translates allele into scoreType
taxon - taxonsite - siteallele - allele code (see NucleotideAlignmentConstants)public kotlin.Array[] values(int taxon,
int site)
Returns the depth values of all nucleotides at given taxon and site. Depth values are stored in bytes and translated to integer using AlleleDepthUtil.depthByteToInt().
taxon - taxonsite - sitepublic kotlin.Array[] values(int taxon)
Returns depth values of all nucleotides and sites for given taxon. The first dimension of returned array is nucleotides (ALLELE_DEPTH_TYPES) and second dimension is sites.
taxon - taxonpublic byte valueByte(int taxon,
int site,
net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE scoreType)
Returns the depth (byte representation) of nucleotide (scoreType) at given taxon and site. Depth values are stored in bytes and translated to integer using AlleleDepthUtil.depthByteToInt().
taxon - taxonsite - sitescoreType - nucleotidepublic kotlin.Array[] valuesByte(int taxon,
int site)
Returns the depth values (byte representation) of all nucleotides at given taxon and site. Depth values are stored in bytes and translated to integer using AlleleDepthUtil.depthByteToInt().
taxon - taxonsite - sitepublic kotlin.Array[] valuesForTaxonByte(int taxon)
Returns depth values (byte representation) of all nucleotides and sites for given taxon. The first dimension of returned array is nucleotides (ALLELE_DEPTH_TYPES) and second dimension is sites.
taxon - taxonpublic kotlin.Array[] valuesForSiteByte(int site)
Returns depth values (byte representation) of all nucleotides and taxa for given site. The first dimension of returned array is nucleotides (ALLELE_DEPTH_TYPES) and second dimension is taxa.
site - sitepublic int depth(int taxon,
int site)
Returns sum of all nucleotide depths at given taxon and site.
taxon - taxonsite - sitepublic int depthForTaxon(int taxon)
Returns sum of all nucleotide depths across all sites at given taxon.
taxon - taxonpublic int depthForSite(int site)
Returns sum of all nucleotide depths across all taxa at given site.
site - sitepublic java.util.Set<net.maizegenetics.dna.snp.score.SiteScore.SITE_SCORE_TYPE> siteScoreTypes()
public int numTaxa()
public int numSites()