Skip to main content

scself

PyPI version

Self Supervised Tools for Single Cell Data

Molecular Cross-Validation for PCs arXiv manuscript

mcv(
    count_data,
    n=1,
    n_pcs=100,
    random_seed=800,
    p=0.5,
    metric='mse',
    standardization_method='log',
    metric_kwargs={},
    silent=False,
    verbose=None,
    zero_center=False
)

Noise2Self for kNN selection arXiv manuscript

noise2self(
    count_data,
    neighbors=None,
    npcs=None,
    metric='euclidean',
    loss='mse',
    loss_kwargs={},
    return_errors=False,
    connectivity=False,
    standardization_method='log',
    pc_data=None,
    chunk_size=10000,
    verbose=None
)

Implemented as in DEWÄKSS

Feature module and submodule determination using pearson correlation distance, kNN embedding, and leiden clustering

get_correlation_modules(
    adata,
    layer='X',
    n_neighbors=10,
    leiden_kwargs={},
    output_key='gene_module',
    obs_mask=None

)

get_correlation_submodules(
    adata,
    layer='X',
    n_neighbors=10,
    leiden_kwargs={},
    input_key='gene_module',
    output_key='gene_submodule',
    obs_mask=None
)

Feature module and submodule scoring

score_all_modules(
    adata,
    modules=None,
    module_column='gene_module',
    output_key_suffix='_score',
    obs_mask=None,
    layer='X',
    scaler=TruncMinMaxScaler(),
    fit_scaler=True,
    clipping=None
)

score_all_submodules(
    adata,
    modules=None,
    submodules=None,
    module_column='gene_module',
    submodule_column='gene_submodule',
    output_key_suffix='_score',
    obs_mask=None,
    layer='X',
    scaler=TruncMinMaxScaler(),
    fit_scaler=True,
    clipping=None
)

Metadata

Release files for scself 0.5.1

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

Source distribution (sdist)

Source distribution for scself 0.5.1
File Size Uploaded
scself-0.5.1.tar.gz 58.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for scself 0.5.1
File Interpreter ABI Platform
scself-0.5.1-py3-none-any.whl Python 3 none any Details

Total release size: 133.3 kB

Release files / scself-0.5.1.tar.gz

Download URL scself-0.5.1.tar.gz
Size 58.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f3feb90e5ec65e25991919b392158cff6563a15227688847fa85baee0ef1cf55
BLAKE2b-256 checksum
How to use checksums
05214c6efa73e422f42f9176ea22755bd891bda4e0c25cdc2005a9757fcb54a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release files / scself-0.5.1-py3-none-any.whl

Download URL scself-0.5.1-py3-none-any.whl
Size 74.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c0753cc8e1b99cfc1e3faa65079af571ce488c6409f149d86d9321a0ee1ff0ef
BLAKE2b-256 checksum
How to use checksums
226ba28f7becbaf8aad4f8d3f3dcf9cb65e8444f80b61298f26898885c307601
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.11

Release history Release notifications | RSS feed

This release

0.5.1 This release

2 release files

0.5.0

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.3

2 release files

0.4.2

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.0

2 release files

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