Skip to content

error for calculate cluster expression #7

@mcornwell1957

Description

@mcornwell1957

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions