Git Product home page Git Product logo

cellpath's People

Contributors

peterzzq avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

cellpath's Issues

TypeError: __init__() takes from 1 to 2 positional arguments but 4 were given

Hello,

When running this code:

num_trajs = 4
flavor = "k-means"
num_metacells = 300

adata = anndata.read_h5ad("/media/ernohanninen/TOSHIBA/cycletree.h5ad")

cellpath_obj = cp.CellPath(adata = adata, preprocess = True)
cellpath_obj.all_in_one(flavor = flavor, num_metacells = num_metacells, n_neighs = 13, num_trajs = num_trajs, prop_insert = 0.0, seed = 0, mode = "exact")

I get the following error:

Traceback (most recent call last):
File "run_CellPath.py", line 19, in
cellpath_obj.all_in_one(flavor = flavor, num_metacells = num_metacells, n_neighs = 13, num_trajs = num_trajs, prop_insert = 0.0, seed = 0, mode = "exact")
File "/home/ernohanninen/miniconda3/envs/TRAenv/lib/python3.8/site-packages/cellpath/cellpath.py", line 349, in all_in_one
self.meta_cell_construction(flavor = flavor, n_clusters = num_metacells, resolution = resolution, **kwargs)
File "/home/ernohanninen/miniconda3/envs/TRAenv/lib/python3.8/site-packages/cellpath/cellpath.py", line 121, in meta_cell_construction
self.X_clust, self.velo_clust = clust.meta_cells(self.adata, kernel = _kwargs["kernel"],
File "/home/ernohanninen/miniconda3/envs/TRAenv/lib/python3.8/site-packages/cellpath/clustering.py", line 136, in meta_cells
k = KernelRidge(alpha, kernel, gamma)
TypeError: init() takes from 1 to 2 positional arguments but 4 were given

tweaks to README.md

The dependencies listed include "sklearn >= 0.22.1" so I included sklearn in an attempted "conda create" to set up a virtual environment. There's no "sklearn" conda package, but there is "scikit-learn" ... which seems to work with the later "pip install" step.

Also, after cloning the repo, I needed to "cd CellPaths/" before running the "pip install ." command.

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.