Skip to content

Add support for transforming from unions - #934

Closed
colinvwood wants to merge 4 commits into
rachis-org:devfrom
colinvwood:union-returns
Closed

Add support for transforming from unions #934
colinvwood wants to merge 4 commits into
rachis-org:devfrom
colinvwood:union-returns

Conversation

@colinvwood

Copy link
Copy Markdown
Collaborator

Adds support for transforming from unions. Useful when a TypeMatch requires an action to return one of distinct view types.

This mirrors what Michal added a few years ago to support transforming into a member of union, and factors the logic for both into a class method.

Would be helpful for an addition @miiixi1in is making to q2_feature_table.rename_ids to allow us to rename feature IDs in any of FeatureTable[*], FeatureData[Taxonomy], FeatureData[Sequence].

@colinvwood colinvwood changed the title Union returns Add support for transforming from unions May 15, 2026
@colinvwood colinvwood self-assigned this May 15, 2026
@ebolyen

ebolyen commented May 18, 2026

Copy link
Copy Markdown
Contributor

Could we perhaps move this into the transform module (both sides of the equation here)?

I feel like I should be able to use util.transform (I forget if its in plugin or sdk) and end up in the same place.

That would also make it easier to test (I think).

@lizgehret lizgehret moved this from Needs Triage to Awaiting Info in QIIME 2 - Triage 🚑 May 19, 2026
@colinvwood

Copy link
Copy Markdown
Collaborator Author

replaced by #961

@colinvwood colinvwood closed this Aug 5, 2026
@colinvwood colinvwood removed their assignment Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants