Closed ilibarra closed 4 years ago
You can do:
mg = mygene.MyGeneInfo()
mg.query('taxid:10090', fields='symbol, ensembl.gene',fetch_all=True)
This will fetch you symbols and ensemble gene ids for all mouse genes as a Python Generator.
You can then manipulate the generator as you wish.
Thank you for the prompt reply!
Dear MyGene team,
I have a user question: Is it possible to retrieve one complete mapping table between any two identifiers without having to submit gene names each time? E.g. get the full ensembl gene IDs for all symbols in mouse, or all symbols/ensembl ID pairs in human.
Something like
mg.querymany
, but without names as input. Maybemg.queryall
.Thank you for your consideration, Ignacio