Skip to main content

No project description provided

Project description

IDeRare-Pheno

CI PyPI License Streamlit

IDeRare or "Indonesia Exome Rare Disease Variant Discovery Pipeline" is a simple and ready to use variant discovery pipeline to discover rare disease variants from exome sequencing data.

This repository is the first part of IDeRare workflow for phenotype analysis. For complete pipeline for phenotype-genotype analysis, kindly refer to IDeRare Github repository.

Authored by

Ivan William Harsonoa, Yulia Arianib, Beben Benyaminc,d,e, Fadilah Fadilahf,g, Dwi Ari Pujiantob, Cut Nurul Hafifahh

aDoctoral Program in Biomedical Sciences, Faculty of Medicine, Universitas Indonesia, Jakarta, Indonesia.
bDepartment of Medical Biology, Faculty of Medicine, Universitas Indonesia, Jakarta, Indonesia.
cAustralian Centre for Precision Health, University of South Australia, Adelaide, SA, 5000, Australia.
dUniSA Allied Health and Human Performance, University of South Australia, Adelaide, SA, 5000, Australia.
eSouth Australian Health and Medical Research Institute (SAHMRI), University of South Australia, Adelaide, SA, 5000, Australia.
fDepartment of Medical Chemistry, Faculty of Medicine, Universitas Indonesia, Jalan Salemba Raya number 4, Jakarta, 10430, Indonesia.
gBioinformatics Core Facilities - IMERI, Faculty of Medicine, Universitas Indonesia, Jalan Salemba Raya number 6, Jakarta, 10430, Indonesia .
hDepartment of Child Health, Dr. Cipto Mangunkusumo Hospital, Faculty of Medicine, University of Indonesia, Jakarta, Indonesia.

Note: Currently IDeRare paper is being considered journal submission. The citation will be updated once the paper is published.

Quick links

What does it do?

This script is recommended if you would like to do conversion, linkage analysis, similarity scoring, and gene-disease recommendation based on the phenotype data provided at clinical_data.txt. Full feature :

  1. Convert the phenotype data to HPO code (accept mixed SNOMED, LOINC, and HPO code)
  2. Similarity scoring of differential diagnosis
  3. Linkage analysis of differential diagnosis (accept mixed SNOMED, ICD-10, ORPHA, OMIM code), include dendrogram tree visualization.
    • This should help clinician to systematically doing work-up and excluding similar diagnosis together based on the patient's phenotype.
  4. Gene and disease recommendation based on the phenotype data similarity scoring between phenotype and OMIM gene and disease databank.
  5. Linkage analysis of recommended causative gene and disease based on phenotype data (include dendrogram tree visualization).
    • This should help clinician to explore / enrich their differential diagnosis based on the patient's phenotype.
  6. Example of the clinical data provided at Clinical Information Example section

Installation

iderare-pheno requires Python 3.8 or later.

Installing with pip

iderare-pheno is available on PyPI. Just run

pip install iderare-pheno

Installing from source

To install iderare-pheno from source, first clone the repository:

git clone https://github.com/ivanwilliammd/iderare-pheno.git
cd iderare_pheno

Then run

pip install -e .

Importing the library

from iderare_pheno.converter import term2omim, term2orpha, term2hpo, batchconvert
from iderare_pheno.simrec import hpo2omim_similarity, omim_recommendation, hpo2name, omim2name
from iderare_pheno.utils import linkage_dendrogram, list2tsv, generate_yml

As the complete readthedocs.io is being finalized, please kindly refer to this Interactive Playbook Example

Note : for Streamlit implementation, use iderare_pheno.streamlit_utils instead of iderare_pheno.utils, this was done to prevent file to automatically saving and showing dendrogram in Streamlit.

from iderare_pheno.streamlit_utils import linkage_dendrogram, list2tsv, generate_yml

For Python FastAPI implementation and FHIR code extraction / parsing and deploying wsgi app, ensure you have installed the dependencies below:

pip install fastapi uvicorn a2wsgi

Then prepare your passenger wsgi app and main FastAPI app as below:

passenger_wsgi.py

import os
import sys
from a2wsgi import ASGIMiddleware

# Adjust the path to your FastAPI application directory if needed
app_dir = os.path.join(os.path.dirname(__file__), 'app')
sys.path.insert(0, app_dir)

# Import your FastAPI application
from app.main import app  # Assuming your FastAPI app instance is named 'app'

# Application callable for Passenger WSGI
def application(environ, start_response):
    return ASGIMiddleware(app)(environ, start_response)

app/main.py

from fastapi.responses import RedirectResponse
from iderare_pheno.fhir_parser import *

@app.get("/")
async def welcome():
    return RedirectResponse(status_code=302, url="/docs")

@app.get("/health")
async def health() -> Response :
    return {"status_code" : 200, "detail" : "The services is running, try to explore the API from Postman Collection"}

if __name__ == "__main__":
    import uvicorn
    uvicorn.run(app, host="0.0.0.0", port=8000)

Now you could access your http://localhost:8000 and redirected to Swagger to see the documentation of the available FastAPI endpoint. Demo example could be accessed via Postman Collection at here

Team

iderare-pheno is developed and maintained by the author(s), To learn more about who specifically contributed to this codebase, see our contributors page.

License

iderare-pheno license is derived from IDeRare

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

iderare_pheno-0.6.2.tar.gz (10.2 MB view details)

Uploaded Source

Built Distribution

iderare_pheno-0.6.2-py3-none-any.whl (10.4 MB view details)

Uploaded Python 3

File details

Details for the file iderare_pheno-0.6.2.tar.gz.

File metadata

  • Download URL: iderare_pheno-0.6.2.tar.gz
  • Upload date:
  • Size: 10.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.14

File hashes

Hashes for iderare_pheno-0.6.2.tar.gz
Algorithm Hash digest
SHA256 869359b21506b6b799cab931fa24a6c573e3a8261e87b590f2cff1cecefd50dd
MD5 4fb6b6d7d1cc6f129959c64909763758
BLAKE2b-256 df1754872d41de8c78c16cf43b4c837d1b25889901d88c8579ac3eefa68b0ce4

See more details on using hashes here.

File details

Details for the file iderare_pheno-0.6.2-py3-none-any.whl.

File metadata

File hashes

Hashes for iderare_pheno-0.6.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8f02035e5113009af0f7bf29e11885d3035e03d4ec5a1d278875fb4e05d19d8
MD5 e6f203576ba532ccd24b619c4c0727a3
BLAKE2b-256 e1b7914f2d009469e479a0cad19496b8af8d471a57d5d65c41ad4d654024d41e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page