-
Notifications
You must be signed in to change notification settings - Fork 12
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
new API for BacDiveR #96
Comments
I need to simplify that scheme to a flowchart with only high-level function calls & server responses:
|
An alternative, simpler idea might be to provide the above-mentioned "front" functions in parallel to (or on top of) the current
This might lend itself to later converting this into object-oriented code.
|
7 tasks
Or
|
katrinleinweber
added a commit
that referenced
this issue
Apr 29, 2019
katrinleinweber
added a commit
that referenced
this issue
Apr 29, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, the API looks as follows:
retrieve_search_results(queryURL)
retrieve_data(searchTerm, searchType = "…")
where…
is exactly the "API endpoint" of BacDive's web service.I'm considering a more stringent design, that
retrieve_by_culture(collection_no = "…")
…_sequence(accession ="…")
…_taxon(name = "…")
(maybe withgenus = "…", species = "…", subspecies = "…"
separately & optionally)…_by_id()
through thebacdive_id
endpoint from the user. The 3 "front" functions above could return the URLs or IDs to be downloaded, which could be fed into…_by_id()
.Additional considerations:
download
as the verb (although less common thanretrieve
)BD_
orbd_
in front like ROpenSci's function naming guide suggests. This would be a workable abbreviation forBacDive data
, but is already in use by other packages (not with_download
or_retrieve
, though).BacDive_…
orbacbive_…
?Feedback on this major change, the naming details, etc. is very welcome :-)
The text was updated successfully, but these errors were encountered: