public abstract class StatisticCalculator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected DifferentialExpressionResults |
results |
protected it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.lang.MutableString> |
statisticIds
The name of the statistic implemented by this calculator.
|
| Modifier | Constructor and Description |
|---|---|
protected |
StatisticCalculator(String... statisticIds)
Create a new StatisticCalculator with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
canDo(String[] group)
Override this method to support a certain number of groups.
|
int |
defineStatisticId(DifferentialExpressionResults results,
it.unimi.dsi.lang.MutableString statisticId)
Define the name of a statistic if the name was not previously defined.
|
int |
defineStatisticId(DifferentialExpressionResults results,
it.unimi.dsi.lang.MutableString statisticId,
NormalizationMethod normalizationMethod)
Define the name of a statistic if the name was not previously defined.
|
int |
defineStatisticId(DifferentialExpressionResults results,
String statisticId)
Define the name of a statistic if the name was not previously defined.
|
int |
defineStatisticId(DifferentialExpressionResults results,
String statisticId,
NormalizationMethod normalizationMethod)
Define the name of a statistic if the name was not previously defined.
|
int |
defineStatisticId(DifferentialExpressionResults results,
String statisticId,
NormalizationMethod method,
String... group)
Define the name of a statistic if the name was not previously defined.
|
abstract DifferentialExpressionInfo |
evaluate(DifferentialExpressionCalculator differentialExpressionCalculator,
NormalizationMethod method,
DifferentialExpressionResults results,
DifferentialExpressionInfo info,
String... group) |
DifferentialExpressionResults |
evaluate(DifferentialExpressionCalculator differentialExpressionCalculator,
NormalizationMethod method,
DifferentialExpressionResults inputList,
String... group)
Evaluate a statistic on all the elements described in a differentialExpressionCalculator.
|
protected it.unimi.dsi.lang.MutableString |
getMatchingStatId(String prefix)
Return the statistic id that starts with prefix.
|
boolean |
installed()
Some implementations may not be installed on the local machine.
|
void |
setResults(DifferentialExpressionResults results) |
protected DifferentialExpressionResults results
protected final it.unimi.dsi.fastutil.objects.ObjectList<it.unimi.dsi.lang.MutableString> statisticIds
protected StatisticCalculator(String... statisticIds)
statisticIds - List of statistic ids that this calculator will generate, or none if the statistic ids will
be determined by the evaluate method.public int defineStatisticId(DifferentialExpressionResults results, it.unimi.dsi.lang.MutableString statisticId)
results - DifferentialExpressionResults instancestatisticId - name of the statisticpublic int defineStatisticId(DifferentialExpressionResults results, String statisticId, NormalizationMethod method, String... group)
results - DifferentialExpressionResults instancestatisticId - name of the statisticmethod - Normalization methodgroup - the groups in questionpublic int defineStatisticId(DifferentialExpressionResults results, String statisticId, NormalizationMethod normalizationMethod)
results - DifferentialExpressionResults instancestatisticId - name of the statisticnormalizationMethod - Normalization methodpublic int defineStatisticId(DifferentialExpressionResults results, it.unimi.dsi.lang.MutableString statisticId, NormalizationMethod normalizationMethod)
results - DifferentialExpressionResults instancestatisticId - name of the statisticnormalizationMethod - Normalization methodpublic int defineStatisticId(DifferentialExpressionResults results, String statisticId)
results - DifferentialExpressionResults instancestatisticId - name of the statisticpublic void setResults(DifferentialExpressionResults results)
public abstract boolean canDo(String[] group)
group - the groups in questionpublic boolean installed()
public abstract DifferentialExpressionInfo evaluate(DifferentialExpressionCalculator differentialExpressionCalculator, NormalizationMethod method, DifferentialExpressionResults results, DifferentialExpressionInfo info, String... group)
public DifferentialExpressionResults evaluate(DifferentialExpressionCalculator differentialExpressionCalculator, NormalizationMethod method, DifferentialExpressionResults inputList, String... group)
differentialExpressionCalculator - The deCalculator that keeps the data
needed to evaluate the statisticmethod - the normalization methodgroup - The set of groups for which the comparison is sought. @return list of DifferentialExpressionInfo, one per element processed.protected it.unimi.dsi.lang.MutableString getMatchingStatId(String prefix)
prefix - prefix must match the start of statistic idCopyright © 2018 Campagne Laboratory. All rights reserved.