Skip to content

ENH: add core score action - #358

Closed
VinzentRisch wants to merge 5 commits into
qiime2:devfrom
VinzentRisch:357_core_score
Closed

VinzentRisch wants to merge 5 commits into
qiime2:devfrom
VinzentRisch:357_core_score

Conversation

@VinzentRisch

Copy link
Copy Markdown
Contributor

Summary

Adds a core score action that computes per-feature prevalence-abundance scores from a relative-frequency feature table and emits them as FeatureData[Importance].

Changes

  • Adds core_score to compute scaled prevalence, scaled log mean abundance, and their product per feature.
  • Registers the core_score method for FeatureTable[RelativeFrequency] inputs and FeatureData[Importance] outputs.
  • Exports core_score from q2_feature_table.
  • Adds targeted unit tests for default scoring, custom threshold/epsilon behavior, mean abundance over present samples, and finite scaling for constant values.

Links

This PR was created in part with Codex 5.5

@lizgehret

Copy link
Copy Markdown
Member

Hey @VinzentRisch once that q2-types PR is merged, we can rerun CI on this - just let us know when that's ready and you need a review on this one!

@VinzentRisch

Copy link
Copy Markdown
Contributor Author

This was moved to q2-core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: In Development

Development

Successfully merging this pull request may close these issues.

ENH: add action to calculate core score for features

5 participants