anndataR
anndataR copied to clipboard
Implement `from_Seurat` and `to_Seurat`
trafficstars
from_Seurat strategy
- [x] Only support single-assays when converting to "AbstractAnnData".
- [x] When a Seurat object has >1 assay, tell the user the Default assay is being used.
- [x] Also allow the user to select which assay they want to use.
- [ ] Alternatively, could store original assay name in
unsslot. If the stored assay name is available, use that, if not use the default "RNA". - [x] Turn each matrix element within the selected assay into layers (
counts,data,scaled.data). - [x] Set
Xascountsmatrix element by default, as you can always normalise/manipulate the data from afterwards. However, allow the user the option of settingX=NULL - [ ] Enable conversion of
obsmslot - [ ] Enable conversion of
varmslot
to_Seurat strategy
- [x] Check names of layers, and if they correspond to canonical Seurat matrix element names (
counts,data,scaled.data), assign them accordingly. - [x] Allow the user to set the assay name. If NULL, will set to Seurat default assay name ("RNA").
- [x] When X is not provided, use first layer as assay data, and the rest as additional assays.
- [x] When neither X nor layers are provided, throw error.
- [x] Enable conversion of
obsmslot - [x] Enable conversion of
varmslot
Sounds good, thanks!
@bschilder @rcannood By the way, I will not have time to work on this anymore before the deadline. You can see what I've done so far in the issue-60-from-seurat-obsm-varm branch. I didn't get to test it very much yet so some parts will probably not work.