peterzzq / cellpath Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v3.0
License: GNU General Public License v3.0
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
Thanks for the package ! It seems the dropbox link to access real datasets says the file was deleted https://www.dropbox.com/sh/nix4wnoiwda5id5/AACTxvGTQ82UzwMJs2IWSriKa?dl=0
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.