Giter Club home page Giter Club logo

nbregression's Introduction

nbregression

The nbregression model is a Bayesian generalized linear regression model (GLM), which can be used to perform statistical inference on single-cell RNA-seq data. It was described in Zeisel et al. Cell types in the mouse cortex and hippocampus revealed by single-cell RNA-seq Science 2015 (PMID: 25700174, doi: 10.1126/science.aaa1934). Please cite this paper if you use the nbregression algorithm in your work.

The regression model was implemented in Stan by Sten Linnarsson, with a Python wrapper and command-line tool by Peter Lönnerberg. nbregression takes input in CEF format and produces an annotated CEF file as output. Use ceftools to create and manipulate CEF files.

Input

The input should be a matrix of expression values, in molecules/cell, with genes in rows and cells in columns. Two column attributes must be defined: one that gives the total molecule count per cell, and one that gives the class label for each cell.

Output

The result is generated by expanding each row in the input. By default, 1000 samples are generated for each row. Thus, if the input had 20,000 rows, the output will be 20,000,000 rows. A new row attribute nbr_sampleis added, containing an index of the sample (1, 2, 3, .... 999, 1000). Tip: since the output can be large, it's a good idea to compress it before saving: nbregression < indata.cef | gzip > outdata.cef.gz. Compression rates are usually around 10-fold.

...work in progress...

nbregression's People

Contributors

slinnarsson avatar pl-ki avatar

Watchers

James Cloos avatar Chengran Yang avatar

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.