Skip to main content

Self Supervised Tools for Single Cell Data

Project description

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
)

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

scself-0.4.7.tar.gz (38.2 kB view details)

Uploaded Source

Built Distribution

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

scself-0.4.7-py3-none-any.whl (51.4 kB view details)

Uploaded Python 3

File details

Details for the file scself-0.4.7.tar.gz.

File metadata

  • Download URL: scself-0.4.7.tar.gz
  • Upload date:
  • Size: 38.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for scself-0.4.7.tar.gz
Algorithm Hash digest
SHA256 d0660382d9a391a0db0a0adcbaf397c91b331a3e2d485e4224a4148cd03b4517
MD5 dd7cf958a70d315515de96e51c656c4f
BLAKE2b-256 b1f63d05e80e4b64e2dfae75f6f73b7477b36e751fbcd1267e9ff5b3695171e9

See more details on using hashes here.

File details

Details for the file scself-0.4.7-py3-none-any.whl.

File metadata

  • Download URL: scself-0.4.7-py3-none-any.whl
  • Upload date:
  • Size: 51.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.14

File hashes

Hashes for scself-0.4.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f4cf0ccc8a5e095ed9f258df745d4cbd21ce5d03a4a53fc771b072a9222e47ec
MD5 a4db05510140b02d44c90ee18bf52618
BLAKE2b-256 2f517eb162e47ccb38c2aaae5df9f1c81fc6f9a7dd1bccf46b54041b5a9a3097

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