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

ComBat_seq cannot be found #5

Closed
Zepeng-Mu opened this issue Apr 29, 2020 · 11 comments
Closed

ComBat_seq cannot be found #5

Zepeng-Mu opened this issue Apr 29, 2020 · 11 comments

Comments

@Zepeng-Mu
Copy link

Hi, I installed the package from GitHub repo sva-devel. I can see the document page of ComBat_seq but when I try to run the function, I got "could not find function "ComBat_seq".

@mestato
Copy link

mestato commented May 12, 2020

Did you load the library? After installing the devel version, make sure you load/attach it:

library("sva")

@Zepeng-Mu
Copy link
Author

I think I actually did. I could use the old version of ComBat for instance. Now I just clone the GitHub repo and use source to load ComBat_seq and it works.

@madhulika-EBI
Copy link

Hi, I am also not able to find ComBat_seq upon package installation. can you please make it available through Bioconductor SVA version also. Thanks

@PrincescaDorsaint
Copy link

Hi, I also cannot find the ComBat_seq function via "sva" package. Is this function no longer available?

@zhangyuqing
Copy link
Owner

@Zepeng-Mu @madhulika-EBI @PrincescaDorsaint ComBat-Seq is already available in the development version of Bioconductor, which I believe requires R > 4.0. https://www.bioconductor.org/packages/devel/bioc/html/sva.html

If you do not want to update your R version to use devel Bioconductor, you can 1) wait until the next Bioconductor release, 2) clone the GitHub repo and use source to load ComBat_seq, as @Zepeng-Mu suggests, or 3) use the sva package on my github devtools::install_github("zhangyuqing/sva-devel").

With 3), make sure to remove the previous sva installed on your laptop: remove.packages("sva") before installing. After installation, check packageVersion("sva") to make sure it is version 3.35.2. This works on my laptop, and I'm able to find ComBat_seq function. If you still can't find it, there are suggested steps you can try to fix the issue: https://stackoverflow.com/questions/7027288/error-could-not-find-function-in-r

@Bithorax
Copy link

Bithorax commented Feb 2, 2021

None of the options suggested works for me. Am I the only one having this issue?

@Zepeng-Mu
Copy link
Author

I installed sva 3.38.0 from bioconductor and it has the ComBat_seq function, but you need R 4.0.0 to successfully install the package.

@Bithorax
Copy link

Bithorax commented Feb 3, 2021

Apparently, I had an issue with the installation. Now working! Thanks!

@daixiaozhuan
Copy link

I think I actually did. I could use the old version of ComBat for instance. Now I just clone the GitHub repo and use source to load ComBat_seq and it works.

How to use source to load it

@ShwetaCh
Copy link

ShwetaCh commented Feb 28, 2022

@zhangyuqing
Apologies to bother you on this, but I tried option3 to sva-devel since I didn't want to upgrade my R completely, it does not work for me. Is it broken at the source by any chance or do I need to do anything more at my end?

> devtools::install_github("zhangyuqing/sva-devel")
Downloading GitHub repo zhangyuqing/sva-devel@HEAD
sh: 1: /bin/gtar: not found
sh: 1: /bin/gtar: not found
Error: Failed to install 'sva' from GitHub:
  error in running command
In addition: Warning messages:
1: In system(cmd) : error in running command
2: In utils::untar(tarfile, ...) :
  ‘/bin/gtar -xf '/tmp/Rtmp7pld2E/file4a0e386a4721.tar.gz' -C '/tmp/Rtmp7pld2E/remotes4a0e2f329d74'’ returned error code 127

Update: I did it the source way

@ShwetaCh
Copy link

ShwetaCh commented Feb 28, 2022

How to use source to load it

@daixiaozhuan You can do it as below:
git clone https://github.com/zhangyuqing/ComBat-seq.git <-- on command prompt
source("/home/user/testing/ComBat-seq/ComBat_seq.R") <-- inside your R script

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

8 participants