Checks for Differences Between Identifiers in Metadata and DNA Sequence Files
Source:R/check_identifiers.R
check_identifiers.Rdcheck_identifiers() checks for differences between identifiers in metadata
and DNA sequence files.
Details
check_identifiers() is a helper function to check for inconsistencies
between identifiers in metadata and DNA sequence files. It performs three
checks, in order:
every identifier in
dnamust be present indata; any missing identifiers are reported and abort the function.dnamust not contain duplicated identifiers; any duplicates are reported and abort the function.datamust not contain duplicated identifiers. Duplicated identifiers that also occur indnaare reported and abort the function, since they make matching sequences to metadata ambiguous. Duplicated identifiers that do not occur indnaare reported as a warning only, since they do not affect matching.