Closed marcomass closed 7 years ago
Group operator is implemented on API level.
The query: GROUPS = GROUP(cell,cell_sex; meta_aggregates: MScore AS avg(score)) DATA_SET_VAR;
@akaitoua @OlgaGorlova should be involved here.
Currently, I cannot specify region_aggregates parameter without specifying at least one region_key. I should be able to (this corresponds to calculating aggregates based on duplicate regions). @pp86
Also in region_aggregates it calculates the SUM of scores instead of AVG (now in the metadata_aggregates it works correctly) @pp86
From the documentation: "In the output dataset, storing the results of aggregate function evaluations over metadata and/or region attributes in each group of samples and/or regions, respectively." It seems to me that aggregates inside the _metaaggregates option are currently on region attributes (e.g., if I try meta_aggregates: ids AS BAG(metadata_attribute), I get the COMPILE_FAILED message "Avalilable fields are { name, score ...}". Is this the intended behavior? @pp86
@pp86 @sunbrn I have fixed meta and region aggregations (e.g., SUM, AVG etc.)
This bug should be closed since I opened a more updated one: #75 @pp86 @OlgaGorlova @pp86
Completely define and implement the GROUP operator for cross-samples aggregations.