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

Monocle2 orderCells error: the condition has length > 1 #9

Closed
gebdu opened this issue Apr 27, 2023 · 1 comment
Closed

Monocle2 orderCells error: the condition has length > 1 #9

gebdu opened this issue Apr 27, 2023 · 1 comment

Comments

@gebdu
Copy link

gebdu commented Apr 27, 2023

library(monocle)

combined
An object of class Seurat
23572 features across 13696 samples within 1 assay
Active assay: RNA (23572 features, 1257 variable features)
3 dimensional reductions calculated: pca, tsne, umap

cds <- as.CellDataSet(combined)
cds <- estimateSizeFactors(cds)
cds <- estimateDispersions(cds)
cds <- monocle::setOrderingFilter(cds, mc@assays$RNA@var.features)
cds <- monocle::reduceDimension(cds, method = 'DDRTree')
cds <- monocle::orderCells(cds)

Error in if (class(projection) != "matrix") projection <- as.matrix(projection) :
the condition has length > 1

Any suggest what this error says and how to solve this?

sessionInfo()
R version 4.2.2 (2022-10-31)
monocle_2.26.0 DDRTree_0.1.5 scater_1.26.1

@gebdu
Copy link
Author

gebdu commented Apr 27, 2023

Solution discussed here:
cole-trapnell-lab/monocle-release#434

updated version monocle_2.28.0 solved this problem.

@gebdu gebdu closed this as completed Apr 27, 2023
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

1 participant