Skip to main content

Circe: Package for building co-accessibility networks from ATAC-seq data.

Project description

Circe logo


CIRCE: Cis-regulatory interactions between chromatin regions

Unit_Tests Wheels codecov PyPI version Downloads

Description

This repo contains a python package for inferring co-accessibility networks from single-cell ATAC-seq data, using skggm for the graphical lasso and scanpy for data processing.

It is based on the pipeline and hypotheses presented in the manuscript "Cicero Predicts cis-Regulatory DNA Interactions from Single-Cell Chromatin Accessibility Data" by Pliner et al. (2018). This R package Cicero is available here.

Installation

The package can be installed using pip:

pip install circe-py

and from github

pip install "git+https://github.com/cantinilab/circe.git"

Minimal example

import anndata as ad
import circe as ci

# Load the data
atac = ad.read_h5ad('atac_data.h5ad')
atac = ci.add_region_infos(atac)

# Compute the co-accessibility network
ci.compute_atac_network(atac)

# Extract the network and find CCANs modules
circe_network = ci.extract_atac_links(atac)
ccans_module = ci.find_ccans(atac)

Visualisation

fig, ax = plt.subplots(1, figsize = (20, 6))
genes_df = ci.downloads.download_genes()

ci.draw.plot_connections_genes(
    connections=atac,  # Main parameters
    genes=genes_df,
    chromosome="chr1",
    start=50_000,
    end=300_000,
    gene_spacing=30_000,
    abs_threshold=0.0,
    y_lim_top=-0.01,   # Visual parameters
    track_spacing=0.01,
    track_width=0.01,
    ax=ax
)

Comparison to Cicero R package


Metacalls computation might create differences, but scores will be identical applied to the same metacalls (cf comparison plots below). It should run significantly faster than Cicero (e.g.: running time of 5 sec instead of 17 min for the dataset 2).

If you have any suggestion, don't hesitate ! This package is still a work in progress :)
On the same metacells obtained from Cicero code.

All tests can be found in the circe benchmark repo

Real dataset 2 - subsample of 10x PBMC (2021)

  • Pearson correlation coefficient: 0.999958
  • Spearman correlation coefficient: 0.999911

Performance on real dataset 2:

  • Runtime: ~100x faster
  • Memory usage: ~5x less

Coming:

  • Calculate metacells !
  • Add stats on similarity on large datasets.
  • Add stats on runtime, memory usage.
  • Implement the multithreading use. Should speed up even more.
  • Fix seed for reproducibility.

Usage

It is currently developped to work with AnnData objects. Check Example1.ipynb for a simple usage example.

Citation

Trimbour Rémi (2025). Circe: Co-accessibility network from ATAC-seq data in python (based on Cicero package). Package version 0.3.6.

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

circe_py-0.3.8.tar.gz (127.4 kB view details)

Uploaded Source

Built Distributions

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

circe_py-0.3.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.5 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ x86-64

