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
-
Medical Research
- Analyze disease phenotypes and their frequencies
- Study disease inheritance patterns
- Investigate prevalence across different populations
-
Clinical Applications
- Build reference databases for rare diseases
- Support diagnostic systems
- Track epidemiological patterns
-
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file orphanet_explorer-0.1.0.tar.gz.
File metadata
- Download URL: orphanet_explorer-0.1.0.tar.gz
- Upload date:
- Size: 795.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c9c5b97ccb0b425cfbbe9d4a8806d5a0fe4ecdd3761d6b2716e81508a0f0b005
|
|
| MD5 |
55f2c3e498deb2903ff9630f7910a74b
|
|
| BLAKE2b-256 |
0d5a464f08bc5515dafa3463dc8a2d3ed78f800fd6425203364a03bec86bfab1
|
File details
Details for the file orphanet_explorer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: orphanet_explorer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
97096d5099ba5cae298ede1bb0f269dd8404894a1a7b8060ef168348fe977431
|
|
| MD5 |
636bf1094d5552ab0408dac75b075121
|
|
| BLAKE2b-256 |
efc9ab11ad5d6f70aa8eb3372eee10e6e908ff256b068075ec5682b98fe3824a
|