R/data_curation.R
dot-generateDBname.RdThis function creates an identifier by combining abbreviated species names or taxon IDs. For species names, it uses the first letter of the genus and the first two letters of the species. For single-word names, it appends "sp". For numeric taxon IDs, it prefixes them with "tid_".
.generateDBname(user_bacs)A single character string representing the combined shortened name.
.generateDBname(c("90371", "Bacillus subtilis"))
#> Error in .generateDBname(c("90371", "Bacillus subtilis")): could not find function ".generateDBname"
.generateDBname(c("12345", "Escherichia coli", "Lactobacillus"))
#> Error in .generateDBname(c("12345", "Escherichia coli", "Lactobacillus")): could not find function ".generateDBname"