Concept sets can be serialized to json or csv file formats. `readConceptSet` reads the files into R as Capr concepts sets.

readConceptSet(path, name, id = NULL)

Arguments

path

Name of concept set file to read in csv or json format. (e.g. "concepts.json")

name

the name of the concept set

id

the id for the concept set (keep?)

Examples

library(Capr)
path <- tempfile("concepts", fileext = ".json")
concepts <- cs(1, 2, descendants(4, 5), exclude(descendants(6, 7)), name = "test")
writeConceptSet(concepts, path = path)

concepts <- readConceptSet(path)