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

How to: Custom SingleCellExperiment Object #114

Open
eden528 opened this issue Aug 28, 2023 · 1 comment
Open

How to: Custom SingleCellExperiment Object #114

eden528 opened this issue Aug 28, 2023 · 1 comment

Comments

@eden528
Copy link

eden528 commented Aug 28, 2023

Hi, I am trying to use this with a non-10X count matrix and 10X Visium barcodes. How can I generate the SingleCellExperiment object using my count matrix (standard format) and the Visium barcodes + coordinates file?

Thank you!

@edward130603
Copy link
Owner

See the SCE and SummarizedExperiment manual pages for info on how to create the object:
https://rdrr.io/bioc/SingleCellExperiment/man/SingleCellExperiment.html
https://www.rdocumentation.org/packages/SummarizedExperiment/versions/1.2.3/topics/RangedSummarizedExperiment-class

You can add the count matrix (genes * spots) to the counts slot within assays, and the coordinates can be stored within colData.

Example:

mySCE = SingleCellExperiment(assays=list(counts=myCountsMatrix), colData = cbind(myXcoordinates, myYcoordinates))

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

2 participants