Giter Club home page Giter Club logo

hpo-disease-info-fetcher's Introduction

Disease Information Fetcher

Disease Information Fetcher is a Python program that searches for diseases and retrieves information about them, including associated symptoms, using the Human Phenotype Ontology (HPO) API. It uses fuzzy string matching to select the closest matching disease when multiple results are found.

Requirements

  • Python 3.6 or higher

Installation

  1. Clone the repository:
git clone https://github.com/santimarro/disease-info-fetcher.git
  1. Change into the disease-info-fetcher directory:
cd disease-info-fetcher
  1. Install the required Python libraries:
pip install -r requirements.txt

Usage

  1. Import the get_disease_data function from disease_info_fetcher.py:
from disease_info_fetcher import get_disease_data
  1. Provide a list of disease names that you want to search for:
disease_names = ["Marfan syndrome", "Ehlers-Danlos syndrome"]
  1. Call the get_disease_data function with the list of disease names. This function returns a list of dictionaries containing the disease information and associated symptoms:
disease_data = get_disease_data(disease_names)
  1. Process the returned disease_data as needed. Each dictionary in the list contains the disease information and its associated symptoms. For example, you can print the disease data:
print(disease_data)

Example

from disease_info_fetcher import get_disease_data

disease_names = ["Marfan syndrome", "Ehlers-Danlos syndrome"]
disease_data = get_disease_data(disease_names)
print(disease_data)

This example demonstrates how to search for two diseases, "Marfan syndrome" and "Ehlers-Danlos syndrome," and print the retrieved information and associated symptoms.

License

This project is licensed under the MIT License. See the LICENSE file for details.


hpo-disease-info-fetcher's People

Contributors

santimarro avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.