public class GroupedTreeStatistics extends Object
Tree groups.TreeStatistics,
MultiTreeStatistics| Constructor and Description |
|---|
GroupedTreeStatistics()
Instantiates a new grouped tree statistics.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addGroup(Collection<Tree> group,
String groupLabel)
Adds a comparison group to the analysis queue.
|
void |
addGroup(Collection<Tree> group,
String groupLabel,
String... swcTypes)
Adds a comparison group to the analysis queue.
|
SNTChart |
getBoxPlot(String measurement)
Assembles a Box and Whisker Plot for the specified measurement (cell morphometry).
|
SNTChart |
getBoxPlot(String feature,
Collection<BrainAnnotation> annotations)
Assembles a Box and Whisker Plot for the specified feature (absolute
measurements).
|
SNTChart |
getBoxPlot(String feature,
Collection<BrainAnnotation> annotations,
double cutoff,
boolean normalize)
Assembles a Box and Whisker Plot for the specified feature.
|
Collection<String> |
getGroups()
Gets the group identifiers currently queued for analysis.
|
MultiTreeStatistics |
getGroupStats(String groupLabel)
Gets the group statistics.
|
SNTChart |
getHistogram(String measurement)
Gets the relative frequencies histogram for a univariate measurement.
|
int |
getN(String groupLabel)
Gets the number of Trees in a specified group.
|
static void |
main(String[] args) |
void |
setMinNBins(int minNoOfBins)
Sets the minimum number of bins when assembling histograms.
|
public GroupedTreeStatistics()
public void addGroup(Collection<Tree> group, String groupLabel)
group - the groupgroupLabel - a unique label identifying the grouppublic void addGroup(Collection<Tree> group, String groupLabel, String... swcTypes) throws NoSuchElementException
group - the collection of Trees to be analyzedgroupLabel - a unique label identifying the groupswcTypes - SWC type(s) a string with at least 2 characters describing
the SWC type allowed in the subtree (e.g., 'axn', or
'dendrite')NoSuchElementException - swcTypes are not applicable to grouppublic MultiTreeStatistics getGroupStats(String groupLabel)
groupLabel - the unique label identifying the groupgroupLabelpublic int getN(String groupLabel)
groupLabel - the unique label identifying the groupgroupLabelpublic Collection<String> getGroups()
public SNTChart getHistogram(String measurement)
measurement - the measurement (N_NODES, NODE_RADIUS, etc.)MultiTreeStatistics.getMetrics(),
TreeStatistics.getMetrics(),
setMinNBins(int)public SNTChart getBoxPlot(String measurement)
measurement - the measurement (N_NODES, NODE_RADIUS, etc.)MultiTreeStatistics.getMetrics(),
TreeStatistics.getMetrics()public SNTChart getBoxPlot(String feature, Collection<BrainAnnotation> annotations)
feature - the feature (,
,
, etc.). Note that the
majority of MultiTreeStatistics.getAllMetrics()
metrics are currently not supported.annotations - the BrainAnnotation to be queried. Null not allowed.public SNTChart getBoxPlot(String feature, Collection<BrainAnnotation> annotations, double cutoff, boolean normalize)
feature - the feature (,
,
, etc.). Note that the
majority of MultiTreeStatistics.getAllMetrics()
metrics are currently not supported.annotations - the BrainAnnotation to be queried. Null not allowed.cutoff - a filtering option. If the computed feature for an
annotation is below this value, that annotation is
excluded from the plotnormalize - If true, values are retrieved as ratios. E.g., If
feature is ,
and cutoff 0.1, BrainAnnotations in
annotations associated with less than 10% of cable
length are ignored.public static void main(String[] args)
public void setMinNBins(int minNoOfBins)
minNoOfBins - the minimum number of bins.Copyright © 2018–2021 Morphonets. All rights reserved.