| graph_node_set | R Documentation |
Low-level constructors for the core S3 classes used throughout splitGraph.
graph_node_set(
data = NULL,
schema_version = .depgraph_schema_version,
source = list()
)
graph_edge_set(
data = NULL,
schema_version = .depgraph_schema_version,
source = list()
)
dependency_graph(nodes, edges, graph, metadata = list(), caches = list())
new_depgraph_nodes(
data = NULL,
schema_version = .depgraph_schema_version,
source = list()
)
new_depgraph_edges(
data = NULL,
schema_version = .depgraph_schema_version,
source = list()
)
new_depgraph(nodes, edges, graph = NULL, metadata = list(), caches = list())
graph_query_result(
query = "",
params = list(),
nodes = NULL,
edges = NULL,
table = NULL,
metadata = list()
)
dependency_constraint(
constraint_id,
relation_types,
sample_map,
transitive = TRUE,
metadata = list()
)
split_constraint(
strategy,
sample_map,
recommended_downstream_args = list(),
metadata = list()
)
data |
A data frame matching the canonical schema for nodes or edges. |
schema_version |
Schema version string stored on the object. |
source |
Optional source metadata. |
nodes, edges |
A |
graph |
An internal |
metadata, caches, params, recommended_downstream_args |
Named lists with auxiliary metadata. |
query |
Query label stored on a |
table |
Tabular query result payload. |
constraint_id, relation_types, transitive |
Fields describing a dependency constraint. |
sample_map |
Sample-level mapping table for constraints. |
strategy |
Split strategy identifier. |
An S3 object corresponding to the constructor that was called.
meta <- data.frame(
sample_id = c("S1", "S2"),
subject_id = c("P1", "P2")
)
samples <- create_nodes(meta, type = "Sample", id_col = "sample_id")
subjects <- create_nodes(meta, type = "Subject", id_col = "subject_id")
edges <- create_edges(
meta,
from_col = "sample_id",
to_col = "subject_id",
from_type = "Sample",
to_type = "Subject",
relation = "sample_belongs_to_subject"
)
nodes_set <- graph_node_set(rbind(samples$data, subjects$data))
edges_set <- graph_edge_set(edges$data)
nodes_set
edges_set
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.