Unipressed
Unipressed copied to clipboard
Specifying the organism whe using IdMappingClient
Hello, thanks a lot for developing this package!
I am using Unipressed as part of a package I am developing with my team.
I was wondering if it was possible to specify the organism when translating identifiers like in the following case:
request = IdMappingClient.submit(
source="Gene_Name", dest="UniProtKB-Swiss-Prot", ids={ "BET1"}
)
time.sleep(1) # Sleep for 1 seconds
list(request.each_result())
this output different translation from Gene_Name to Uniprot, including homologs:
''' {'from': 'BET1', 'to': 'A0A0C6E0I7'}, {'from': 'BET1', 'to': 'O13932'}, {'from': 'BET1', 'to': 'O15155'}, {'from': 'BET1', 'to': 'O35623'}, {'from': 'BET1', 'to': 'P22804'}, {'from': 'BET1', 'to': 'Q62896'} <-- not interested '''
Is it possible to add a flag to filter out all the translations that do not refer to a specific organism?
Thanks a lot for your help!