public class AlleleDepth extends Object implements SiteScore
SiteScore.SITE_SCORE_TYPE
Modifier and Type | Field and Description |
---|---|
static SiteScore.SITE_SCORE_TYPE[] |
ALLELE_DEPTH_TYPES |
static int |
NUM_ALLELE_DEPTH_TYPES |
Modifier and Type | Method and Description |
---|---|
int |
depth(int taxon,
int site)
Returns sum of all nucleotide depths at given taxon and site.
|
int |
depthForAllele(int taxon,
int site,
int allele)
Same as value() but translates allele into scoreType
|
int |
depthForSite(int site)
Returns sum of all nucleotide depths across all taxa at given site.
|
int |
depthForTaxon(int taxon)
Returns sum of all nucleotide depths across all sites at given taxon.
|
int |
numSites() |
int |
numTaxa() |
Set<SiteScore.SITE_SCORE_TYPE> |
siteScoreTypes()
Return the site scores types.
|
int |
value(int taxon,
int site,
SiteScore.SITE_SCORE_TYPE scoreType)
Returns the depth of nucleotide (scoreType) at given taxon and site.
|
byte |
valueByte(int taxon,
int site,
SiteScore.SITE_SCORE_TYPE scoreType)
Returns the depth (byte representation) of nucleotide (scoreType) at
given taxon and site.
|
int[][] |
values(int taxon)
Returns depth values of all nucleotides and sites for given taxon.
|
int[] |
values(int taxon,
int site)
Returns the depth values of all nucleotides at given taxon and site.
|
byte[] |
valuesByte(int taxon,
int site)
Returns the depth values (byte representation) of all nucleotides at
given taxon and site.
|
byte[][] |
valuesForSiteByte(int site)
Returns depth values (byte representation) of all nucleotides and taxa
for given site.
|
byte[][] |
valuesForTaxonByte(int taxon)
Returns depth values (byte representation) of all nucleotides and sites
for given taxon.
|
public static final SiteScore.SITE_SCORE_TYPE[] ALLELE_DEPTH_TYPES
public static final int NUM_ALLELE_DEPTH_TYPES
public int value(int taxon, int site, SiteScore.SITE_SCORE_TYPE scoreType)
taxon
- taxonsite
- sitescoreType
- nucleotidepublic int depthForAllele(int taxon, int site, int allele)
taxon
- taxonsite
- siteallele
- allele code (see NucleotideAlignmentConstants)public int[] values(int taxon, int site)
taxon
- taxonsite
- sitepublic int[][] values(int taxon)
taxon
- taxonpublic byte valueByte(int taxon, int site, SiteScore.SITE_SCORE_TYPE scoreType)
taxon
- taxonsite
- sitescoreType
- nucleotidepublic byte[] valuesByte(int taxon, int site)
taxon
- taxonsite
- sitepublic byte[][] valuesForTaxonByte(int taxon)
taxon
- taxonpublic byte[][] valuesForSiteByte(int site)
site
- sitepublic int depth(int taxon, int site)
taxon
- taxonsite
- sitepublic int depthForTaxon(int taxon)
taxon
- taxonpublic int depthForSite(int site)
site
- sitepublic Set<SiteScore.SITE_SCORE_TYPE> siteScoreTypes()
SiteScore
siteScoreTypes
in interface SiteScore
Copyright © 2018. All rights reserved.