Skip to content
This repository was archived by the owner on Nov 1, 2025. It is now read-only.

azimgivron/genemap2-parser

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GeneMap2-Parser âš¡

Overview

This script parses the genemap2.txt file from OMIM and extracts gene-related data, including phenotypes and inheritance information. The parsed output is serialized into a .pickle file for efficient reuse.

Installation

pip install git+https://github.com/OMIM-org/genemap2-parser.git

Usage

parseGeneMap2 -i path/to/genemap2.txt -o path/to/output/

Arguments

  • -i, --input_file (Required) Path to genemap2.txt
  • -o, --output_path (Optional) Output directory (default: current directory)

Example

parseGeneMap2 -i genemap2.txt -o output_dir/

Output 💾

A output.pickle file containing extracted gene and phenotype data is created in the specified directory.

To read the output:

import pickle
with open("output_dir/output.pickle", "rb") as f:
    data = pickle.load(f)
print(data[:5])  # First 5 entries

Useful Links

Contributors

  • Givron Azim 🚀

About

Sample parser for the OMIM genemap2.txt file

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%