Skip to main content

scp-infer: Causal Inference using perturbed single-cell gene expression data

Apply a number of causal inference algorithms to experimental perturbed single-cell gene exression data. Built using scanpy

1. Installation

There are two options provied to setup the usage of this package.

  1. As a simple option we reccommend to first create a clean python envrionment, where care has to be taken to select the correct python version 3.11.13 (otherwise older versions such as 3.11.8 or 3.10.x should work as well). Then this repository can be cloned, and the requirements listed in requirements.txt installed using pip, e.g:
conda create -n <env-name> python=3.11.13
conda activate <env-name>
pip install -r requirements.txt

Activation of the environment for Jupyter:

ipython kernel install --user --name=<env-name>
  1. Alternatively we provide a dockerfile in \docker-deploy for installing the package in a containerized environment. The image can be automatically configured with the download_infer_pkg.sh executable, which would require docker-compose to be installed.

2. Tutorials:

under tutorials there are three jupyter notebooks giving examples of how to use the package:

  1. sergio-knockdown-run shows how synthetic gene expression data using SERGIO can be generated.
  2. synthetic_data gives an example of applying the GRN inference algorithms to a synthetically genrdated dataset.
  3. experimental_data gives an example of applying the GRN inference algorithms to experimental CRISPR screen data, where first pre-processing and annotation is carried out. The used dataset, which is already highly filtered, can be replaced with other experimental datasets, where then care has to be taken with precprocessing and feature selection.

2. Documentation:

For Documentation of the usage of all the included functions see: documentation - docs/build/html/index.html

2. Contents:

1. scp_infer

Module that cointains all of the functionality for GRN inference:

a. adata:

Data manipulation and annotation using Anndata/scanpy

b. inference:

Apllication of inference algorithms

c. eval:

Evaluation of predicted Networks using data-driven and biological approaches

d. utils:

A few utilites to help with the management e.g. of train and validation splits of Data and Evaluation of Networks on these.

1. sergio_kd

Module that cointains the functionality for synthetic data generation using SERGIO.

Release files for scp-infer 0.0.1

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

Source distribution (sdist)

Source distribution for scp-infer 0.0.1
File Size Uploaded
scp_infer-0.0.1.tar.gz 192.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scp-infer 0.0.1
File Interpreter ABI Platform
scp_infer-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 450.5 kB

Release files / scp_infer-0.0.1.tar.gz

Download URL scp_infer-0.0.1.tar.gz
Size 192.6 kB
Tags Source
SHA-256 checksum
How to use checksums
de65baae1365d33157722b3918f1fdb8996334b85047f1f06727aa23a5ed6d4c
BLAKE2b-256 checksum
How to use checksums
4c6d24833bd8692bb1f0f6d3634b7333c4364f136d418e6b1dbdbe99cf592920
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release files / scp_infer-0.0.1-py3-none-any.whl

Download URL scp_infer-0.0.1-py3-none-any.whl
Size 257.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
942a8d70830b61c7d1ce85931afd932169bbffa263b4dcbecda1407ee52db537
BLAKE2b-256 checksum
How to use checksums
808d4f444a74b2186b2bbf398a34546851915bbbb7eff4958e9d79c790974222
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

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