question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Storing sub-obs (variable length per observation data)

See original GitHub issue

Hi, We have a use case related to https://github.com/theislab/anndata/issues/237 but slightly different.

We would like to store a second obs array (“sub-obs”, where an observation is an individual transcript in a MERFISH experiment), but related to the first obs array (where an observation is an individual cell).

Has your team thought about how to deal with this use case?

I am thinking something like this:

Untitled presentation

where the transcript ID and cell ID columns in the sub-obs can be like foreign keys into the main obs dataframe.

Is it possible to add a differently-shaped obs and obsm to the same AnnData store?

cc @ilan-gold

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ilan-goldcommented, Aug 23, 2021

Yes @keller-mark! We really want a way to store this spot-level data in AnnData but are just not sure how to go about it. I think this proposal is really solid. We would definitely also be interested in crossover with squidpy if that would be of interest.

0reactions
ilan-goldcommented, Oct 20, 2021

@giovp You’re totally right about this, I got a little carried away. And there’s no rush on the email - I need to start coding and stop emailing you all so much 😄 Let me collect my thoughts on this and I’ll post soon!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storing sub-obs (variable length per observation data) #609
Hi, We have a use case related to #237 but slightly different. We would like to store a second obs array ("sub-obs", where...
Read more >
Defining Enough Storage Space for Variables - SAS Help Center
It defines the number of bytes of storage that is used for the variable Remarks in every observation. SAS uses the LENGTH statement...
Read more >
reshape — Convert data from wide to long form and vice versa
Wide-form data are organized by logical observation, storing all the data on a particular observation in one row. Long-form data are organized by...
Read more >
Number of Unique Obs by Variable in a Data Table
My data are large, so they are stored in data.table format. I would like to determine an easy way to check the number...
Read more >
How do I read in a character variable with varying length in a ...
We start by reading in the dataset where our character variable, site, is read in with the default character format given by $....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found