| assign_terms {annotation.terms} |
R Documentation |
assign the top term by score ranking
Description
Usage
assign_terms(alignment,
term.maps = NULL,
top.best = TRUE,
direct.term.maps = FALSE,
filter.unknown = FALSE,
identities.cut = 0);
Arguments
alignment
the ncbi localblast alignment result, it can be the BestHit array or the DiamondAnnotation array.
term.maps
a R# list object of the term id mapping data: the name of each list element is the term name, and the element value is a character vector of the hit name that belongs to the corresponding term. [as list]
env
the R# runtime environment object. [as Environment]
Details
Authors
seqtoolkit
Value
a vector of the RankTerm term annotation result;
this function returns a R# error message object if the input alignment data can not be cast to a best hit or diamond annotation collection.
clr value class
Examples
[Package
annotation.terms version 1.0.0.0
Index]