This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Is there a way to map Medgen # to OMIM # programmatically?

I want to know which OMIM # is equivalent to a given MedGen #

If I manually search OMIM 145600 in MedGen, it returns a result for Concept ID: C2930980

I want to be able to programmatically take a list of OMIM # and get all the Medgen Concept ID's

Thanks!

enter image description here

medgen omim

1 answer

just use the mapping file from the NCBI: https://ftp.ncbi.nlm.nih.gov/pub/medgen/MedGen_HPO_OMIM_Mapping.txt.gz

$ wget -qO - "https://ftp.ncbi.nlm.nih.gov/pub/medgen/MedGen_HPO_OMIM_Mapping.txt.gz" | gunzip -c | awk -F '|' '($2==145600) {print $1;}' | sort | uniq
C2930980

Log in to answer this question.