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

Difficulty installing #38

Open
KasperSkytte opened this issue Oct 23, 2017 · 6 comments
Open

Difficulty installing #38

KasperSkytte opened this issue Oct 23, 2017 · 6 comments

Comments

@KasperSkytte
Copy link

When installing mmgenome from scratch with:
source("https://bioconductor.org/biocLite.R")
biocLite("Biostrings")
devtools::install_github("madsalbertsen/mmgenome/mmgenome")
it stops when installing a required package Rtsne.multicore with the error:

"Error in FUN(X[[i]], ...) :
Invalid comparison operator in dependency: >= "

Simply using biocLite("madsalbertsen/mmgenome/mmgenome") instead causes no trouble!

@anaya1
Copy link

anaya1 commented Feb 28, 2018

Hi Kasper,
I am really struggling installing mmgenome on my Mac OS X El Capitan system.
I have a following message:

biocLite("madsalbertsen/mmgenome/mmgenome")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.6 (BiocInstaller 1.28.0), R 3.4.3 (2017-11-30).
Installing github package(s) ‘madsalbertsen/mmgenome/mmgenome’
Downloading GitHub repo madsalbertsen/mmgenome@master
from URL https://api.github.com/repos/madsalbertsen/mmgenome/zipball/master
Installing mmgenome
Downloading GitHub repo RGLab/Rtsne.multicore@master
from URL https://api.github.com/repos/RGLab/Rtsne.multicore/zipball/master
Installing Rtsne.multicore
'/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore
--quiet CMD INSTALL
'/private/var/folders/9c/62h8z0yj7nv50l9zkmrw6_z80000gn/T/RtmpMpIoyA/devtools2ae1fe15aec/RGLab-Rtsne.multicore-7b4f8c6'
--library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library' --install-tests

  • installing source package ‘Rtsne.multicore’ ...
    ** libs
    clang++ -std=gnu++11 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -DROUT -fopenmp -I"/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rcpp/include" -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
    clang: error: unsupported option '-fopenmp'
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package ‘Rtsne.multicore’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/Rtsne.multicore’
    Installation failed: Command failed (1)
    '/Library/Frameworks/R.framework/Resources/bin/R' --no-site-file --no-environ --no-save --no-restore
    --quiet CMD INSTALL
    '/private/var/folders/9c/62h8z0yj7nv50l9zkmrw6_z80000gn/T/RtmpMpIoyA/devtools2ae4c71d75c/MadsAlbertsen-mmgenome-287aedd/mmgenome'
    --library='/Library/Frameworks/R.framework/Versions/3.4/Resources/library' --install-tests

ERROR: dependency ‘Rtsne.multicore’ is not available for package ‘mmgenome’

  • removing ‘/Library/Frameworks/R.framework/Versions/3.4/Resources/library/mmgenome’
    Installation failed: Command failed (1)
    Do you have any suggestion how to install mmgenome or how to compile Rtsne.multicore package on Mac system.
    Thanks,
    Anna

@KasperSkytte
Copy link
Author

Hi Anna!

Try with devtools::install_github("RGLab/Rtsne.multicore") first and then reinstall mmgenome.

I am currently working on mmgenome2 and it is almost done. Just need a get started guide and more information on the webpage, then it will be moved to Mads' github page and people should start using that instead. So hopefully this will be fixed in mmgenome2. Things have changed compared to mmgenome1, but hopefully for the better :)

@anaya1
Copy link

anaya1 commented Feb 28, 2018

Thanks Kasper,
I truly believe that the mmgenome package is OK but there is sth wrong with Rtsne.multicore package compilation on Mac system. See this post, RGLab/Rtsne.multicore#5. Unfortunately I don't know how to compile this package so will ask someone to help me. I will let you know once the problem is fixed. And looking forward to mmgenome2 !!
Cheers,
Anna

@KasperSkytte
Copy link
Author

The package is only used in mmload to calculate t-SNE of tetramers. So if you dont use it anyways, it would probably be easier to make your own mmgenome package on GitHub. Just fork mmgenome, and remove line 26 and 27 (and the comma at line 25 ofc) from the DESCRIPTION file in the mmgenome folder. Then you would be able to install mmgenome without Rtsne.multicore with biocLite("anaya1/mmgenome/mmgenome") and hopefully it will work fine. Remember to set BH_SNE = FALSE in mmload then.

Alternatively install a specific commit before tSNE was added to mmgenome, so fx 6a673e2, with fx biocLite("madsalbertsen/mmgenome/mmgenome", ref = "6a673e2")

@anaya1
Copy link

anaya1 commented Feb 28, 2018

Hi Kasper,
You are genius, it looks like mmgenome is installed an alternative option using fx 6a673e2. I will test it and let you know how it goes. Thanks.

@KasperSkytte
Copy link
Author

Thanks. You're welcome :)

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