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.9.tar.gz (127.7 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.9-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.9-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.9-cp312-cp312-macosx_11_0_arm64.whl (81.7 kB view details)

Uploaded CPython 3.12macOS 11.0+ ARM64

circe_py-0.3.9-cp312-cp312-macosx_10_13_x86_64.whl (83.3 kB view details)

Uploaded CPython 3.12macOS 10.13+ x86-64

circe_py-0.3.9-cp312-cp312-macosx_10_13_universal2.whl (114.3 kB view details)

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

circe_py-0.3.9-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.9-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.9-cp311-cp311-macosx_11_0_arm64.whl (81.2 kB view details)

Uploaded CPython 3.11macOS 11.0+ ARM64

circe_py-0.3.9-cp311-cp311-macosx_10_9_x86_64.whl (83.1 kB view details)

Uploaded CPython 3.11macOS 10.9+ x86-64

circe_py-0.3.9-cp311-cp311-macosx_10_9_universal2.whl (113.7 kB view details)

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

circe_py-0.3.9-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.9-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.9-cp310-cp310-macosx_11_0_arm64.whl (81.1 kB view details)

Uploaded CPython 3.10macOS 11.0+ ARM64

circe_py-0.3.9-cp310-cp310-macosx_10_9_x86_64.whl (83.0 kB view details)

Uploaded CPython 3.10macOS 10.9+ x86-64

circe_py-0.3.9-cp310-cp310-macosx_10_9_universal2.whl (113.5 kB view details)

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

File details

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

File metadata

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

File hashes

Hashes for circe_py-0.3.9.tar.gz
Algorithm Hash digest
SHA256 3f262f546fe5df8fc631a92f3b5578fa2d2d8b6b9d733ad767f2e854a92829ed
MD5 8565ae59fbe2fb8a47afe9eb7a690849
BLAKE2b-256 b95f2d96fa3f3255364cc477a58df620b56666368216f6a63fa63e5e779f2e47

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c3822377fb4d6c504619248c5992aa2a2e28ef2aee93c7f642ed8d5e5119a29
MD5 7cbf15c1fca41e37824dcaa25fcf7bd2
BLAKE2b-256 38cdb2ef5c15dfe8338fe75c9ca5d8b6b897374253151c4eb663084d4304a1ff

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp312-cp312-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 7363eaf4c84fc7ffdc89f62c2811537dd03be3e2dbc4c53bf340e9449d2384b9
MD5 a10c9a38bff934619061714b74f138b7
BLAKE2b-256 e5e54332ee7e4b94ce275ca3695c993456ad50c745710b1ccd2a7a297f1114a6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp312-cp312-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 32566046407886968e4f82cc7e9e558dbbb59bfc977791db5186c89f45d75177
MD5 c6d4e6a1891670319237a0c9261687fc
BLAKE2b-256 58ee2f4bb40bd84524c1c2f95f0ae2956b1a8919faec7dcefa0e91efb29c50f9

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp312-cp312-macosx_10_13_x86_64.whl
Algorithm Hash digest
SHA256 c814a7bf804f871607b325ebaf9cf8269d9cabfbef5f2c71b73c538f84a21851
MD5 291d58d1fbdcf3394e8da522c94d5225
BLAKE2b-256 6511fb5598633350c69842ba462a685f9d57874c6543a870d1f45ec37f8166dc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp312-cp312-macosx_10_13_universal2.whl
Algorithm Hash digest
SHA256 3b59d4d2d564ffbaae7dc6f71cacfd4defb1272dc7f0bb940473ad6b5b09dd82
MD5 7ba97db41b8a676ce09824e6360f5d0c
BLAKE2b-256 5153e8735f594aa08d567b58c786995fe3e4c008c05ffe5e6ab763dcb1329795

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5609edde3c22f5a41a487def120ee3744517fd6d3f9d5f785c27df27c0f0b93d
MD5 e93e94c4fd6034b8b8fc03ee2efee8bd
BLAKE2b-256 2fd4ca0821fd1beb09d760f52b09f23d6c51ab1a83d9c5bd720ea613f3b6561b

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp311-cp311-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 1a88ad6ccce2c26236a6a0cedbeb3c135627f0b75aa48aab741d7403adc3d043
MD5 4bfa5857afb88d51da2cd7d966937ef5
BLAKE2b-256 2ef60baf8b877acd81ca88f758dd9caefd659a0ca2cf9ef98b7f69048272ab6e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp311-cp311-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 3e44312b6e461cc44a333e3721239697155ca9d1e9ab34be933a5caf2aaab46e
MD5 9809769fbb2d91b08e8bf6e186f210dc
BLAKE2b-256 74b9c5891d7a0b4e51de45bd7237b12e1d54a1a3e65e49f8a49134f4260cbf53

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp311-cp311-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 d6934e3f17a89a527751889ce17ce73a095e7a53f5dfdab6ef88b4cb9786b5b7
MD5 69ad0dc6c5bee9a5cc28af782bfd49d1
BLAKE2b-256 c7fde7633c842f7acf0969e3edab03eaeae5187ad0179f9d35f41e34f34994b5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp311-cp311-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0572e658e5f35c5f223e88599fa2a2fc07b75a2d0525f5805dbfd5ebe874bbe4
MD5 30605fc4fe31d9e2cbb9902408ca1143
BLAKE2b-256 3c3e9f6a003f51256ebbc8096d56183c73822cedfa47cdcf8d6bef71b668b327

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 08c34de693d93f6b9b8897383a54ad0b83002c8b7ddb3bfa05b5761ec66c605d
MD5 2a4e82e2519b75ffa7183e8dfe84f22c
BLAKE2b-256 92706bc9e5ab39c2cb9409ce6fd06c662a0edd0eea39e771845d094e392f52e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp310-cp310-manylinux_2_17_i686.manylinux2014_i686.whl
Algorithm Hash digest
SHA256 6ee0b4622bfa2c33911b878af37dc026dcce0407e51ef78c5386e62a7b2004b5
MD5 aa64eeab20d660a0cbdcecf080e8c104
BLAKE2b-256 72c6fdf0866f318cee3be293c0acd2a669b7e8a745f884dd62d49ec49a4d7329

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp310-cp310-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4c14c8b8b723329b86395c1b01ea6a51bbf6acadb6e33647963844f05166b9b7
MD5 c5385ebdd77e517add790e1443e2bb97
BLAKE2b-256 7b9f9073e3f622977fb22986d79cf2f243b4a3970b74483084273b0251c6644c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp310-cp310-macosx_10_9_x86_64.whl
Algorithm Hash digest
SHA256 c1caab3645866755ff666205bafa0c9e2d00906ec1404176ad04a43affd87442
MD5 4d387694bbeb374a0f674bc99df33b06
BLAKE2b-256 7e4fc004165bbf84aa2b09b16aa36976bbfab2a075b07005a44de0bb761557b8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for circe_py-0.3.9-cp310-cp310-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 86b5c6b5399da9df4625faf6b89aeff9782cfada466cf70af9aea4acc4daf80f
MD5 dfb8965d7c770db9a83896255b429916
BLAKE2b-256 edc422b2a13fc53b655e8035ddd3d025d7a7da17aff249c750d8e028a1dccd9f

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