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

oocRPCA: using example, "unknown error" generated #4

Open
pbraun2 opened this issue Aug 9, 2022 · 0 comments
Open

oocRPCA: using example, "unknown error" generated #4

pbraun2 opened this issue Aug 9, 2022 · 0 comments

Comments

@pbraun2
Copy link

pbraun2 commented Aug 9, 2022

Hello,

I have a large snRNA-seq dataset and am very interested in using your package. When I try to run the example code associated with the oocPCA_CSV function in the R documentation, however, I get the following issue (generated with reprex). I would appreciate any help on this issue.

Thanks!
Tricia

k_ <- 10;
m = 30;
n = 40;
B <- matrix(rexp(mk_), m)
C <- matrix(rexp(k_n), k_)
D <- B %
%C;
dim(D)
#> [1] 30 40
fn = "test_csv.csv"
write.table(D,file=fn,sep=',',col.names=FALSE, row.names=FALSE)
library(oocRPCA);
fastDecomp <- oocPCA_CSV(fn, k=k_, mem=n
8100, diffsnorm=TRUE)
#> Warning in system(pcacall): 'CreateProcess' failed to run 'C:
#> \Users\braun\AppData\Local\R\WIN-LI1\4.2\oocRPCA\build\FASTPC1.LIN -k 10 -csvI
#> test_csv.csv -binaryOutput oocRPCA.binmatrix -mem 32000 -l 12 -its 2'
#> Error in oocPCA_CSV(fn, k = k_, mem = n * 8 * 100, diffsnorm = TRUE): An unkonwn error has occurred during call: C:/Users/braun/AppData/Local/R/win-library/4.2/oocRPCA/build/fastpca.linux -k 10 -csvI test_csv.csv -binaryOutput oocRPCA.binmatrix -mem 32000 -l 12 -its 2
norm( D - fastDecomp$U %
% fastDecomp$S %% t(fastDecomp$V))
#> Error in norm(D - fastDecomp$U %
% fastDecomp$S %*% t(fastDecomp$V)): object 'fastDecomp' not found
unlink(fn)
Created on 2022-08-09 by the reprex package (v2.0.1)

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