Class GroupedResults
Object
GroupedResults
Stores feature-calculation results, indexing by their group.
Outputs various files pertaining to the grouped-features to the filesystem.
Two categories of outputs occur:
- Aggregate output (a CSV file showing aggregate features for all groups).
- Group outputs (XML and specific CSV files with features only for the group).
- Author:
- Owen Feehan
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addResultsFor
(LabelledResultsVector results) Adds a result to the group-writer, but doesn't write yet.void
writeGroupResults
(Optional<NamedFeatureStore<FeatureInputResults>> featuresAggregate, boolean includeGroups, FeatureOutputMetadata outputMetadata, FeatureCSVWriterFactory createAggregatedCSVWriter, InputOutputContextSubdirectoryCache contextGroups) Writes outputs for groups that have been previously added withaddResultsFor(org.anchoranalysis.feature.io.results.LabelledResultsVector)
.
-
Constructor Details
-
GroupedResults
public GroupedResults()
-
-
Method Details
-
addResultsFor
Adds a result to the group-writer, but doesn't write yet.- Parameters:
results
- the results.
-
writeGroupResults
public void writeGroupResults(Optional<NamedFeatureStore<FeatureInputResults>> featuresAggregate, boolean includeGroups, FeatureOutputMetadata outputMetadata, FeatureCSVWriterFactory createAggregatedCSVWriter, InputOutputContextSubdirectoryCache contextGroups) throws OutputWriteFailedException Writes outputs for groups that have been previously added withaddResultsFor(org.anchoranalysis.feature.io.results.LabelledResultsVector)
.- Parameters:
featuresAggregate
- features for aggregating existing results-calculations, if enabled.includeGroups
- whether to output "groups".outputMetadata
- additional information needed for the outputs inLabelledResultsCollector
.createAggregatedCSVWriter
- creating a CSVWriter for the aggregated outputs.contextGroups
- input-output context for the group outputs.- Throws:
OutputWriteFailedException
- if any Writing fails.
-