Closed jonathanronen closed 3 years ago
Seems like a bug in our python client.
For the moment, if you have a list of Ensembl gene IDs which you would like to use the "querymany" service:
Try:
mg.querymany(['ENSG00000034510'], scopes='ensembl.gene')
This will temporarily solve the issue. We will let you know when the bug is fixed. Thanks!
Thanks @kevinxin90. Can confirm that setting scopes=
rather than scope=
solves it!
@newgene the behavior seems to be expected. we have QUERY_KWARGS['POST']['scopes']['default']=['_id']
, should we adjust this endpoint default settings to match the setting of annotation endpoint(ANNOTATION_DEFAULT_SCOPES = ['_id', 'ensembl.gene']
) to accommodate this use case?
@namespacestd0 yes, let's set the default scopes to ['_id', 'ensembl.gene']
. With this default scopes
, querymany
works the same as getgenes
, but allows users to set different scopes
for more flexible queries.