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

Better text representation #44

Closed
gtca opened this issue Jun 1, 2023 · 1 comment · Fixed by #51
Closed

Better text representation #44

gtca opened this issue Jun 1, 2023 · 1 comment · Fixed by #51
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@gtca
Copy link
Collaborator

gtca commented Jun 1, 2023

As mentioned in #13 (comment), text representation could be updated to better reflect the hierarchy in the object as well as to indicate axes.

@gtca gtca added enhancement New feature or request good first issue Good for newcomers labels Jun 1, 2023
gtca added a commit that referenced this issue Sep 8, 2023
@gtca gtca added this to the v0.3.0 milestone Sep 11, 2023
@gtca gtca linked a pull request Sep 11, 2023 that will close this issue
@gtca
Copy link
Collaborator Author

gtca commented Jul 2, 2024

#51 brings enhancements that should improve user experience namely displaying the hierarchy of modalities

print(mdata.mod)
# MuData
# ├─ rna AnnData (10100 x 1234)
# └─ prot AnnData (10100 x 42)

and spelling out the shared axes for non-default axes

print(rna_mdata)
# MuData object with n_obs × n_vars = 100 × 10 (shared obs and var)
#   2 modalities
#     raw:	10100 x 1234
#     preproc:	9999 x 1111

which works together for nested MuData objects:

print(nested_mdata.mod)
# MuData
# ├─ rna MuData [shared obs and var] (10100 × 1234)
# │  ├─ raw AnnData (10100 x 1234)
# │  └─ preproc AnnData (9999 x 1111)
# └─ prot AnnData (10100 x 42)

@gtca gtca closed this as completed Jul 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant