Skip to main content

single-cell loop analysis

Project description

scloop - single-cell loop analysis

CI Test Import Test Build PyPI

Note: this package is in early stages of development.

scLoop is a library to identify statistically significant loops in single-cell RNA-seq data.

persistent homology

Basic Usage

import scloop as scl
# Preprocess anndata
scl.pp.prepare_adata(adata, downsample=True, n_downsample=500)
# Identify statistically significant loops
scl.tl.find_loops(adata, ...)
# Compute trajectories, gene trends, and important features of each loop
scl.tl.analyze_loops(adata, ...)
# Match loops across datasets
scl.tl.match_loops([adata1, adata2, ...], ...)

Build Instructions

make build

or

make rebuild

Virtual Envrionemnt

make sync

or

make full-sync

to prevent partial compilation of some modules

Installation

Note: this package is in early stages of development. The current build will have issues.

pip install scloop

Project Structure

src/scloop/
├── analyzing
│   ├── bootstrap.py
│   ├── feature_selection.py
│   ├── gene_trend.py
│   ├── hodge.py
│   ├── __init__.py
│   └── stats.py
├── benchmarking
│   └── __init__.py
├── computing
│   ├── boundary.py
│   ├── hodge_decomposition.py
│   ├── homology.py
│   ├── __init__.py
│   ├── loops.py
│   └── matching.py
├── data
│   ├── analysis_containers.py
│   ├── base_components.py
│   ├── boundary.py
│   ├── constants.py
│   ├── containers.py
│   ├── __init__.py
│   ├── metadata.py
│   ├── ripser.cpp
│   ├── ripser.hpp
│   ├── ripser_lib.cpp
│   ├── ripser_lib.pyx
│   ├── types.py
│   └── utils.py
├── __init__.py
├── io
│   └── __init__.py
├── matching
│   ├── cross_dataset.py
│   ├── data_modules.py
│   ├── __init__.py
│   ├── mlp.py
│   └── nf.py
├── plotting
│   ├── _cross_match.py
│   ├── custom_colormaps.py
│   ├── _hodge.py
│   ├── _homology.py
│   ├── __init__.py
│   ├── _trajectory.py
│   └── _utils.py
├── preprocessing
│   ├── delve
│   │   ├── delve.py
│   │   ├── __init__.py
│   │   └── kh.py
│   ├── downsample.py
│   ├── __init__.py
│   └── prepare.py
├── py.typed
├── tools
│   ├── _cross_match.py
│   ├── __init__.py
│   └── _loops.py
└── utils
    ├── distance_metrics
    │   ├── discrete-frechet-distance
    │   ├── frechet.cpp
    │   ├── frechet_py.py
    │   ├── frechet.pyx
    │   └── __init__.py
    ├── __init__.py
    ├── linear_algebra_gf2
    │   ├── gf2_toolkit_lib.pyx
    │   ├── __init__.py
    │   ├── m4ri_lib.c
    │   └── m4ri_lib.pyx
    ├── logging.py
    └── pvalues.py

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

scloop-0.1.24.tar.gz (895.2 kB view details)

Uploaded Source

Built Distributions

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

scloop-0.1.24-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

scloop-0.1.24-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (3.2 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

scloop-0.1.24-cp312-cp312-macosx_14_0_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

scloop-0.1.24-cp312-cp312-macosx_14_0_arm64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

File details

Details for the file scloop-0.1.24.tar.gz.

File metadata

  • Download URL: scloop-0.1.24.tar.gz
  • Upload date:
  • Size: 895.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scloop-0.1.24.tar.gz
Algorithm Hash digest
SHA256 1e0856caae4f53953af3fd18e04176aab76baa40fd26bb38daae7f950e3d697f
MD5 785c6d7ca96afa7d9ea35e1dafb22b6d
BLAKE2b-256 0ee64bcf0afdd80eb6e691d6567ea4dc45123c0bc3256b798c028849c31f07aa

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.24.tar.gz:

Publisher: publish.yml on stanfish06/scloop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scloop-0.1.24-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: scloop-0.1.24-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.6 MB
  • Tags: CPython 3.12, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for scloop-0.1.24-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 29f12fbed0509261bd10bf9b4cedf3e3ec33d2a52b0bbccf66a7df02c52e78eb
MD5 eb7325326844de5cff98eebb30dda294
BLAKE2b-256 67cd6bfb536767b7bac87ad5a2e8ebb76a222e7d9f35cf362c6b1894003def8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.24-cp312-cp312-win_amd64.whl:

Publisher: publish.yml on stanfish06/scloop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scloop-0.1.24-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scloop-0.1.24-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 76b9de18c372bdfce8b554807c6f3401aad4cac451a6bcd390b3d979aed65d4d
MD5 cb5510eb1599a413def042d389acff85
BLAKE2b-256 ccfcbd87a3ffa0cfb930cbd6d863e3b27b9d678a07a9d33e59ecb7fbcaa0a661

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.24-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl:

Publisher: publish.yml on stanfish06/scloop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scloop-0.1.24-cp312-cp312-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for scloop-0.1.24-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 bc57ed4aba8e9224c320ec77b8045577b5c039165cabe204fb08051cbb8c4b27
MD5 675daffee12f56d3017f982c5c622be5
BLAKE2b-256 745abde41eee36e8d98256254b68a09fb97b9d873ad33d745fc8b712826ba193

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.24-cp312-cp312-macosx_14_0_x86_64.whl:

Publisher: publish.yml on stanfish06/scloop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file scloop-0.1.24-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for scloop-0.1.24-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 dfc0d96ad5a06be7c7b0fce7eea53897c351786272f7ff2159f6a8b4642f5717
MD5 b1c0edda631b7dce2c12acde2eb9e07e
BLAKE2b-256 89ab74256fb0a44a356aca80b5f1bb647b4f326d001f733b82a2fb2e8d45b350

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.24-cp312-cp312-macosx_14_0_arm64.whl:

Publisher: publish.yml on stanfish06/scloop

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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