Open legeinei123 opened 3 years ago
I'll also note that the function partitionCells()
can't be found even though monocle 3 is installed and loaded into the library.
emmmm i had the same error as yours.
Error in contrasts<-
(*tmp*
, value = contr.funs[1 + isOF[nn]]) :
contrasts can be applied only to factors with 2 or more levels
Then I tryed use more genes in the cds , everything worked well.
First time I use 200 genes and 20000 cells ,it got wrong.
Hi,
I'm trying to run the find_gene_modules() function following the tutorial https://cole-trapnell-lab.github.io/monocle3/docs/differential/#branches from "Finding genes that change as a function of pseudotime". I didn't do the previous steps of the tutorial, as a had previously already created my cds class.
This is the line that produces the error
gene_module_df <- find_gene_modules(cds_subset[pr_deg_ids,], resolution=0.001)
The error I am getting is as follows:
The subset of cells I chose is a branch point with the initial cluster and the two subsequent clusters as in the tutorial. The subset cds looks like this:
The two previous lines of code run fine as well.
If I run the function with verbose = T i.e.
find_gene_modules(cds_subset[pr_deg_ids,], resolution=0.001, verbose = T)
I get this output prior to the error:
Does this mean that there is nothing significant to report/no separate clusters to compare? The branching on my plot seems robust, I'm not sure why it would not give an output.
Thanks!