GithubHelp home page GithubHelp logo

aristoteleo / scribe-python-notebooks Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 2.0 1.31 MB

Tutorials of Scribe Python package usage cases

Jupyter Notebook 100.00%
rnaseq singlecell network causality velocity slam-seq

scribe-python-notebooks's Introduction

Scribe-Python-notebooks

Tutorials of Scribe Python package usage cases

scribe-python-notebooks's People

Contributors

xiaojieqiu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

zhuy16 yolanda-ht

scribe-python-notebooks's Issues

problem running Scribe(adata, t0_key='spliced', t1_key='unspliced')

Hi Xiaojie,
A really cool tool for building the network, thanks for putting it together.
When running NASC_seq_Jurkat_T_cell_demo.ipynb with the demo data I was not able to calculate causality score running Scribe(adata, t0_key='spliced', t1_key='unspliced').

Full error text:

IndexError Traceback (most recent call last)
in
----> 1 Scribe(adata, t0_key='spliced', t1_key='unspliced')

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Scribe/Scribe.py in causal_net_dynamics_coupling(adata, TFs, Targets, guide_keys, t0_key, t1_key, normalize, drop_zero_cells, copy)
127 z_orig = [[i] for i in z_orig]
128
--> 129 causal_net.loc[g_a, g_b] = cmi(x_orig, y_orig, z_orig)
130
131 adata.uns['causal_net'] = {"RDI": causal_net.fillna(0)}

/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/Scribe/information_estimators.py in cmi(x_orig, y_orig, z_orig, normalization, k)
144 N = len(x)
145
--> 146 dx = len(x[0])
147 dy = len(y[0])
148 dz = len(z[0])

IndexError: list index out of range

Fixed with your advise by setting
drop_zero_cells=False in the function causal_net_dynamics_coupling

Scribe(adata, t0_key='spliced', t1_key='unspliced', drop_zero_cells=False)

Hope this report maybe useful for others
Thanks!

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.