Package org.snpeff.stats
Class VariantStats
java.lang.Object
org.snpeff.stats.VariantStats
- All Implemented Interfaces:
SamplingStats<Variant>
Variants statistics
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar[]getBases()getBasesChangesColor(String oldBase, String newBase) Background color used for base change tablelonggetBasesChangesCount(String oldBase, String newBase) intintgetChromosomeLength(String chromoName) Choromosome lengthA list of chromosomes that had at least one change Note: Chromosome names are sorted.getChrPosStats(String chrName) getChrPosStatsChartUrl(String chrName) longgetCount()Total number of variantsNumber of variants by typeintgetCountByChromosome(String chromoName) Number of changes by chromosomelonglonglongGenome lengthlongGenome effective length: The sum of length of every chromosome that had a change (e.g.doubleRatio of known variants (the one with a non-empty ID) and total variantslongRate of changeintgetRateOfChangeByChromosome(String chromoName) Rate of change by chromosomebooleanhasData()Does this statistic have any data?voidUse this sample to perform statistics
-
Field Details
-
CHANGE_SEPARATOR
- See Also:
-
-
Constructor Details
-
VariantStats
-
-
Method Details
-
getBases
public char[] getBases() -
getBasesChangesColor
Background color used for base change table -
getBasesChangesCount
-
getChangeType
-
getChangeTypeLength
public int getChangeTypeLength() -
getChromosomeLength
Choromosome length- Parameters:
chromoName-- Returns:
-
getChromosomeNamesEffective
A list of chromosomes that had at least one change Note: Chromosome names are sorted.- Returns:
-
getChrPosStats
-
getChrPosStatsChartUrl
-
getCount
public long getCount()Total number of variants- Returns:
-
getCountByChangeType
Number of variants by type- Returns:
-
getCountByChromosome
Number of changes by chromosome- Parameters:
chromoName-- Returns:
-
getCountNonEmptyId
public long getCountNonEmptyId() -
getCountNonVariants
public long getCountNonVariants() -
getGenomeLen
public long getGenomeLen()Genome length- Returns:
-
getGenomeLenEffective
public long getGenomeLenEffective()Genome effective length: The sum of length of every chromosome that had a change (e.g. If there was no SNP in chromosome Y, then it doesn't count in the effective length)- Returns:
-
getIndelLen
-
getIndelLenHistoUrl
-
getKnownRatio
public double getKnownRatio()Ratio of known variants (the one with a non-empty ID) and total variants -
getRateOfChange
public long getRateOfChange()Rate of change- Returns:
-
getRateOfChangeByChromosome
Rate of change by chromosome- Parameters:
chromoName-- Returns:
-
hasData
public boolean hasData()Description copied from interface:SamplingStatsDoes this statistic have any data?- Specified by:
hasDatain interfaceSamplingStats<Variant>- Returns:
-
sample
Use this sample to perform statistics- Specified by:
samplein interfaceSamplingStats<Variant>
-