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

error for calculate cluster expression #7

Open
mcornwell1957 opened this issue May 11, 2021 · 2 comments
Open

error for calculate cluster expression #7

mcornwell1957 opened this issue May 11, 2021 · 2 comments

Comments

@mcornwell1957
Copy link

Hi Igor,
small thing - in the calculate_cluster_expression function it throws this error:

Error in rownames_to_column(., "gene") : is.data.frame(df) is not TRUE
Calls: calculate_cluster_expression -> %>% -> arrange -> rownames_to_column -> stopifnot
Execution halted

and its because the cluster_avg_exp (or sample_avg_exp) isnt a dataframe (its a matrix)

easily fixed by wrapping it in a data.frame - but it bugs and stops if you dont do this for me.

cluster_avg_exp = data.frame(cluster_avg_exp %>% round(3)) %>% rownames_to_column("gene") %>% arrange(gene)

Thank you for creating this incredibly useful and functional tool!!

Tosh

@igordot
Copy link
Owner

igordot commented May 11, 2021

Thanks for reporting!

Are you using Seurat 4? This may have been one of the changes.

@mcornwell1957
Copy link
Author

Ah. yes, from SessionInfo():

SeuratObject_4.0.0 Seurat_4.0.1

So thats probably it, feel free to disregard if not applicable yet.
Thanks again for making the tool though - seriously, its awesome and does a LOT of heavy lifting

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