"StringGraph"The StringGraph class is used to represent graphs that arise from
strings reprsenting long-read breakpoint sequences. The basic examples
are: (1) "Motif Graphs" where the edges are subtring relations, and (2)
"Decomposition Graphs" where the edges are restricted subtring relations
that decompose a long read.
MotifGraph(motifNodes, alfa, name = "motif")
DecompositionGraph(decomp, alfa, motifNodes, name = "decomp")
exportSG(sg, outdir)
# S4 method for StringGraph,ANY
plot(x, y, ...)The MotifGraph and DecompositionGraph functions return a
new object of the StringGraph class. The plot method and
exportSG functions return nothing and are called for their side
effects.
Objects should be defined using the MotifGraph or
DecompositionGraph constructor. You typically pass in a
"motifNodes" object, which is a list of sequence-strings separated by
length, along with some auxiliary information.
A list of node names and counts, separated by
length. In particular, motifNodes[[L]] should contain the
nodes of length L.
A Cipher object.
A character vector of length one.
A decomposition object; see details.
An object of the StringGraph class.
A chara cter string, the name of the output directory.
An object of the StringGraph class.
Anything; it is ignored.
Extra graphical parameters.
name:A character vector of length one.
edgelist:A matrix representing a graph as a list of edges.
nodelist:A matrix representing the nodes of the graph, along with their properties.
graph:An igraph object.
layout:A matrix containing x-y locations for the nodes.
Kevin R. Coombes <krc@silicovore.com>