Giter Site home page Giter Site logo

scquint's Introduction

scQuint (single-cell quantification of introns)

Installation

pip install git+https://github.com/songlab-cal/scquint.git

If you need the VAE, do a full installation (with more complex dependencies):

pip install "scquint[vae] @ git+https://github.com/songlab-cal/scquint.git"

Intron quantification

We recommend starting from the intron/junction count matrix obtained by running STARsolo with options --soloFeatures Gene SJ.

How to run on Smart-seq data

How to run on 10X Chromium data (We note that only a small proportion of alternative splicing events, those close to the 3' end of the gene, can be reliably detected in 10X data.)

Starting from the splice junction output directory of STARsolo, scQuint can prepare the data with a few steps:

from scquint.data import load_adata_from_starsolo, add_gene_annotation, group_introns

adata = load_adata_from_starsolo("path/to/SJ_solo_outs")
adata = add_gene_annotation(adata, "path/to/gtf.gz")
adata = group_introns(adata, by="three_prime")
adata.write_h5ad("adata_spl.h5ad")

Precomputed AnnData objects are available at https://github.com/songlab-cal/scquint-analysis.

Differential splicing

The basic commands would be:

from scquint.differential_splicing import run_differential_splicing

diff_spl_intron_groups, diff_spl_introns = run_differential_splicing(adata, cell_idx_a, cell_idx_b)

See differential_splicing_example.ipynb for more details using Tabula Muris. Open In Colab

See differential_splicing_example_cortex.ipynb for more details using BICCN mouse primary motor cortex. Open In Colab

Citation

Benegas, G., Fischer, J., Song., Y.S. Robust and annotation-free analysis of alternative splicing across diverse cell types in mice. eLife 2022;11:e73520
DOI: 10.7554/eLife.73520

scquint's People

Contributors

gonzalobenegas avatar nuoxuxu avatar yss1 avatar

Watchers

 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.