Skip to contents

Create a data frame of species IDs (3-5-character abbreviations)

Usage

create_species_id_table(species_names)

Arguments

species_names

A character vector of names extracted from the seq or annotation lists, which can be extracted with names(seq) or names(annotation).

Value

A 2-column data frame with the following variables:

species_id

Character, species ID consisting of 3-5 characters.

species_name

Character, original names passed as input.

Examples

# Load 'seq' list (list of AAStringSet objects)
data(proteomes)

# Create ID table
create_species_id_table(names(proteomes))
#>   species_id species_name
#> 1        Olu Olucimarinus
#> 2        Osp    OspRCC809