Skip to main content

LeafletSC

LeafletSC is a binomial mixture model designed for the analysis of alternative splicing events in single-cell RNA sequencing data. The model facilitates understanding and quantifying splicing variability at the single-cell level. Below is the graphical abstract of our approach:

Compatibility with sequencing platforms

LeafletSC supports analysis from the following single-cell RNA sequencing platforms:

  • Smart-Seq2
  • Split-seq
  • 10X

Getting Started

LeafletSC is implemented in Python and requires Python version 3.10 (3.11 has not been tested yet). We recommend the following approach:

# create a conda environment with python 3.10 
conda create -n "LeafletSC" python=3.10 ipython
# activate environment 
conda activate LeafletSC
# install latest version of LeafletSC into this environment
pip install LeafletSC

Once the package is installed, you can load it in python as follows:

import LeafletSC 

# or specific submodules 
from LeafletSC.utils import *
from LeafletSC.clustering import *

Requirements

Prior to using LeafletSC, please run regtools on your single-cell BAM files. Here is an example of what this might look like in a Snakefile:

{params.regtools_path} junctions extract -a 6 -m 50 -M 500000 {input.bam_use} -o {output.juncs} -s XS -b {output.barcodes}
# Combine junctions and cell barcodes
paste --delimiters='\t' {output.juncs} {output.barcodes} > {output.juncswbarcodes}
  • Once you have your junction files, you can try out the mixture model tutorial under Tutorials
  • While optional, we recommend running LeafletSC intron clustering with a gtf file so that junctions can be first mapped to annotated splicing events.

Capabilities

With LeafletSC, you can:

  • Infer cell states influenced by alternative splicing and identify differentially spliced regions.
  • Conduct differential splicing analysis between specific cell groups if cell identities are known.
  • Generate synthetic alternative splicing datasets for robust analysis testing.

How does it work?

The full method can be found in our paper while the graphical model is shown below:

If you use Leaflet, please cite our paper

@unpublished{Isaev2023-bf,
  title    = "Investigating RNA splicing as a source of cellular diversity using a binomial mixture model",
  author   = "Isaev, Keren and Knowles, David A",
  journal  = "bioRxiv",
  pages    = "2023.10.17.562774",
  month    = oct,
  year     = 2023,
  language = "en"
}

Potential errors:

If you have any errors with the package Polars, please ensure you install polars-lts-cpu:

pip install polars-lts-cpu

To-do:

  1. Add documentation and some tests for how to run the simulation code
  2. Add 10X/split-seq mode in addition to smart-seq2
  3. Extend framework to seurat/scanpy anndata objects
  4. Add notes on generative model and inference method
  5. Clean up dependencies

Metadata

Release files for LeafletSC 0.2.16

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for LeafletSC 0.2.16
File Size Uploaded Provenance Actions
LeafletSC-0.2.16.tar.gz 26.0 kB Without provenance Details for LeafletSC-0.2.16.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for LeafletSC 0.2.16
File Interpreter ABI Platform Actions
LeafletSC-0.2.16-py3-none-any.whl Python 3 none any Details for LeafletSC-0.2.16-py3-none-any.whl

Total release size: 56.1 kB

Release files / LeafletSC-0.2.16.tar.gz

Download URL LeafletSC-0.2.16.tar.gz
Size 26.0 kB
Tags Source
SHA-256 checksum
How to use checksums
b984e220d2fcf3e96b66f120ec5d91eded7061548b535612eb845fbf4c7789ea
BLAKE2b-256 checksum
How to use checksums
ecc19456e54967fae9dadac463c0ef5acae5f961162df2116b520832c113a318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Release files / LeafletSC-0.2.16-py3-none-any.whl

Download URL LeafletSC-0.2.16-py3-none-any.whl
Size 30.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
918199180e3fbcdcd25f5400ce96e070a8ed82ccccce60b5c56b466a4e30e930
BLAKE2b-256 checksum
How to use checksums
d6e12e1445c9aa8b7fa9dfd271186712125f9c5ff2c48f878a5ff4c70a445a5e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.13

Security for LeafletSC 0.2.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page