Skip to content

Error in svd when response_type="transient" #4

@daniel-wells

Description

@daniel-wells

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

ouija/R/ouija.R

Line 170 in 1ebc4ea

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions