StringGraph-class | R Documentation |
"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 signature 'StringGraph,ANY'
plot(x, y, ...)
motifNodes |
A list of node names and counts, separated by
length. In particular, |
alfa |
A |
name |
A character vector of length one. |
decomp |
A decomposition object; see details. |
sg |
An object of the |
outdir |
A chara cter string, the name of the output directory. |
x |
An object of the |
y |
Anything; it is ignored. |
... |
Extra graphical parameters. |
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.
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.
Attempting to manipulate a StringGraph
object using text containing
NAs, missing values, or previously unknown symbols will result in an error.
Kevin R. Coombes <krc@silicovore.com>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.