Skip to content
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

Enable data retrieval from BacDive's advanced search results #58

Closed
2 tasks done
katrinleinweber opened this issue Apr 5, 2018 · 0 comments
Closed
2 tasks done

Comments

@katrinleinweber
Copy link
Collaborator

katrinleinweber commented Apr 5, 2018

https://bacdive.dsmz.de/advsearch?advsearch=search&site=advsearch&searchparams%5B20%5D%5Bcontenttype%5D=text&searchparams%5B20%5D%5Btypecontent%5D=contains&searchparams%5B20%5D%5Bsearchterm%5D=pacific&searchparams%5B100%5D%5Bcontenttype%5D=text&searchparams%5B100%5D%5Btypecontent%5D=beginswith&searchparams%5B100%5D%5Bsearchterm%5D=Russ&searchparams%5B17%5D%5Bsearchterm%5D=Europe

is basically an SQL-like interface (see #32) that allows a CSV export. I wonder whether it would be possible to formulate the query URL in R, auto-download the offered CSV & then call retrieve_data(... , searchType = "bacdive_id") on the hits.

In any case:

  • add the advanced search to the README.Rmd as a possible source for ID lists
  • try a read_ID_list() function or retrieve_IDs(adv_search_URL = "...") as a 2nd step after manually puzzling together a query on https://bacdive.dsmz.de/advsearch
  • take semi-automatic approach: user formulates query, copy-paste URL to a BacDiveR function (i.e. retrieve_search_results()), then append ?download, readLines() & purrr::map(retrieve_data(..., searchType = "bacdive_id))
    • Problem: multiple large lists => EITHER refactor r_d to take ID vector, OR construct large list within r_s_r.
  • write vignette about this use-case after implementing Separate ReadMe & vignette(s) again #60
@katrinleinweber katrinleinweber added this to the Publication milestone Apr 7, 2018
@katrinleinweber katrinleinweber changed the title Run query against BacDive's advanced search Enable data retrieval from BacDive's advanced search results Apr 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant