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.19.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.19-cp312-cp312-win_amd64.whl (1.5 MB view details)

Uploaded CPython 3.12Windows x86-64

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

Uploaded CPython 3.12macOS 14.0+ x86-64

scloop-0.1.19-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.19.tar.gz.

File metadata

  • Download URL: scloop-0.1.19.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.19.tar.gz
Algorithm Hash digest
SHA256 34cd087703b9e1c88257e29e39dd6c3fa420730a83bda497c95079d0f6242348
MD5 0e96ffb28a750388f63b65ec06740b8c
BLAKE2b-256 d0d34441accbcc9f824cca3e30c6417d1ae779b707bd3775f97534740b96283c

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: scloop-0.1.19-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.19-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 ec2bec0095e839744406735ec217431ca45fa6b1901421ff496f6b2778f1250f
MD5 f281235040ce4dc7a2389bb5b898b848
BLAKE2b-256 ac07e3353ecd2e570e3bbb9103f842d34a0ae4000310d1e9f91b5b7f2f48388e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.19-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 3bad0d2aa6859b412efa10530d2303f94c858a5839104434f8df80756519308e
MD5 85a75e5a08717d4f22a367bf218afa9c
BLAKE2b-256 16083f197454200f47c8becbc483fe4347e5b8775a61584157a5eaa2feecc3e3

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.19-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 e0bdc14d154e198c688871f5f87355974d6dc4059e341981ccd37d06d8083191
MD5 340447ad6cbc6ed1531b5922556087e9
BLAKE2b-256 598a13d06dee15b7ce24004a34c644f490fe8a40352397c9c762c52345c1f9f1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.19-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 c51f5d70ae0d1cb0c8fb25d5d7f67466b4c575b6b5abf687c84a88a825599e31
MD5 07dafe3bf74a00a31ab08038a089b18a
BLAKE2b-256 8f3658b3c3e453ccc6bb035cd6fb90f8941d6da7010e713c98bb0c38cb773fe8

See more details on using hashes here.

Provenance

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