Skip to content

Read/write H5AD obs/var names directly #87

Closed

Description

@lazappi

Currently reading works by reading obs/var and getting the row names (and caching them). Writing tries to set the rownames and then write obs/var but that doesn't work because the validation function strips the rownames.

What we need to do instead is:

  1. Check the name of the index column
  2. Read names directly from [obs/var]/[_index]
  3. Maybe writing should always write to _index and not overwrite any other column that might be an index?

Needs to be fixed for #85. Maybe should also properly consider how this works for data frames more generally.

Activity

  1. lazappi commented on May 22, 2023

    @lazappi
    CollaboratorAuthor

    Also need to make sure that writing obs/var doesn't overwrite obs_names/var_names. This is trickier and probably requires modifying write_h5ad_data_frame to give some way of not writing the index.

  2. added a commit that references this issue on May 22, 2023
  3. added a commit that references this issue on Jun 7, 2023
    22c27ce
  4. added this to the 1.0.0 milestone on Sep 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions