Search the provided Accession Search Database to find database terms that match the provided search terms.

performAccessionSearch(
  db,
  terms,
  config = getBBOption("accession_search_config")
)

Arguments

db

Accession Search Database

terms

Vector of accession search terms

config

Accession Search Configuration

Value

a tibble containing the search results. Example:

search_termsearch_routinegermplasm_namegermplasm_iddatabase_termdatabase_term_type
jerryExact MatchJERRY230227JERRYname
SY-GoldExact Match00X0100-51232633Sy-Goldsynonym
PU0128A1_36Remove Punctuation0218A1-36238801PU0128A1-36synonym

Details

The accession search can be configured by providing a set of accession search configuration properties, which is a nested list with the following names:

NAMEDEFINITIONDEFAULT VALUE
database_termsa list with the names: name, synonyms, accession_numbers
database_terms$nameflag to include accession names in the accession searchTRUE
database_terms$synonymsflag to include accession synonyms in the accession searchTRUE
database_terms$accession_numbersflag to include the accession numbers in the accession searchTRUE
search_routinesa list with the names: exact, punctuation, substring, prefix, edit_distance
search_routines$exactflag to use the exact name search routine in the accession searchTRUE
search_routines$punctuationflag to use the punctuation search routine in the accession searchTRUE
search_routines$substringflag to use the substring search routine in the accession searchTRUE
search_routines$prefixflag to use the prefix search routine in the accession searchFALSE
search_routines$edit_distanceflag to use the edit distance search routine in the accession searchFALSE
search_routine_optionsa list that has names of the supported search routines with values set as a list of the search routine options
search_routine_options$substring$substring_length_minthe minimum length of a term to be included as a substring match3
search_routine_options$prefix$prefixesdefault prefixes to include[]
search_routine_options$prefix$find_db_prefixesscan the database terms to find common prefixesTRUE
search_routine_options$prefix$prefix_length_minwhen finding db prefixes, the minimum length of a prefix to include2
search_routine_options$prefix$prefix_length_maxwhen finding db prefixes, the maximum length of a prefix to include5
search_routine_options$prefix$thresholdwhen finding db prefixes, the minimum number of times a prefix is used before it is included250
search_routine_options$edit_distance$max_edit_distancethe maximum number of changes for the edit distance comparison2
case_sensitiveflag to perform a case-sensitive searchTRUE
return_recordsflag to include the germplasm records with the search resultsFALSE