Giter Site home page Giter Site logo

cahanlab / pysinglecellnet Goto Github PK

View Code? Open in Web Editor NEW
13.0 3.0 9.0 7.29 MB

singleCellNet in Python

Home Page: https://pysinglecellnet.readthedocs.io/en/latest/

License: MIT License

Python 100.00%
cell-annotation cell-type-classification single-cell cell-typing

pysinglecellnet's Introduction

Documentation Status

PySingleCellNet: a computational toolkit for the single cell analysis and comparison of embryos and embryo models

PySingleCellNet (PySCN) predicts the 'cell type' of query scRNA-seq data by Random forest multi-class classification. See Tan & Cahan 2019 for more details. PySCN includes functionality to aid in the analysis of engineered cell populations (i.e. cells derived via directed differentiation of pluripotent stem cells or via direct conversion).

pysinglecellnet's People

Contributors

dpeng28 avatar ekernf01 avatar michaelfarid avatar pcahan1 avatar rainhan2001 avatar srcrowl avatar yuqiyuqitan avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

pysinglecellnet's Issues

any functions for viewing gene pairs

Hi! Are there any functions to visualize the top gene pairs? Or even in the variable xpairs, is it possible to identify which are the top genes associated with each of the dLevel's?

thanks!

Error with pySCN.scn_classify: "Data matrix has wrong shape(), need to be (x,y)."

I've been using the same code that worked for me previously, but just started getting an error at the pySCN.scn_classify step and was wondering what I might be doing wrong or if there is an incompatibility with one of the package versions I am using. It throws an error when ad._core.views.ArrayView is called.

My code is below, as well as a screenshot of my error report and session info. Files are too large to be uploaded here but are in my Dropbox under Cahan lab: Kathleen.Noller/forgithub/ (https://www.dropbox.com/s/k5hrbbflh32w56x/forgithub.zip?dl=0)

adRaw = sc.read_loom("../data/LLi-21-FT/velocyto/LLi-21-FT.loom")
adRaw.obs_names_make_unique()
adRaw.var_names_make_unique()

from joblib import dump, load

tspRF = load("../101520/tspRF_FallopianTube_Ahmed_101520.joblib")
cgenesA = load("../101520/cgenesA_FallopianTube_Ahmed_101520.joblib")
xpairs = load("../101520/xpairs_FallopianTube_Ahmed_101520.joblib")

adClassRes = pySCN.scn_classify(adRaw, cgenesA, xpairs, tspRF, nrand = 0)

Screen Shot 2021-04-22 at 8 38 35 PM

Screen Shot 2021-04-22 at 8 38 43 PM

Thank you for your help!

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.