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)
Name of concept set file to read in csv or json format. (e.g. "concepts.json")
the name of the concept set
the id for the concept set (keep?)
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)