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

Update BOLD_web_hack.R #19

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

OndroV
Copy link
Contributor

@OndroV OndroV commented Apr 1, 2020

input+output.zip

  • New option to use output from Bold identification with Species Level Barcode Records database by setting db = "sp". With default options ( db="all" ) it should work just as original code does. With db="sp", the script expects input in format of species level database.
    *see attachment for input and output of Bold_web_hack("BOLDtest.txt",db="sp")
    *if db is messed up, you either get an error or table full of NAs

Other minor optimizing changes are: 

  • one write.csv(temp_tab,...) is after the if, instead of two inside the if
  • OTU <- sub(...) now gives "OTU_1234"; previously it gave "Query: OTU_1234"
  • object whois_num removed, because it wasn't used anywhere in the code and it was identical with whois

+ Option to use Bold's Species Level Barcode Records database by setting db = "sp"
* "OTU <- sub(...)" now gives "OTU1234"; previously it gave "Query: OTU1234"
- object whois_num removed, because it wasn't used anywhere in the code and it was identical with whois
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant