Retrieve bioSamples from NCBI using url API
0
0
Entering edit mode
14 months ago
mounim1024 • 0

Hello everyone,

I was wondering and looking around in thr internet if there's any way to retrieve biosamples meta data using the url API, In fact, i need this for a script that will be implemented in django, I used the same method to retrieve bioProject metadata and it worked perfectly ( i just dynamically combined the link outils.ncbi.nlm.nih.gov/entrez/outils/eftech.fcgi + the name of database + the accession numbera), which returns an XML.

This method doesn't work for bioSamples because the developers of Entrez used a "historyId" attribute instead of the accession number for retrieving data from using the link !

I would like to get your help or guidance for any path that might be helpfull

Thanks

api sequence • 325 views
ADD COMMENT
0
Entering edit mode

Not clear what exactly you are looking to get. Can you provide an example?

ADD REPLY
0
Entering edit mode

In the case that this is a problem of conversion of the "historyID" to NCBI accession number for making the API request : you can try using biomaRt in R in which you can interchange between different identifiers. A post related to this : C: Map Protein Accession Number to Uniprot identifier in R

ADD REPLY

Login before adding your answer.

Traffic: 2142 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6