| query_node_type | R Documentation |
Query graph neighborhoods, typed nodes and edges, path structure, projected
sample dependency components, and direct shared dependencies within a
dependency_graph.
query_node_type(graph, node_types, ids = NULL)
query_edge_type(graph, edge_types, node_ids = NULL)
query_neighbors(
graph,
node_ids,
edge_types = NULL,
node_types = NULL,
direction = c("out", "in", "all")
)
query_paths(
graph,
from,
to,
edge_types = NULL,
node_types = NULL,
mode = c("out", "in", "all"),
max_length = NULL
)
query_shortest_paths(
graph,
from,
to,
edge_types = NULL,
node_types = NULL,
mode = c("out", "in", "all")
)
detect_dependency_components(
graph,
via = c("Subject", "Batch", "Study", "Timepoint", "Assay", "FeatureSet", "Outcome"),
edge_types = NULL,
min_size = 1
)
detect_shared_dependencies(
graph,
via = c("Subject", "Batch", "Study", "Timepoint"),
samples = NULL
)
graph |
A |
node_types |
Optional node types used to filter node results or allowed path members. |
ids |
Optional node identifiers used to further restrict
|
edge_types |
Optional edge types used to filter the traversal graph or edge table. |
node_ids, from, to |
Node identifiers to use as query seeds or endpoints. |
direction, mode |
Traversal direction. |
max_length |
Maximum path length (number of edges) for
|
via |
Dependency node types used for sample-level dependency detection. |
min_size |
Minimum component size retained by
|
samples |
Optional sample identifiers or sample node IDs used to restrict direct shared-dependency detection. All requested samples must resolve successfully. |
When a samples subset is supplied, partial matching is not allowed:
unknown sample identifiers raise an error rather than being silently
dropped.
Each function returns a graph_query_result. Use
as.data.frame() to obtain the tidy result table.
meta <- data.frame(
sample_id = c("S1", "S2", "S3"),
subject_id = c("P1", "P1", "P2"),
batch_id = c("B1", "B2", "B1")
)
g <- graph_from_metadata(meta)
query_node_type(g, "Sample")
query_neighbors(g, "sample:S1", direction = "out")
detect_shared_dependencies(g, via = "Subject")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.