Open csbbcompbio opened 6 years ago
Several folks looking for solutions to the problem, myself included see #88 and #153
hi @tkiehl and @csbbcompbio, the error is kind cryptic for me. This may happen when the function tries to assign the row or column names for some dataframe but the things to be assigned has inconsistent length to the dimension of data frame. My guess is that you are only applying plot_genes_in_pseudotime
on a single gene? Can you try to plot multiple genes at once?
Alternatively, if you can share a subset of your data with me to reproduce the error, I can then take a more close look for you soon.
I got the error when I was trying to plot multiple genes. I'm not sure it's feasible for me to share my data at this time.
Hey, @tkiehl @csbbcompbio @Xiaojieqiu, If the parameter "data" in phenoData and featureData were constructed step by step, for example,
variables <- data.frame(Va = c(x, x, x), Vb = c(y, y, y))
rownames(variables) <- colnames(expr_matrix)
pd <- new('AnotateDataFrame', data = variables ) ,
everything would be fine. But if "data" was just a subset or slices of existed data frame or transfered from other data type, like matrix, there would be "Error in attributes(out) <- attributes(col) : 'names' attribute [...] must be the same length as the vector [1]" when runing _plot_genes_inpseudotime.
@MushanLie Nice fix! Worked Thanks
Hi Monocle Developers !!
I am facing this error when using plot_genes_in_pseudotime. Error in attributes(out) <- attributes(col) : 'names' attribute [2404] must be the same length as the vector [1]
Can you please help with this.
Cheers !!
Praneet