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

Consider using a converted Seurat object in hello-clusters #957

Open
sjspielman opened this issue Dec 20, 2024 · 1 comment
Open

Consider using a converted Seurat object in hello-clusters #957

sjspielman opened this issue Dec 20, 2024 · 1 comment
Assignees

Comments

@sjspielman
Copy link
Member

For AlexsLemonade/OpenScPCA-nf#108, we are working towards offering Seurat-ified processed ScPCA files as part of OpenScPCA results.
In this hello-clusters notebook, we convert an SCE to Seurat using rOpenScPCA. We might consider just reading in the Seurat file version directly, although this would mean there's an additional dependency to download those results files in this module. I'm opening this issue to both a) decide if we want to read in from results, and if so b) update notebook accordingly.

To demonstrate this, we'll convert our SCE object to a Seurat using the function `rOpenScPCA::sce_to_seurat()`.
Then, we'll use a simple Seurat pipeline to obtain clusters.
<!-- TODO: We will want to reference this module for further documentation on this function: https://github.com/AlexsLemonade/OpenScPCA-analysis/issues/945 -->
```{r sce to seurat, message = FALSE}
# Convert the SCE to a Seurat object using rOpenScPCA
seurat_obj <- rOpenScPCA::sce_to_seurat(sce)
# Calculate clusters with Seurat using a standard Seurat pipeline, for example
seurat_obj <- seurat_obj |>
SCTransform() |>
RunPCA() |>
FindNeighbors() |>
FindClusters()
seurat_obj
```

@sjspielman
Copy link
Member Author

Thinking about this fresh, I think we should leave this as is and keep the sce -> seurat conversion in the notebook. This is because reading in the Seurat file would require users to download the Seurat object results before being able to run the notebook, which seems like an unnecessary (and not obvious or frankly even relevant) extra step to have to take.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant