Skip to content
New issue

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

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

Already on GitHub? # to your account

about the tools #3

Open
Bao110110 opened this issue Feb 27, 2024 · 1 comment
Open

about the tools #3

Bao110110 opened this issue Feb 27, 2024 · 1 comment

Comments

@Bao110110
Copy link

excuse me, when first using this tools , i get a question:

cc_res = consensus_cluster(your_data, n_reps=50, k_max=20, p_sample=0.8, p_feature=0.8)

here, what type is the "your_data"? could it be a Seurat object ?
when i try it with a seurat object, i face an error:

> cc_res = consensus_cluster(agecell, n_reps=50, k_max=20, p_sample=0.8, p_feature=0.8)
Calculating consensus clustering
Error in as.vector(data) : 
  no method for coercing this S4 class to a vector

hoping a help ,thank you

@AndiMunteanu
Copy link
Contributor

Hello and sorry for reaching out this late!

We have updated the package's website. Here you have an example that shows you how to use the Seurat's object to get the right input for the consensus_clustering function. your_data should be a samples x features normalized data matrix.

Hopefully that answers the question.

Andi

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

No branches or pull requests

2 participants