Skip to main content

The update to SCSpace provides more flexible version options

Project description

FlexScspace

Python >=3.8 PyPI Version License

Multi-Version Enhanced scRNA-seq Spatial Reconstruction Toolkit

Flexible Versioned Spatial Analysis Toolkit
Extending scSpace with multiple algorithm implementations for optimal single-cell spatial reconstruction

Quick Navigation


Features

  • Six Algorithm Versions: v0 through v3c
  • Unified API: Switch versions with one parameter

Installation

pip install FlexScspace  # Requires Python≥3.8, pytorch, scanpy

Quick Start

Common Usage(v0/v1/v2/v3b/v3c)

# Initialize with selected version
from FlexScspace import VersionSelector
algorithm = VersionSelector(version="v2")
# Load data (consistent across versions)
sc_obj, st_obj = algorithm.load_data(
    sc_data_path="sc_data.csv",
    st_data_path="st_data.csv",
    spatial_key=['imagerow','imagecol']
)
# Process data
sc_obj, st_obj = algorithm.preprocess(
    sc_adata=sc_obj,
    st_adata=st_obj,
    n_features=2000)
# Spatial reconstruction
sc_obj, st_obj = algorithm.construct_pseudo_space(
    sc_adata=sc_obj,
    st_adata=st_obj,
    batch_size=16,
    epoch_num=1000
)

v3a Specific Usage

# Initialize with selected version
from FlexScspace import VersionSelector
algorithm = VersionSelector(version="v3a")
# Load data (consistent across versions)
sc_obj, st_obj = algorithm.load_data(
    sc_data_path="sc_data.csv",
    st_data_path="st_data.csv",
    spatial_key=['imagerow','imagecol']
)
# Process data
sc_obj, st_obj = algorithm.preprocess(
    sc_adata=sc_obj,
    st_adata=st_obj,
    n_features=2000,
    r_binary=r_path,
    output_dir=output_dir)
# Spatial reconstruction
sc_obj, st_obj = algorithm.construct_pseudo_space(
    sc_adata=sc_obj,
    st_adata=t_obj,
    batch_size=16,
    epoch_num=1000
)

Version Comparison

Versions Key Innovation Recommended Use Case
v0 Basic version Baseline comparisons
v1 Spatially variable gene Tissues with clear spatial gradients
v2 Implicit Neural Representation To be explored
v3.a Batch correction:CCA To be explored
v3.b Batch correction:Scanorama To be explored
v3.c Batch correction:scVi Tissues with complex organization

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

flexscspace-1.1.0.tar.gz (51.2 kB view details)

Uploaded Source

Built Distribution

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

flexscspace-1.1.0-py3-none-any.whl (64.4 kB view details)

Uploaded Python 3

File details

Details for the file flexscspace-1.1.0.tar.gz.

File metadata

  • Download URL: flexscspace-1.1.0.tar.gz
  • Upload date:
  • Size: 51.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for flexscspace-1.1.0.tar.gz
Algorithm Hash digest
SHA256 c0d9c865e45d4e762e6826af93ba083f4d46a53f4de624b61942ab2358b762cf
MD5 1d21138d996b0ef42f81f475097da7f5
BLAKE2b-256 65b68f7901168b1e6a173544c748a7478cfd7a55dbe93d57340dc4624fb9fb04

See more details on using hashes here.

File details

Details for the file flexscspace-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: flexscspace-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 64.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.8.20

File hashes

Hashes for flexscspace-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 96c41aa1944351588f2a7894d20551661dea87f0275d22e8f6ac9e0b9a59a2f2
MD5 93bf4f8c9940e65f49a842cee1ad06fc
BLAKE2b-256 7bf9f70976dfdd66247f1e47c7235b1a213a0c081eae09c2b34c72da8947c0fd

See more details on using hashes here.

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