Skip to main content

Disease cell atlas approximations, python API

Project description

Atlasapprox-Diseases

atlasapprox-diseases is a Python package for accessing disease cell atlas approximations.

Installation

You can install the package from PyPI:

pip install atlasapprox-disease

Usage

Example 1:

To look at differential cell type abundance of a disease of interet

from atlasapprox_diseases import API

api = API()
result = api.diff_celltype_abundance(disease_keyword="flu")
print(result)

Expected Output

[
    {
        "disease": "influenza",
        "dataset_id": "de2c780c-1747-40bd-9ccf-9588ec186cee",
        "cell_type": "blood cell",
        "normal_count": 309,
        "disease_count": 216,
        "total_count": 525,
        "normal_pct": 58.857142857142854,
        "disease_pct": 41.14285714285714,
        "delta_fraction": -17.714285714285715
    },
    {
        ...
        "cell_type": "erythrocyte",
        "normal_count": 184,
        "disease_count": 309,
        ...
    } ...
Example 2:

To look at top N differentially expressed genes of a disease of interet

result = api.api.diff_gene_expression(disease_keyword="immunodeficency")
print(result)

Expected output

[
    {
        "disease": "common variable immunodeficiency",
        "dataset_id": "a5d95a42-0137-496f-8a60-101e17f263c8",
        "condition": "common variable immunodeficiency",
        "cell_type": "naive B cell",
        "regulation": "up",
        "feature_name": "ENSG00000044574",
        "expr_normal": 0.676017701625824,
        "expr_disease": 4.170171737670898,
        "frac_normal": 0.09770114719867706,
        "frac_disease": 0.21674877405166626,
        "log2_fc": 1.6251747608184814,
        "delta_change": 3.4941539764404297
    },
    {
        ...
        "feature_name": "ENSG00000168734",
        ...
    },

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

atlasapprox_disease-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

atlasapprox_disease-0.1.0-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file atlasapprox_disease-0.1.0.tar.gz.

File metadata

  • Download URL: atlasapprox_disease-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Darwin/21.6.0

File hashes

Hashes for atlasapprox_disease-0.1.0.tar.gz
Algorithm Hash digest
SHA256 48ef10a848b2197b5233d92ced3636b40a1bddb903ec83aaba77e543e699b2bb
MD5 f88173ab12911e5409ebd6fccc0839b8
BLAKE2b-256 8ad2a3cb8b93844a0f334b768fba129cd5aae311574cd0e07a0aa412657d371d

See more details on using hashes here.

File details

Details for the file atlasapprox_disease-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for atlasapprox_disease-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2805e7b2b3c89865956768cb9e7ae782a1d380e64385a4a35562b16c275d79f2
MD5 15bd11f3a545975ecd0457635d8b1bf8
BLAKE2b-256 0556b5051a05a029c07a668251f8b5ce685232dd195667ba1bf59f397a59b1f9

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