Storing sub-obs (variable length per observation data)
See original GitHub issueHi, 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:
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:
- Created 2 years ago
- Comments:7 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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 withsquidpy
if that would be of interest.@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!