Giter Site home page Giter Site logo

Comments (10)

emerygoossens avatar emerygoossens commented on June 24, 2024

I am also having this issue. Any help would be appreciated.

from sclvm.

flophys avatar flophys commented on June 24, 2024

This seems to be an issue with a specific R-python combination which I couldn't reproduce. Try this workaround:

When attaching the package, this line is normally executed: python.load(system.file("pysrc","init_data.py",package="scLVM“))
It seems this doesn’t happen for you which is why it doesn’t find the scLVM function. Execute this manually after loading the package, this normally solves the problem.

from sclvm.

lrodda avatar lrodda commented on June 24, 2024

This work around worked well for the init function, but I got a very similar error when trying to run Ycorr = getCorrectedExpression(sclvm)

Error in python.exec(paste("Ycorr = ", objName, ".getCorrectedExpression(rand_eff_ids)", :
name 'sclvm' is not defined

Is there a similar work around?

from sclvm.

emerygoossens avatar emerygoossens commented on June 24, 2024

I had a similar problem with this. My problem went away when I correctly installed rPython. First, make sure your ~/bash_To do this, download a new rPython package and open your terminal and type these commands

python --version
export RPYTHON_PYTHON_VERSION="whatever python anaconda version such as 2.7.12"
R CMD INSTALL /Users/egoossen/Downloads/rPython_0.0-6.tar.gz

Now go into R and type

library(rPython)
python.exec("import sys; print(sys.version)")

and verify that it is the same. When you load the scLVM package more than once, it doesn't give the same error about differing versions of python between the system and rPython versions.

from sclvm.

BinDuan avatar BinDuan commented on June 24, 2024

I have the same problem. I tried set "export RPYTHON_PYTHON_VERSION=2.7.13", and "R CMD INSTALL rPython_0.0-6.tar.gz", but when I check like this:
library(rPython)
python.exec("import sys;print(sys.version)")

I got something like:
"2.7.12 (default, Nov 19 2016, 06:48:10)
[GCC 5.4.0 20160609]
"
I have several python version, and 2.7.13 is in the anaconda. Obviously, set "export" is invalid. Then, how should I do?

from sclvm.

BinDuan avatar BinDuan commented on June 24, 2024

I'm sure that my rPython was installed correctly now, but there was something wrong with scLVM like below:

library(scLVM)
[1] "It seems python package deprecated is not installed. Try to install it using 'pip install deprecated ' If the package is installed already, make sure rPyhton is using the correct python version. If you have several versions of python installed, have a look at our installation guide on github."

And when I tried to install deprecated like below:
pip install deprecated
Collecting deprecated
Could not find a version that satisfies the requirement deprecated (from versions: )
No matching distribution found for deprecated
I don't know why, and I'll appreciate if someone can give me a hand.

from sclvm.

Shians avatar Shians commented on June 24, 2024

Also having this problem with "deprecated". This is caused by the attempt to import limix.deprecated. From what I gather at some point they deprecated a whole version of LIMIX, they then deprecated that whole LIMIX package and made a new one with the same name. Now the new one does not have the deprecated version included and I assume this is the version installed by pip, so scLVM will not find limix.deprecated.

If the new version is backwards compatible then it may be possible to simply import limix rather than limix.deprecated, otherwise one would need to install the deprecated version of limix to get this software to work.

from sclvm.

flophys avatar flophys commented on June 24, 2024

@BinDuan unfortunately rPython does not work with Anaconda python (also check out the rPython docs), maybe try to use the one that came with your OS? I have fixed the "deprecated" problem though which occurred due to some changes in the latest release of limix.

from sclvm.

BinDuan avatar BinDuan commented on June 24, 2024

from sclvm.

BinDuan avatar BinDuan commented on June 24, 2024

from sclvm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.