create_species_id_table: Create a data frame of species IDs (3-5-character...

View source: R/utils.R

create_species_id_tableR Documentation

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

Description

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))

almeidasilvaf/syntenet documentation built on Oct. 12, 2024, 5:51 p.m.