Monocle 2 中 orderCells () 报错问题解决

2022-06-20  本文已影响0人  吹不散的烽烟

1. download monocle from https://www.bioconductor.org/packages/3.15/bioc/src/contrib/Archive/monocle/

2. decompress the package 'monocle_2.24.0.tar.gz', and get a 'monocle' folder.

3. open the folder 'monocle/R', change the code in function 'project2MST()' in the 'order_cell.R' file: change from

if(class(projection) != 'matrix')
projection <- as.matrix(projection)

to

projection <- as.matrix(projection)

4. save the 'order_cell.R' file.

5. windows 安装 7-Zip 软件,先压缩成tar文件,再压缩成gz文件。

6. 安装monocle_2.24.0.tar.gz软件。

7.Done. and managed to run the 'orderCells(cds)'.

上一篇下一篇

猜你喜欢

热点阅读