Skip to content

Error when running xcor function on categorical cell states #7

Description

@ttszen

Hello! Thank you so much for the really interesting tool. I have been able to reconstruct a phylogenetic tree from my scRNA-seq data using copy number alteration information and the tool PICASSO: https://github.com/dpeerlab/picasso

Using the categorical cell state for each cell and the phylogenetic tree, I wanted to perform downstream analysis using PATH. I've ran into an error when trying to run the xcor function. I've got about 89k cells in total and 6 cell states. I was wondering if you encountered this previously?

It'd be great to get your thoughts and happy to discuss further.

# Compute the phylogenetic node distances between cells in order to measure phylogenetic correlations.
Winv <- inv_tree_dist(new_tree, node = TRUE, norm = FALSE)
print('Done computing phylogenetic node distances')

print('Convert to categorical matrix')
x = catMat(clone_meta$final_group_labeled) 

print('Start to compute phylogenetic correlations')
phy_xcor = xcor(x, Winv)
Error in .m2sparse(from, paste0(kind, "s", repr), "U", NULL) :
  attempt to construct sparseMatrix with more than 2^31-1 nonzero entries
Calls: xcor ... <Anonymous> -> asMethod -> .m2sparse.checking -> .m2sparse

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions