Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running llsImpute never ends - but it does end my memory #18

Open
iquasere opened this issue Oct 12, 2022 · 1 comment
Open

Running llsImpute never ends - but it does end my memory #18

iquasere opened this issue Oct 12, 2022 · 1 comment

Comments

@iquasere
Copy link

iquasere commented Oct 12, 2022

Hey there!

I am trying to run llsImpute on my spectracounts, with the following commands:

library("vsn")
library("pcaMethods")
pdata = as.matrix(read.table('spectracounts.tsv.txt', sep='\t', h=T, row.names=1))
pdata[pdata==0] = NA
norm = justvsn(ExpressionSet(pdata))
imputed = llsImpute(t(exprs(norm)), allVariables = TRUE)

However, the last command never ends (been running for four hours at this point), and drains around 50 Gb of memory for dealing with a matrix of a few Kb. What is happening here?

At first I tried running that command as imputed = llsImpute(t(exprs(norm))), but it always failed with

Error in svd(X) : infinite or missing values in 'x'
In addition: Warning message:
In llsImpute(t(exprs(norm))) :
  Less than 50% of the genes are complete, consider using allVariables = TRUE
@iquasere
Copy link
Author

Limiting the matrix I seem to have stumbled upon the reason, which I found I had already reported one year ago (although I didn't follow on the issue, my bad). Running

pdata = pdata[1:1000,]
norm = justvsn(ExpressionSet(pdata))
imputed = llsImpute(t(exprs(norm)), allVariables = TRUE)

Finishes successfully, but calling imputed to see the results gives me

> imputed
        Variables
        Samples
Error in (function (classes, fdef, mtable)  :
  unable to find an inherited method for function ‘nObs’ for signature ‘"nniRes"’

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant