Skip to main content

A package to extract and merge Orphanet data from XML files.

Project description

Orphanet Explorer

A Python package for processing and merging Orphanet XML data files. This package provides tools to extract, transform, and combine data from various Orphanet XML files into a unified dataset.

Features

  • Process multiple Orphanet XML file types
  • Extract phenotype, functional consequences, natural history, and epidemiological data
  • Merge datasets with intelligent handling of common columns
  • Type-safe operations with comprehensive error handling
  • Configurable output formats and locations

Installation

pip install orphanet_explorer

You can download data from https://www.orphadata.com/orphanet-scientific-knowledge-files/

Quick Start

from orphanet_explorer import OrphanetDataManager

# Initialize processor
processor = OrphanetDataManager(output_dir="output")

# Define input files
xml_files = {
    "phenotype": "data/en_phenotype.xml",
    "consequences": "data/en_funct_consequences.xml",
    "natural_history": "data/en_nat_hist_ages.xml",
    "references": "data/references.xml",
    "epidemiology": "data/en_epidimiology_prev.xml"
}

# Process files and save merged dataset
merged_data = processor.process_files(
    xml_files,
    output_file="merged_orphanet_data.csv"
)

Use Cases

  1. Medical Research

    • Analyze disease phenotypes and their frequencies
    • Study disease inheritance patterns
    • Investigate prevalence across different populations
  2. Clinical Applications

    • Build reference databases for rare diseases
    • Support diagnostic systems
    • Track epidemiological patterns
  3. Data Integration

    • Combine Orphanet data with other medical databases
    • Create comprehensive disease profiles
    • Support machine learning models for disease classification

Basic Usage

# Process a single file type
processor = OrphanetDataManager()
root = processor.parse_xml("phenotype.xml")
phenotype_data = processor.extract_phenotype_data(root)

# Merge multiple datasets
merged_data = processor.merge_datasets([df1, df2, df3])

Contributing

We welcome contributions!

License

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

Acknowledgments

  • Orphanet for providing the source data
  • The rare disease research community

Citation

If you use this package in your research, please cite:

@software{orphanet_processor,
  author = A. Tinakoua,
  title = {Orphanet Explorer: A Python Package for Processing Orphanet Data},
  year = {2025},
  url = {https://github.com/atinak/orphanet_explorer}
}

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

orphanet_explorer-0.2.0.tar.gz (795.3 kB view details)

Uploaded Source

Built Distribution

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

orphanet_explorer-0.2.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file orphanet_explorer-0.2.0.tar.gz.

File metadata

  • Download URL: orphanet_explorer-0.2.0.tar.gz
  • Upload date:
  • Size: 795.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.9.21

File hashes

Hashes for orphanet_explorer-0.2.0.tar.gz
Algorithm Hash digest
SHA256 a158c6c1109a90881bb335bc8f44ef4b03d8cc808999c2a86d55e59ce2096950
MD5 f894454844a52135f5d21e28c1dddde0
BLAKE2b-256 fac4da6d417f78cad0516e43edd0d442ca0f1112998b0bf7aa7f5367ff21eca2

See more details on using hashes here.

File details

Details for the file orphanet_explorer-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for orphanet_explorer-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 98e3bdb1529933fa57de505797671e586c1a19a2f34349f83ada799b93d77d1e
MD5 f39786ce1de1bed0a0b7a55a2050e425
BLAKE2b-256 ebf6f32ad8f93f84b19f878a9dc81d35ba5146848b63539c2077ca54674e2a1c

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