Description Usage Arguments Value Author(s) Examples
The sequence alignment files from MalAvi name the parasite lineages differently than the rest of the database. They add a letter indicating the parasite's genus to the beginning of the lineage name and they add the parasite's morphospecies (if one exists) to the end of the name. This function removes that extra information so that one can easily match lineage names from the sequence alignments to those in the rest of the database.
1 | clean_names(lin.names, keep.genus = FALSE)
|
lin.names |
The lineage names from the sequence alignment files to convert. Can be one or many. |
keep.genus |
If set to |
If keep.genus = FALSE
it will return an object (vector) of class character
. If keep.genus = TRUE
it will return an object of class data.frame
with two columns (parasiteGenus
and Lineage_Name
).
Vincenzo A. Ellis vincenzoaellis@gmail.com
1 2 3 4 5 6 7 8 9 10 | ## download a sequence alignment file from MalAvi
seq.align <- extract_alignment("long seqs")
## lineage names are stored as rownames
lin.names <- rownames(seq.align)
head(lin.names)
## clean the names
lin.names.clean <- clean_names(lin.names)
head(lin.names.clean)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.