Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

# SCALE v2: Single-cell integrative Analysis via latent Feature Extraction

## Installation #### install from PyPI

pip install scale-v2

#### install from GitHub

git clone git://github.com/jsxlei/scale_v2.git cd scale_v2 python setup.py install

SCALE v2 is implemented in [Pytorch](https://pytorch.org/) framework. Running SCALE v2 on CUDA is recommended if available. Installation only requires a few minutes.

## Quick Start

### 1. Command line

SCALE.py –data_list data1 data2 –batch_categories batch1 batch2

data_list: data path of each batch of single-cell dataset batch_categories: name of each batch

#### Output Output will be saved in the output folder including: * checkpoint: saved model to reproduce results cooperated with option –checkpoint or -c * adata.h5ad: preprocessed data and results including, latent, clustering and imputation * umap.png: UMAP visualization of latent representations of cells * log.txt: log file of training process

#### Useful options * output folder for saveing results: [-o] or [–outdir] * filter rare genes, default 3: [–min_cell] * filter low quality cells, default 600: [–min_gene] * select the number of highly variable genes, keep all genes with -1, default 2000: [–n_top_genes]

#### Help Look for more usage of SCALE v2

SCALE.py –help

### 2. API function

from scale import SCALE adata = SCALE(data_list, batch_categories)

Function of parameters are similar to command line options. Output is a Anndata object for further analysis with scanpy.

#### Tutorial

See document

## Previous version [SCALE](https://github.com/jsxlei/SCALE)

SCALE is still available in SCALE v2

### Command line

SCALE.py –d data –version 1

### API

from scale.extensions import SCALE_v1 SCALE_v1(data)

All the usage is the same with previous SCALE version 1.

Metadata

Release files for scale-v2 2.0.3.dev0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scale-v2 2.0.3.dev0
File Size Uploaded
scale_v2-2.0.3.dev0.tar.gz 19.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scale-v2 2.0.3.dev0
File Interpreter ABI Platform
scale_v2-2.0.3.dev0-py3-none-any.whl Python 3 none any Details

Total release size: 41.8 kB

Release files / scale_v2-2.0.3.dev0.tar.gz

Download URL scale_v2-2.0.3.dev0.tar.gz
Size 19.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7af19f1d4673c9054244619fc3885c7dc92a56484bd8736ee701eb28e3d754f5
BLAKE2b-256 checksum
How to use checksums
3297cba4d2379eccb3076eb8e0e2089499e4817a8244f91fea98f0747ffd94e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5

Release files / scale_v2-2.0.3.dev0-py3-none-any.whl

Download URL scale_v2-2.0.3.dev0-py3-none-any.whl
Size 22.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
81df2a20e0bebfa700221593f0ddaf99412bc6048f7fb73289e24f447f99999e
BLAKE2b-256 checksum
How to use checksums
4fdf7e2b2cdd437874fa406bf8b1a3134ad7e7579a83e253128fecaddf169bd7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.1.post20201107 requests-toolbelt/0.9.1 tqdm/4.50.2 CPython/3.8.5
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page