You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for developing RcppML and for providing such clear posts about NMF. I would like to run Linked NMF in my cohort data to obtain shared factors. Before that, I was going through the example at the end of your post of Linked NMF (https://www.zachdebruine.com/post/linked-nmf-for-signal-source-separation/) and realized you updated the aml dataset. I tried the following to get a quick idea of how it works. I obtained the following error:
library(RcppML)
library(singlet)
data(aml)
# make sample names unique
aml$metadata_h$new_names <- paste(aml$metadata_h$samples, aml$metadata_h$category, sep="-")
colnames(aml$data) <- aml$metadata_h$new_names
# make list of datasets
data_examp <- list(
aml$data[, which(grepl( "AML" , colnames(aml$data)))],
aml$data[, which(grepl( "Control" , colnames(aml$data)))]
)
# run linked nmf
lnmf_model <- lnmf(data_examp, k_wh = 3, k_uv = c(2, 2))
Error in getClass(Class, where = topenv(parent.frame())): “lnmf” is not a defined class
Traceback:
1. lnmf(data_examp, k_wh = 3, k_uv = c(2, 2))
2. new("lnmf", w = w, u = u, v = v, h = h, d_wh = d_wh, d_uv = d_uv,
. misc = model@misc)
3. getClass(Class, where = topenv(parent.frame()))
4. stop(gettextf("%s is not a defined class", dQuote(Class)), domain = NA)
Got it, I'll try to address this issue early next week. You will see a significant change to the way we do LNMF however, as we have developed much better theoretical methods that complement the method for integration.
Hey Zack,
Thanks also from my side for the great pacakge and the clear posts. I am receiving the exact same error here with my own data ("lnmf" is not a defined class) version 0.5.6. Any idea as to when you'll find time to address the issue?
Hi Zack!
Thanks for developing RcppML and for providing such clear posts about NMF. I would like to run Linked NMF in my cohort data to obtain shared factors. Before that, I was going through the example at the end of your post of Linked NMF (https://www.zachdebruine.com/post/linked-nmf-for-signal-source-separation/) and realized you updated the
aml
dataset. I tried the following to get a quick idea of how it works. I obtained the following error:These are the package versions
Thank you!
The text was updated successfully, but these errors were encountered: