Skip to content

Layers attribute similar to loom #44

Closed

Description

@falexwolf

@Koncopd Let's discuss the issue here.

In essence, we want to have loom's layers functionality also for AnnData in order to deal with replicated data matrices as produced by the velocyto command line tool.

The most basic thing we need is the iteration over the layers in the loom file and their corresponding initialization in the AnnData file, which would be an extension of read_loom (https://github.com/theislab/anndata/blob/86ede1effa86a5d88db18d71c21c4057887066b5/anndata/readwrite/read.py#L126-L155)

      adata.layer[key] = loomconnection.layer['key'][:, :].T

Main questions are: how to elegantly combine the X and the layers group? Shall we call it .layers_X for more verbosity and stressing of the fact that we force the dimensions to be the same? How to deal with the transposition: ideally, when in backed mode, we don't want to load everything in the loom file into memory but rather convert the file into an .h5ad file.

Let's start with memory mode and some simple functionality, though...

Activity

  1. added a commit that references this issue on Sep 26, 2018
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

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions