View source: R/autism_details.R
graph2paths | R Documentation |
produce list of vectors of (shortest) paths from root to all nodes in gr
graph2paths(gr, root = "http://www.ifomis.org/bfo/1.1#Entity", excise = NULL)
gr |
graphNEL (package graph) instance representing an ontology |
root |
character(1) node from which to produce paths |
excise |
character() or NULL, path steps to exclude |
if (!requireNamespace("graph")) stop("install graph package from Bioconductor to use this function")
jpath = system.file("json", "aut.json.gz", package="ontoProc")
cg = jowl2classgraph(jpath,
dropstrings = "http://purl.org/autism-ontology/1.0/autism-rules.owl#")
evec = grep("span\\#|snap\\#", graph::nodes(cg), value=TRUE)
paths = graph2paths(cg, excise=evec)
tail(paths)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.