I have a rather large list of phenotypes (disease names), and I wish to search for genes that are associated with these phenotypes. Is there some API (either Python or R) that can be used to search, for example Ensembl w.r.t hg19, for these disease names and obtain the associated genes? I know I can type the disease manually into Ensembl's search and obtain a list of links, with some naming the particular gene, but I would like to know if there is some automated way to do this. A lot of information online is concerned with doing the reverse, mining for phenotypes associated to a set of genes.
Thanks for any advice :)