Skip to main content

Utility for applying causal inference algorithms perturbed single-cell gene exression data

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scp_infer-0.0.1.tar.gz (192.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

scp_infer-0.0.1-py3-none-any.whl (257.9 kB view details)

Uploaded Python 3

File details

Details for the file scp_infer-0.0.1.tar.gz.

File metadata

  • Download URL: scp_infer-0.0.1.tar.gz
  • Upload date:
  • Size: 192.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for scp_infer-0.0.1.tar.gz
Algorithm Hash digest
SHA256 de65baae1365d33157722b3918f1fdb8996334b85047f1f06727aa23a5ed6d4c
MD5 9905006c8b05e976c675788d54946939
BLAKE2b-256 4c6d24833bd8692bb1f0f6d3634b7333c4364f136d418e6b1dbdbe99cf592920

See more details on using hashes here.

File details

Details for the file scp_infer-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: scp_infer-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 257.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for scp_infer-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 942a8d70830b61c7d1ce85931afd932169bbffa263b4dcbecda1407ee52db537
MD5 66e588c19ef9ffc258b501a526486296
BLAKE2b-256 808d4f444a74b2186b2bbf398a34546851915bbbb7eff4958e9d79c790974222

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page