Coder Social home page Coder Social logo

Comments (4)

oubounyt avatar oubounyt commented on August 28, 2024

Hey,

Thank you for reaching out, and I appreciate your interest in our package. The issue you're encountering is related to deprecation in numpy version > 1.20.0, where the np.object alias was removed.

please use numpy version <= 1.20.0

from scanet.

davidrm-bio avatar davidrm-bio commented on August 28, 2024

Thank you for your answer, I manage to install it correctly. However, after following the tutorial when running the co-expression analysis there is another problem.
The anndata object looks the same as in the tutorial:

adata_r
AnnData object with n_obs × n_vars = 450 × 29252
    obs: '__SCANclusters__'
    var: 'Genes'
    uns: 'pca', 'neighbors', 'umap'
    obsm: 'X_pca', 'X_umap'
    varm: 'PCs'
    obsp: 'distances', 'connectivities'

This is the error:


R[write to console]: Error in `map()`:
ℹ In index: 6.
ℹ With name: ylab.
Caused by error in `lifecycle::deprecate_soft()`:
! argument "user_env" is missing, with no default
Run `rlang::last_trace()` to see where the error occurred.
Traceback (most recent call last):
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/IPython/core/interactiveshell.py", line 3508, in run_code
    exec(code_obj, self.user_global_ns, self.user_ns)
  File "<ipython-input-11-dc720f102e26>", line 1, in <module>
    SFTpower = sn.co.plot_powers(adata_r, network_type='unsigned', cor_method='pearson')
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/scanet/coexpression.py", line 87, in plot_powers
    optimal_power_ = plot_power_r(final_exp_, path=cls.path_outs,network_type=network_type,
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/rpy2/robjects/functions.py", line 208, in __call__
    return (super(SignatureTranslatedFunction, self)
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/rpy2/robjects/functions.py", line 131, in __call__
    res = super(Function, self).__call__(*new_args, **new_kwargs)
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/rpy2/rinterface_lib/conversion.py", line 45, in _
    cdata = function(*args, **kwargs)
  File "/home/davidr/anaconda3/envs/scanet_env/lib/python3.8/site-packages/rpy2/rinterface.py", line 873, in __call__
    raise embedded.RRuntimeError(_rinterface._geterrmessage())
rpy2.rinterface_lib.embedded.RRuntimeError: Error in map(.l, vctrs_vec_compat) : 
ℹ With name: ylab.
Caused by error in `lifecycle::deprecate_soft()`:
! argument "user_env" is missing, with no default

from scanet.

oubounyt avatar oubounyt commented on August 28, 2024

Hey,

The error message you provided is related to an issue in the R. It seems that the error occurred while using the map() function. This function is often associated with the purrr package in R.

the error message indicates a problem with the lifecycle::deprecate_soft() function, and it mentions an issue related to the "user_env" argument, which is missing and has no default value.

can need to check the version of the purrr package and its dependencies in your R environment?

from scanet.

davidrm-bio avatar davidrm-bio commented on August 28, 2024

Thank you I checked and re-installed all the R libraries required and it worked

from scanet.

Related Issues (8)

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.