circe_py-0.3.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl (3.3 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.17+ i686

circe_py-0.3.8-cp312-cp312-macosx_11_0_arm64.whl (81.1 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

circe_py-0.3.8-cp312-cp312-macosx_10_13_x86_64.whl (82.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

circe_py-0.3.8-cp312-cp312-macosx_10_13_universal2.whl (113.7 kB view details)

Uploaded CPython 3.12macOS 10.13+ universal2 (ARM64, x86-64)

circe_py-0.3.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ x86-64

circe_py-0.3.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl (3.3 MB view details)

Uploaded CPython 3.11manylinux: glibc 2.17+ i686

circe_py-0.3.8-cp311-cp311-macosx_11_0_arm64.whl (80.7 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

circe_py-0.3.8-cp311-cp311-macosx_10_9_x86_64.whl (82.5 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

circe_py-0.3.8-cp311-cp311-macosx_10_9_universal2.whl (113.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ universal2 (ARM64, x86-64)

circe_py-0.3.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.4 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ x86-64

circe_py-0.3.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl (3.3 MB view details)

Uploaded CPython 3.10manylinux: glibc 2.17+ i686

circe_py-0.3.8-cp310-cp310-macosx_11_0_arm64.whl (80.5 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

circe_py-0.3.8-cp310-cp310-macosx_10_9_x86_64.whl (82.4 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

circe_py-0.3.8-cp310-cp310-macosx_10_9_universal2.whl (112.9 kB view details)

Uploaded CPython 3.10macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file circe_py-0.3.8.tar.gz.

File metadata

  • Download URL: circe_py-0.3.8.tar.gz
  • Upload date:
  • Size: 127.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for circe_py-0.3.8.tar.gz
Algorithm Hash digest
SHA256 21f9b44da8782528c6799f67424dbc6f4b69ba5ad08cb83be7108a721c48ee94
MD5 cbad4ac42fb185c7a052239c9560be13
BLAKE2b-256 1db92dfd38217556f96c9af91763b243c6ad9cb1eb39d78114df208a72221605

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 01bb733c279b9daaa9fef5dec01d006cf6b913b33f0d7f57f6324af82e376a6b
MD5 31491e03666edb962b8541f655e23049
BLAKE2b-256 89b43babed849542210dd8a0ced199478bae8f3d18c896ae117f4949cc4090ee

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 d8579c6cfe5e85877f3d717b082499b14acb6537ca32662613908a182bfd4dcc
MD5 07161fe79700b4b86b41b3fa1696fb20
BLAKE2b-256 5e1d42cba598344503da8b7e3b1f19b284adb3edf9533ddd677678cb3526e2c8

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp312-cp312-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 8ef7dcf1a46971b17dae63707d70910b7d3208fa97d2139c4cd58fa46b1546cd
MD5 0e300fc2c8e5706826ac7225df90e3ca
BLAKE2b-256 2f94e220d5e01b743b6035330aad6c800fdb5bc33333c8d1f76f430557cfaf83

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp312-cp312-macosx_10_13_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c60adf73e8824d4189ddb747d2762e69d9b2078f62f9a3d00b23efca9a3c94ca
MD5 847d1ea254dd13a4fcf6b03bfefeee60
BLAKE2b-256 864c713e14e3d6d484c3f89338d79fd2576d5f95e4414562ef22a4587b5c61f2

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp312-cp312-macosx_10_13_universal2.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 813af258ccf6d7ba1b5f97de39419bbdf043ca56802c3a7040218c451021fde6
MD5 220f4f2b66e6490c11e4e8bd5e26c883
BLAKE2b-256 41750db3102a9734da25cb3f6c4868d4dbdd17d23ff43ee5db7c393b1f6c5696

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ed104423c0fdfdb44527098e07f0fba67201d2cd7705759128bdacde256ae121
MD5 d44bffd103a8f188ebc0ce0af1d0bf60
BLAKE2b-256 43f56144f5c6064e0312be5505f2687f031abd7480db096b914fc0fa18c36aa1

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 95fba03abe3193b852557102ce53eefc5cdb232bab4b067a5bfdf4cd6ca77c5d
MD5 0daf11d57625aa540c323df667dd05a6
BLAKE2b-256 ad63f44b2a786d8630e535fc27cda917e6cf0d9a7fa49549aaa8c01ef644994f

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp311-cp311-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 f4f832b4ff3988ce032cccf7e6552a05d652c897c8f9b585589f54c34378f05a
MD5 89fcfbe965482677f75041042792179b
BLAKE2b-256 267395a586d02d7aa825d01ef93799e56da8771cbc6eab163236a2d187ed9405

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp311-cp311-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 a2b4d06f45ae300b046b862bb1df6602ae5e6d4fc6cfb29427f92a7a6e513524
MD5 7626e7d72f3df819e6ef493c898a3768
BLAKE2b-256 88cf84272b0966ca0ea033caed04070cd38b99f5419169c8e6a2290a5e492e8b

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp311-cp311-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 74795e05414f6f5d72c09eaecb7135dc47bda88b3556cdea9d4b0bc2f85f7c11
MD5 ee942b29bc32e036d538d055985fdd80
BLAKE2b-256 9e4b0e095a82ef52829ffa452d6b7ae8b1efb800ecee24f04dfff50a0f44421d

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 1a1a7b013b729d0f379cd5bcc690ea9afeba4a10d95a6751c0d12396dfa43c72
MD5 60ca0eb22fd1af02439bb802ba18bfc2
BLAKE2b-256 9d1eacc3dc6ff435c712eb69b98221676d0e04f482178c4abbfa18a68f1c2eb2

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 76db84b3c1a0feb15a38d46980be731516b47f71382f6d36855926b69cf1ef65
MD5 0064a34935e64ca336ad63e3d80d119e
BLAKE2b-256 d8dcce1bec6de3055c2a13eca8f48a46d15ddd83bb5b8e1ae95d8646a7612d59

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp310-cp310-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 850a26d02c5e49fbd9bfbd42a5ad883a8d9df9f6c005a3edce20521584d7a825
MD5 98d5d8c3bf53509b9f9ecf72bb6d80a6
BLAKE2b-256 46309df4c855a5a41c4010e3be0f550ebc94caef71370f672c5e0be4810a2da3

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp310-cp310-macosx_10_9_x86_64.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 4e382c14231d5575380fcd074b9d3a4315cdeeca904e44bb9b5189ccaa91c130
MD5 854b21fd1fb7af2387ed6d39051cb0b9
BLAKE2b-256 6080f7d22867e2f343549d17335b05876dd134dec8e8c8793fda23e545e452d3

See more details on using hashes here.

File details

Details for the file circe_py-0.3.8-cp310-cp310-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for circe_py-0.3.8-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0adc7e45c2ffd2860a9afc3b5083a0cdeef23f48e3066dc08e313a018072214e
MD5 55b626cb5494fb7e9bf90b52952774d5
BLAKE2b-256 4ba514b776a33e6dae944d1d784ecbcb557575970a7d78932d08f4a732c663c3

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