-
Notifications
You must be signed in to change notification settings - Fork 75
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
Not able to fetch metadata for ERR* ids associated with ArrayExpress #85
Comments
Is it possible to somehow detect that an ID comes from ArrayExpress? Or do you think the solution will it be try one thing first and then the other? |
I haven't looked properly but it would be neat if we could do this for any |
The above error message
is already the result of special casing 204 so that wouldn't be too hard to try another API call there. Of course, it'd be nice to somehow do this for a group of IDs since it's probably likely that a user will request multiple IDs from the same ArrayExpress experiment. |
I just tried this again and now
succeeds. 🤷🏼♂️ |
Description of feature
The current implementation in the pipeline assumes that all
ERR*
ids are available via the ENA API. We fetch the metadata using the URL below:https://www.ebi.ac.uk/ena/portal/api/filereport?accession=ERR9539214&result=read_run&fields=run_accession%2Cexperiment_accession
However, this URL doesn't work for
ERR9539214
and returns the error below from this code in the pipeline:On closer inspection, this id is associated with an ArrayExpress experiment for E-MTAB-11611 and if you click the link to E-MTAB-11611.sdrf.txt in that page we get all of the metadata for
ERR9539214
as well as other ids associated with that submission. This includes FTP links for direct download which work when you try to download locally so the data isn't restricted to download even though it is patient data e.g.ArrayExpress has it's own API as documented here and you can access all of the metadata for samples associated with an ArrayExpress id in XML format with the URL below:
https://www.ebi.ac.uk/arrayexpress/xml/v3/experiments/E-MTAB-11611/samples
Still abit puzzled as to why we can't get any metadata for
ERR9539214
from the ENA API because that it's a native id for that database.We should look into this further and add support for ArrayExpress ids too.
The text was updated successfully, but these errors were encountered: