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

error message when load limix in R #5

Closed
xiangzhou opened this issue Dec 13, 2015 · 2 comments
Closed

error message when load limix in R #5

xiangzhou opened this issue Dec 13, 2015 · 2 comments

Comments

@xiangzhou
Copy link

I was trying to use scLVM but I got an error message. I was following the instruction at https://github.com/PMBio/scLVM/blob/master/R/tutorials/scLVMr_demo_nospikeins.Rmd. Below is what I did and the error message I got:

  1. I installed LIMIX by downloading the limix-master from github. I used the setup.py to install it: python setup.py install --user
  2. I installed scLVM R package, by downloading the file from (https://github.com/PMBio/scLVM/tree/master/R). I installed it in the terminal: R CMD INSTALL scLVM_0.99.2.tar.gz -l ../R/x86_64-pc-linux-gnu-library/2.10/
  3. I then opened R, and was able to load scLVM by library(scLVM). However, I was not able to run configLimix(limix_path). I found two possible limix_path:
    ./src/interfaces/python or ./build/temp.linux-x86_64-2.7/src/interfaces/python, but both of these paths gave me the same error message:

configLimix(limix_path)
File "", line 3
except Exception as e:_r_error = e.str()
^
IndentationError: expected an indented block
Warning message:
In file(con, "r") :
file("") only supports open = "w+" and open = "w+b": using the former

Please let me know how I would be able to use scLVM. Thanks.

@skiaphrene
Copy link

Hi xiandzhou,

I found that this issue was due to a file path problem in the configLimix() function. I worked around by using this configLimix2() function instead of configLimix():

configLimix2 <- function (limix_path) {
  python.assign("limix_path", limix_path)
  python.exec("sys.path.append(limix_path)")
  python.load(system.file("pysrc", "init_data.py", package = "scLVM"))
  # in the original configLimix it says "py" instead of "pysrc"
}

Hope this helps,

-- Alex

@flophys
Copy link
Member

flophys commented Apr 15, 2016

fixed, thanks Alex!

@flophys flophys closed this as completed Sep 6, 2016
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

3 participants