Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ str support for var_index of AnnDataCurator #2105

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Zethson
Copy link
Member

@Zethson Zethson commented Oct 23, 2024

Fixes #2091

  • Adds support for str in var_index. However, this currently assumes that the var_index is Gene. I am not sure whether this is the right way to go about it. Maybe we should actually just not do this.
  • If we don't do this, I'd add a type check because it's easy to accidentally pass a str and then be confused.

WDYT @sunnyosun ?

@Zethson Zethson changed the title ✨ var index support ✨ str support for var_index of AnnDataCurator Oct 23, 2024
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.

AttributeError: 'str' object has no attribute 'field' when passing "symbol" instead of "bt.Gene.symbol"
1 participant