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
what is the "condition" in orderCells() function #434
Comments
I have the same problem, did you solve it? Error in if (class(projection) != "matrix") projection <- as.matrix(projection) : |
I have the same problem, too. Anyone could help? Many thanks. Bests. |
@wangshisheng @ctrapnell @lizhaozhi Best |
Had any advice for this issue ? @wangshisheng @ctrapnell @lizhaozhi |
The same issue here. @ctrapnell |
您好!已经收到邮件,祝好! 洪汉辉
|
I have the same problem, this is my solution. from
to
then install the package using hope this help |
Dear 44REAM, |
I have the same problem, too. Anyone could help? Thanks very much. Bests. |
您好,您的问题解决了吗,谢谢! |
Dear Hanhui, Yes, the problem was perfectly solved by following 44REAM's solution, however, with a bit of modification when performing the last step of installation. I quote the following solution again as a big thanks for 44REAM as well:
if(class(projection) != 'matrix') to projection <- as.matrix(projection)
devtools::load_all("path to the location/monocle") 7.Done. and managed to run the 'orderCells(cds)'. Thank you and best, Guoliang |
Thanks very much! |
Thank you @MwGuo11 & @44REAM for providing the edit to update the package. I noticed that I could not rerun my monocle2 pipeline on the same data that I produced results from previously. It may be from updating my R to the latest version. Now that I've utilized your update I can get past orderCells(). However, I cannot get retrieve BEAM() results. `BEAM_res <- BEAM(monocle_cds, branch_point = 1, cores = 8) Error in if (progenitor_method == "duplicate") { : I never returned this error before for BEAM(). Does anyone have any experience or input on this error? |
I also have the same problem, I modified the code of / monocle/R /BEAM.R on the basis of 44REAM's solution. from:
to:
|
Thank you for your advice on these edits. |
@weu74lin great idea! |
Hi, I cannot get retrieve plot_genes_branched_heatmap() results. plot_genes_branched_heatmap(mycds_sub_beam, Error in if (isSparseMatrix(exprs(X))) { : the condition has length > 1 Does anyone have any experience or input on this error? |
@orange511 |
I met the same problem. I modified the code of / monocle/R /utils.R |
@zy-fang
Did these warning happen to you and should i ignore it? thank you very much! |
I think these warnings can be ignored. In class(cellData) != "matrix" && isSparseMatrix(cellData) == FALSE : This is because when cellData is a matrix, class(cellData) is going to be c("matrix", "array"). So the class(cellData) != "matrix" will be c(FALSE,TRUE). When do the “&&”at the end, only the first one (FALSE) is taken into account. 4: In for (i in seq_len(differences)) r <- r[i1] - r[-length(r):-(length(r) - : This warning is about multiple core parallelism. |
@zy-fang |
|
4 similar comments
|
|
|
|
|
5 similar comments
|
|
|
|
|
I attach a modified version of Monocle (2.26.0) according to the discussion. One can install it locally. I hope this one helps somebody. |
You have my eternal gratitude, this was the most perfectly helpful thing it solved my issue with EstimateSizeFactors immediately. |
Thank you all the guys! I have also updated the latest modifications which have changed the Beam.R code, which will help the monocle2 work well. |
Hi, have you accept this error in ordercell?:error in graph.adjacency.dense(adjmatrix, mode = mode, weighted = weighted, : long vectors not supported yet: ../../src/include/rinlinedfuns.h:537 |
Hi
The error has not been solved. Monocle3 is alright.
I am trying to debug,......if successed, I will contact with you!
best wishes
|
NameTAN Qiang
***@***.***
Organization:
Address:Zhejiang university,Hangzhou,China
Telephone:
手机:18883394145
|
扫描该二维码,可以将电子名片迅速保存到手机 使用帮助
|
At 2023-03-14 18:58:43, "fpengstudy" ***@***.***> wrote:
@ZivTQ
Hi, I met the same error, and I saw this problem in other issues in #138 .
I am trying to use monocle3 for my 50k cells. Have you fixed this problem yet?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Thanks you so much! |
|
I also meet this error, I don't
|
How to modify the function projection2MST()? I can't find the codes of projection2MST function. I have download the monocle and found the orderCells and projection2MST(), but i can't find the raw codes of projection2MST. |
You might want to unzip monocle_2.26.0.tar.gz, then look for orderCell.R in the monocle/R file and open modify projection2MST(), then re-zip the installation |
thank you so much for answering my questions
…________________________________
From: weu74lin ***@***.***>
Sent: Wednesday, May 17, 2023 14:52
To: cole-trapnell-lab/monocle-release ***@***.***>
Cc: Xiong, Xingliang ***@***.***>; Comment ***@***.***>
Subject: [EXTERNAL] Re: [cole-trapnell-lab/monocle-release] what is the "condition" in orderCells() function (#434)
You don't often get email from ***@***.*** Learn why this is important<https://aka.ms/LearnAboutSenderIdentification>
How to modify the function projection2MST()? I can't find the codes of projection2MST function. I have download the monocle and found the orderCells and projection2MST(), but i can't find the raw codes of projection2MST.
You might want to unzip monocle_2.26.0.tar.gz, then look for orderCell.R in the monocle/R file and open modify projection2MST(), then re-zip the installation
—
Reply to this email directly, view it on GitHub<#434 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A2YARCCYTNWVW4C3JF2TVWTXGRYUDANCNFSM4SH56MGQ>.
You are receiving this because you commented.Message ID: ***@***.***>
|
thanks the @Georgeguoql, and in this step, i also modified the BEAM error |
But I still meet the error when I run
|
Thank you so much!! It help to the error which bothers me for such a long time !!! |
trace('project2MST', edit = T, where = asNamespace("monocle")) 运行此句代码 |
|
Hi,
I am trying to construct single-cell trajectories using monocle, but I got an error message when I use the orderCells() function.
the condition has length > 1 and only the first element will be used
any ideas what's going on? Appreciate your ideas.
Maybe it is caused by one if() statement in project2MST() function.
The class of this projection matrix in this project2MST() function is c("matrix", "array").
possible solution:
projection <- as.matrix(rbind(projection, tmp))
version:
R Biobase eSet ExpressionSet CellDataSet
"4.0.0" "2.48.0" "1.3.0" "1.0.0" "1.2.0"
The text was updated successfully, but these errors were encountered: