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. (manuscirpt in prep)

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

persistent homology demo
monkey

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
│   ├── benchmarking_slicer.R
│   ├── datasets.py
│   ├── hf_registry.yaml
│   ├── __init__.py
│   ├── install_r_packages.R
│   ├── lle_1.1.tar.gz
│   ├── renv
│   │   ├── activate.R
│   │   ├── library
│   │   ├── settings.json
│   │   └── staging
│   ├── renv.lock
│   ├── SLICER
│   │   ├── data
│   │   ├── DESCRIPTION
│   │   ├── man
│   │   ├── NAMESPACE
│   │   ├── R
│   │   ├── README.md
│   │   ├── SLICER.Rproj
│   │   └── vignettes
│   ├── slicer_results.csv
│   └── splatter
│       ├── codecov.yml
│       ├── DESCRIPTION
│       ├── index.md
│       ├── inst
│       ├── LICENSE
│       ├── man
│       ├── NAMESPACE
│       ├── NEWS.md
│       ├── pkgdown
│       ├── _pkgdown.yml
│       ├── R
│       ├── README.md
│       ├── tests
│       └── vignettes
├── computing
│   ├── boundary.py
│   ├── divergence.py
│   ├── embedding.py
│   ├── hodge_decomposition.py
│   ├── homology.py
│   ├── __init__.py
│   ├── loops.py
│   ├── matching.py
│   └── utils.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
    ├── denoise
    │   ├── __init__.py
    │   ├── Sanity
    │   ├── Sanity.cpp
    │   ├── Sanity_py.py
    │   └── Sanity.pyx
    ├── distance_metrics
    │   ├── discrete-frechet-distance
    │   ├── frechet.cpp
    │   ├── frechet_py.py
    │   ├── frechet.pyx
    │   └── __init__.py
    ├── __init__.py
    ├── linear_algebra_gf2
    │   ├── GF2toolkit
    │   ├── gf2toolkit_lib.cpp
    │   ├── gf2toolkit_lib.pyx
    │   ├── gf2toolkit_wrapper.cpp
    │   ├── gf2toolkit_wrapper.hpp
    │   ├── __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.28.tar.gz (1.1 MB 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.28-cp312-cp312-win_amd64.whl (2.4 MB view details)

Uploaded CPython 3.12Windows x86-64

scloop-0.1.28-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (4.0 MB view details)

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

scloop-0.1.28-cp312-cp312-macosx_14_0_x86_64.whl (1.6 MB view details)

Uploaded CPython 3.12macOS 14.0+ x86-64

scloop-0.1.28-cp312-cp312-macosx_14_0_arm64.whl (2.0 MB view details)

Uploaded CPython 3.12macOS 14.0+ ARM64

File details

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

File metadata

  • Download URL: scloop-0.1.28.tar.gz
  • Upload date:
  • Size: 1.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for scloop-0.1.28.tar.gz
Algorithm Hash digest
SHA256 0786297084c004a3c36f89753c931138904b428341136e51182071592c435fbc
MD5 db12b7264a00e7eafd462a190fcfbc0b
BLAKE2b-256 6915f184b38c1b97b236a7142437e85f1f0e4ba6d90cb3ecebaff16e239956ef

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for scloop-0.1.28-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 e466a2cf01511cbb1d7114cef6454d21e4a1c2044dea9de17405471465f0ad8a
MD5 91f5c35b0421f2edf5099b3b0dc542a1
BLAKE2b-256 42db6fb51017622d52fa1ffbf8d32ac3634b1346a6995287ce28df0f2c3e9fa5

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.28-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 7f6d8efb420a958835819dacff201806e2f54973f717b68e8bee1686e34c4b6b
MD5 f4f18d40105488331a479bd522c4f63a
BLAKE2b-256 a59b9db7597035e2a643408bedb6d059ee8a401d3103d6f7de54ad3d7c150357

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.28-cp312-cp312-macosx_14_0_x86_64.whl
Algorithm Hash digest
SHA256 3a21d7fe7462dfbccd0c0f24088b5ddba50cb24dd0ff415396a8b0dde05b2746
MD5 d414bb3bc8356c13c5bc697f33824f65
BLAKE2b-256 b78afcdaa56ed151f64770f0d443b7b6be4d82282faf0ada540df44086a1ebd8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for scloop-0.1.28-cp312-cp312-macosx_14_0_arm64.whl
Algorithm Hash digest
SHA256 3fd12045b890fb8d51476fba6949d596223c4e0c0db36d9daf44468a6ae18da9
MD5 f2e6e568b9ef26fe7734ce61fcb8da27
BLAKE2b-256 a794855016b0a6e651e3144863571ac435630483454b9efd2568d6ed286fa29b

See more details on using hashes here.

Provenance

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