Firstly thanks for adding the transient option!
However, when response_type="transient" i.e. no genes are designated switching svd throws an error:
library(ouija)
data(example_gex)
oui <- ouija(example_gex, response_type="transient")
Error in svd(x, nu = 0, nv = k) : a dimension is zero
Presumably this is due to attempting prcomp on no genes
|
pc1 <- prcomp(Y_switch)$x[,1] |
Perhaps just do a pca of the full Y?
Also in the readme the data is called synth_gex rather than example_gex.
Firstly thanks for adding the transient option!
However, when response_type="transient" i.e. no genes are designated switching svd throws an error:
Presumably this is due to attempting prcomp on no genes
ouija/R/ouija.R
Line 170 in 1ebc4ea
Perhaps just do a pca of the full Y?
Also in the readme the data is called synth_gex rather than example_gex.