Skip to contents

Transforms a gocats ancestors JSON list to a GO annotation object.

Usage

gocats_to_annotation(
  ancestors_file = "ancestors.json",
  namespace_file = "namespace.json",
  annotation_type = "gocatsGO",
  feature_type = "Uniprot",
  feature_translation = NULL
)

Arguments

ancestors_file

the ancestors.json file from gocats (required)

namespace_file

the namespace.json file from gocats (optional)

annotation_type

what annotations are we making? (gocatsGO by default)

feature_type

what type of features are we using (assume Uniprot)

feature_translation

a data.frame used to convert the feature IDs

Value

annotation object