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.23.tar.gz (894.7 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.23-cp312-cp312-win_amd64.whl (1.6 MB view details)

Uploaded CPython 3.12Windows x86-64

scloop-0.1.23-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.23-cp312-cp312-macosx_14_0_x86_64.whl (1.3 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

scloop-0.1.23-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.23.tar.gz.

File metadata

  • Download URL: scloop-0.1.23.tar.gz
  • Upload date:
  • Size: 894.7 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.23.tar.gz
Algorithm Hash digest
SHA256 225fc4790ce31c6747dc4cefd40563fa860ca917b698593bb8269779360c7757
MD5 2d335704ee3c77cde11e0becc9511211
BLAKE2b-256 b2f3293f128ad7ff52c0623288885325aeff22c60f6c707cb84514f0ac6dc350

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.23.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.23-cp312-cp312-win_amd64.whl.

File metadata

  • Download URL: scloop-0.1.23-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.23-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 f2dc36bd5f180dbfa6c01277cb90b189145b6c82c3620f938f61c38f174ac83b
MD5 01ef799630393198dec8b71be42cd256
BLAKE2b-256 6d3f5779e05ada42addb3427e4a129b75a502a0e1f9e35c9da8cb3f86dd3c7bf

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.23-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.23-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for scloop-0.1.23-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 ac9d30f6f72ebd8006ff81d955453a94775660448ba6d3ab911dc13584c0483f
MD5 60d0ddd825e1e32f7401fa8a784be2d0
BLAKE2b-256 66ec863c8e3c07eeab35432616679fb93f28d1177acd73540440a181db2189a0

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.23-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.23-cp312-cp312-macosx_14_0_x86_64.whl.

File metadata

File hashes

Hashes for scloop-0.1.23-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 1d05d2552cdd610f977d034bd0f4a203d712b32f09c9c572b6bf0d6c37bbe2c5
MD5 3cfe7c1d3b669cfc660380355d905f86
BLAKE2b-256 57c68a923d57b5efc9c228b71a539eab5c0c50d950c00b00797ad079aefbd79e

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.23-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.23-cp312-cp312-macosx_14_0_arm64.whl.

File metadata

File hashes

Hashes for scloop-0.1.23-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 ba3af8384f355e2dd881cb5e1595523948112dd6bb7a14a9c07a8b13bb571bcb
MD5 b3dd9eaa5120c1d1ea33bff0434c13fb
BLAKE2b-256 daeacfb50ecd274a4ae21290cf665e9a7536239d7829721a8f1f51fae97a52d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for scloop-0.1.23-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