Skip to content

MAINT: move FeatureData[Importance] type and formats from q2-sample-classifier #389

Closed

Description

@VinzentRisch

Problem

FeatureData[Importance] is currently defined in q2-sample-classifier, along with its TSV file format, directory format, and transformers. That makes the type hard to reuse from other plugins without introducing an unnecessary dependency on q2-sample-classifier.

This now blocks work in qiime2/q2-feature-table#357, where q2-feature-table needs to emit core scores as FeatureData[Importance] artifacts.

Proposed change

Move ownership of the shared type into q2-types by adding:

  • Importance as a FeatureData variant
  • ImportanceFormat
  • ImportanceDirectoryFormat
  • registration of FeatureData[Importance] to ImportanceDirectoryFormat
  • transformers between ImportanceFormat, pandas.DataFrame, and qiime2.Metadata

This would allow q2-feature-table and q2-sample-classifier to import Importance from q2_types.feature_data, without either plugin depending on the other for a common semantic type.

Activity

  1. changed the title [-]ENH: add FeatureData[Importance] type and formats[/-] [+]MAINT: move FeatureData[Importance] type and formats from q2-sample-classifier[/+] on May 12, 2026
  2. moved this from Backlog to In Development in 2026.7 🐐on May 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions