Description Usage Arguments Value Examples
View source: R/as_annotation_list.R
Convert an annotation data.frame to a named list, where the names of the items are the annotated targets and the entries are unique annotations.
1 | as_annotation_list(annotations, termCol, keyCol)
|
annotations |
a data frame containing some annotations |
termCol |
the name of the column that contains the annotation terms (e.g. Gene Ontology terms) |
keyCol |
the name of the column that contains the annotated targets (e.g. UniProt accessions) |
a named list where the names are found in keyCol and the entries are unique items from termCol
1 2 3 4 | # read a GOA file
go <- read_gpa("goa_human.gpa.gz")
# convert to a named annotation list
ann <- as_annotation_list(go, "GO.ID", "UNIPROT")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.