Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement from_Seurat and to_Seurat #60

Closed
rcannood opened this issue May 3, 2023 · 4 comments · Fixed by #64
Closed

Implement from_Seurat and to_Seurat #60

rcannood opened this issue May 3, 2023 · 4 comments · Fixed by #64
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@rcannood
Copy link
Collaborator

rcannood commented May 3, 2023

No description provided.

@rcannood rcannood self-assigned this May 3, 2023
@rcannood rcannood added this to the 0.1.0 milestone May 3, 2023
@LouiseDck LouiseDck reopened this Sep 15, 2023
@LouiseDck LouiseDck moved this to 📋 Backlog in Ghent Hackathon 2023 Sep 15, 2023
@bschilder bschilder added the enhancement New feature or request label Sep 18, 2023
@berombau berombau moved this from 📋 Backlog to 🏗 In progress in Ghent Hackathon 2023 Sep 18, 2023
@bschilder
Copy link
Collaborator

bschilder commented Sep 18, 2023

from_Seurat strategy

  • Only support single-assays when converting to "AbstractAnnData".
  • When a Seurat object has >1 assay, tell the user the Default assay is being used.
  • Also allow the user to select which assay they want to use.
  • Alternatively, could store original assay name in uns slot. If the stored assay name is available, use that, if not use the default "RNA".
  • Turn each matrix element within the selected assay into layers (counts, data, scaled.data).
  • Set X as counts matrix element by default, as you can always normalise/manipulate the data from afterwards. However, allow the user the option of setting X=NULL
  • Enable conversion of obsm slot
  • Enable conversion of varm slot

to_Seurat strategy

  • Check names of layers, and if they correspond to canonical Seurat matrix element names (counts, data, scaled.data), assign them accordingly.
  • Allow the user to set the assay name. If NULL, will set to Seurat default assay name ("RNA").
  • When X is not provided, use first layer as assay data, and the rest as additional assays.
  • When neither X nor layers are provided, throw error.
  • Enable conversion of obsm slot
  • Enable conversion of varm slot

Sorry, something went wrong.

@rcannood rcannood changed the title Implement from_Seurat Implement from_Seurat and to_Seurat Sep 18, 2023
@rcannood
Copy link
Collaborator Author

Sounds good, thanks!

@csangara
Copy link
Collaborator

@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.

@rcannood
Copy link
Collaborator Author

rcannood commented Nov 5, 2024

Fixed by #183

@github-project-automation github-project-automation bot moved this from 🏗 In progress to ✅ Done in Ghent Hackathon 2023 Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants