-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Specifying the organism whe using IdMappingClient #35
Comments
Good question. Apparently if you are converting to curl --silent 'https://rest.uniprot.org/configure/idmapping/fields' | jq '.rules | .[] | select(.taxonId)'
{
"ruleId": 6,
"tos": [
"UniProtKB",
"UniProtKB-Swiss-Prot"
],
"defaultTo": "UniProtKB",
"taxonId": true
} More info here. I'll try to implement this when I get time. |
That would be great! Indeed I would specify the Thanks a lot for answering so quickly!! |
Okay, this is now implemented in #36. Can you please try installing it using: pip install git+https://github.com/multimeric/Unipressed@id-mapping-typing Then in Python, you can use from unipressed import IdMappingClient
request = IdMappingClient.submit(
source="Gene_Name", dest="UniProtKB", ids={"STE2"}, taxon_id=4932
) |
Looks like it is working fine! I have tried translating a couple of identifiers from genesymbol to UniProtKB-Swiss-Prot and it works perfectly (using taxon id 9606). ex:
Thanks a lot for your help! |
Thanks for checking! That feature should now be available in release 1.4.0+ |
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:
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!
The text was updated successfully, but these errors were encountered: