Making AnnDataSet changes reflect in individual sample files
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 323
- Forks
- 43
- PR merge metrics
- No merged PRs in 30d
Description
I have 16 samples I independently performed QC for. I have .h5ad files for each of these.
For these samples, I made an AnnDataSet, "all_samples.h5ad"and read into the variable data. I performed UMAP embedding, Harmony integration, generated gene matrix and MAGIC imputed for my genes of interest.
Based on these genes I want to apply cell type labels to each cell. But trying something like this doesn't work:
data.obs["cell_type"] = data.obs["leiden_1.5"].map(leiden_to_cell_type)
where "leiden_to_cell_type" maps leiden cluster to cell type annotation.
How do I make this work for the AnnDataSet? And how can I make new columns added to the AnnDataSet reflect in the individual .h5ad files that the AnnDataSet is referencing?
Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the data.obs assignment on the AnnDataSet loaded from all_samples.h5ad, then inspect how its referenced individual .h5ad files handle observation-column updates. Determine whether propagation is supported or needs a documented workflow; done means cell-type columns can be added as requested and the result is clear for each sample file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- data
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100