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

a question about cell grouping file when running spring browser version #27

Open
liuweihanty opened this issue Jul 15, 2021 · 2 comments

Comments

@liuweihanty
Copy link

Hope your week is going well and thanks for your work on the spring force directed graph online viewer! I have a question regarding the input file "cell groupings". Based on the instruction:
Screenshot 2021-07-15 at 16 52 38
I constructed my cell grouping csv files as:
Screenshot 2021-07-15 at 16 53 02

My goal is to visualize the cell identity clusters on the spring plot. So  the first column as the cell identity label followed by cell barcode in the second column. But apparently this is not correct because it returns the error message:
Error: Cell grouping "HSC" has a different number of entries (1) than the number of cells (6613) in the expression matrix. I have no luck in googling...
would you mind clarifying what exactly should the format be? Thank you very much for your time!

@bug1303
Copy link

bug1303 commented Sep 13, 2021

I'm not a developer, just a user that ran into the same issue...

It actually expects the csv to look like:

celltype, HSC, B, B, B, Neutrophil, Neutrophil, ...

and you could possibly have another line like
cluster, 0, 1, 1, 1, 2, 2,

or whatever else you might distinguish your cells by

This is what I did to select some columns from a Seurat object's metadata:

write( paste(c("Sample", as.character(seur.obj$orig.ident)), collapse=","),
       file="groupings.csv")

write( paste(c("SeuratClusters", seur.obj$seurat_clusters), collapse=","),
       file="groupings.csv", 
       append=T)

write( paste(c("CellType", seur.obj$SingleR), collapse=","),
       file="groupings.csv", 
       append=T)

@loversaber
Copy link

Really difficult to understand the structure of cell grouping file, does anyone have an idea how to set up it correctly and display cells in different conditions in the plot? Much appreciated!

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

3 participants