Fixed the output od bold_seq() so it returns the gene marker instead of the id and keeps the accession number when present.
Output is now a data.frame and the names of the columns match the bold API documentation. The @return in the bold_seq documentation was updated accordingly.
Some code in split_fasta() seemed to be redundant and was removed/replaced.
I tried optimizing both functions for time and memory usage.
The test files for test-bold_seq.R, test-bold_identify_parent.R and README.Rmd files were updated to match the new output.
Related Issue
79
Example
library(bold)
res <- bold_seq(taxon='Coelioxys')
head(res)
Description
Fixed the output od bold_seq() so it returns the gene marker instead of the id and keeps the accession number when present. Output is now a data.frame and the names of the columns match the bold API documentation. The @return in the bold_seq documentation was updated accordingly. Some code in split_fasta() seemed to be redundant and was removed/replaced. I tried optimizing both functions for time and memory usage. The test files for test-bold_seq.R, test-bold_identify_parent.R and README.Rmd files were updated to match the new output.
Related Issue
79
Example
Tests