Giter Site home page Giter Site logo

scsim2's Introduction

scsim2

Simulate single-cell RNA-SEQ data using the Splatter statistical framework but implemented in python with additional features. scsim2 is an extension of scsim but now allowing an arbitrary number of activity programs to be simulated.

Added on top of this is SCsim_DiffScale within scsim2_diff_librarysize.py which allows GEPs to have different abundances of RNA content which corresponds to having cells expressing certain GEPs having higher overall library sizes. For example:

deprob = [.025]*7 + [.05]*2 + [.025]*2
deloc = [1.5]*7 + [2.00]*2 + [1.5]*2
simmod_catalog = SCsim_DiffScale(seed=112)
simmod_catalog.simulate(ncells=20000, ngenes=10000, nidentities=7, activity_pct=[.3]*4,
                activity_min=[.1]*4, activity_max=[.7]*4,
                activity_identities=[list(range(1,8))]*4,
                pct_doublets=.05, diffexploc=deloc, diffexpscale=1, diffexpprob=deprob,
                delta_range_libloc=0)

simmod_catalog.spectra.sum(axis=1)

Would cause the 8th and 9th programs to have a larger library size because of more incorporated genes and higher average differential expression for those genes.

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.