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

Erro in peer.residual() #2

Open
Galaxy-228 opened this issue Sep 9, 2024 · 5 comments
Open

Erro in peer.residual() #2

Galaxy-228 opened this issue Sep 9, 2024 · 5 comments

Comments

@Galaxy-228
Copy link

Hi,
I am testing based on the official documentation's test code, When running to this step: peer.exp <- peer.residual(mat, mat.aligner, covs, n.iteration=1000), the following error appeared:
Error in PEER_setCovariates(model, as.matrix(covs)) : SWIG:UnknownError

Do you know what caused the error?

Thanks so much

@lihaone
Copy link
Owner

lihaone commented Sep 9, 2024

It seems like an error from SWIG. Did you manage to install PEER and its dependencies properly?
Hao

@Galaxy-228
Copy link
Author

Hi,
All the required R packages have been installed, Except for the version of the limma package.
When i type :

BiocManager::install('limma', version='3.8')
Error: Bioconductor version '3.8' requires R version '3.5'; use version = '3.16' with R version 4.2;

The current version of the limma package is 3.54.2.

packageDescription("limma")$Version
[1] "3.54.2"

In addition, may I ask if I can add you on WeChat for communication?

Best,
Jie

@lihaone
Copy link
Owner

lihaone commented Sep 10, 2024

I actually never saw this error before, but I think limma should not be the problem here.
I would suggest that you test the example code in the PEER tutorial (https://github.com/PMBio/peer/wiki/Tutorial), to see If the error remains.

@Galaxy-228
Copy link
Author

Thanks so much for your reply,
I tested the test code according to your suggestions, and everything is running normally, and the peer version is 1.0.

f50efa26a79d27892c64825dcef945a af032fd1bbd8f132d66f0d37eab3b30

Best,
Jie

@lihaone
Copy link
Owner

lihaone commented Sep 13, 2024

Can you try the PEER_setCovariates example code from the tutorial since it's the one that gave errors?

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

2 participants