Skip to main content

single-cell loop analysis

Project description

scloop - single-cell loop analysis

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.21.tar.gz (891.1 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.21-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 14.0+ x86-64

scloop-0.1.21-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.21.tar.gz.

File metadata

  • Download URL: scloop-0.1.21.tar.gz
  • Upload date:
  • Size: 891.1 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.21.tar.gz
Algorithm Hash digest
SHA256 85ad7f52adc7a03fe78f512c396c0a0b2512b841b5c99c63d6ceacc5ec22b296
MD5 e4fca98a25cb61cb385da2b553b3a4ca
BLAKE2b-256 ffd72b9bdebc3fc90aada9400b7c48b99f202bd7913b31c17cd93944285898fc

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scloop-0.1.21-cp312-cp312-win_amd64.whl
  • Upload date:
  • Size: 1.5 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.21-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 21d522de0a545f0ab4896f222a6d8ae159fbb6b20ccfb7e33477d91346b0b31d
MD5 e159a79f7587cfaa55e7671d36cc6123
BLAKE2b-256 8625a425ec92c88d1a85b138b3b51dcfc4965d2731fc976d8bbee08b8f649f9b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.21-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8e3670758ad8fa7fe99144f274ef74a5921bdc442de7883773bfcda5e1f67e15
MD5 f12d8fb38b5036e20a64efd0d9779175
BLAKE2b-256 7f1cd8da6d1aed0b956423e29c4919f10004c490a40207c4146e52df57d4c614

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.21-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 729a671b13c326f63bbb643a82c413703ed0bc9b05dde5467c14560a4cae0ceb
MD5 d1d8530e571e0f9b9e08490d76ba9711
BLAKE2b-256 52170a18395a036efce0716a50fcb7534458fcbcb244412e0308feb3003b94ea

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.21-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 13c1c1e25a4f00036758a63ff2fbed91946a5c0c049983953a027c8f52861416
MD5 13a1f8e5a7ba10866b46d508975b4b6f
BLAKE2b-256 0293a38bcafc99b25c49f49f1caaca32af48999388637f1c8976ecef8c09db86

See more details on using hashes here.

Provenance

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