as_annotation_list: Convert an annotation data.frame to a named list, where the...

Description Usage Arguments Value Examples

View source: R/as_annotation_list.R

Description

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.

Usage

1
as_annotation_list(annotations, termCol, keyCol)

Arguments

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)

Value

a named list where the names are found in keyCol and the entries are unique items from termCol

Examples

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

skinnider/flavin documentation built on May 6, 2019, 10:49 a.m.