|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface StringToModel
The service implementing StringToModel provides a common mechanism for converting command arguments into Cytoscape model elements. For example, the command: nodes select network=current nodelist="name:gene1,name:gene2" could be handled as follows:
Module: command-executor-api
To use this in your app, include the following dependency in your POM:
<dependency> <groupId>org.cytoscape</groupId> <artifactId>command-executor-api</artifactId> </dependency>
Method Summary | |
---|---|
List<CyEdge> |
getEdgeList(CyNetwork net,
String edgelist)
Convert a string request for a edgelist into a list of CyEdge s. |
CyNetwork |
getNetwork(String strNet)
Convert a string request for a network into a CyNetwork . |
List<CyNode> |
getNodeList(CyNetwork net,
String nodelist)
Convert a string request for a nodelist into a list of CyNode s. |
List<CyRow> |
getRowList(CyTable table,
String rowlist)
Convert a string request for a rowlist into a list of CyRow s. |
CyTable |
getTable(String strTable)
Convert a string request for a table into a CyTable . |
Method Detail |
---|
CyNetwork getNetwork(String strNet)
CyNetwork
. This method
may be used to find a network with a given name or the current network.
Future implementations might accept other columns to search on.
strNet
- the name of the network to return or "current"
CyTable getTable(String strTable)
CyTable
. This method
may be used to find a table with a given name or the current table.
Future implementations might accept other columns to search on.
strTable
- the name of the table to return or "current"
List<CyNode> getNodeList(CyNetwork net, String nodelist)
CyNode
s. This
method may be used to find selected nodes, or nodes matching a particular column
by using the pattern "column:value". If no column is specified, it is assumed
that the column is the NAME column. No wildcarding or regular expression matching
is supported at this time. The following special keywords are also recognized:
all return all nodes in this network
selected return all selected nodes in this network
unselected return all unselected nodes in this network
net
- the CyNetwork to search through. If null, use the current networknodelist
- the string representing the nodelist
List<CyEdge> getEdgeList(CyNetwork net, String edgelist)
CyEdge
s. This
method may be used to find selected edges, or edges matching a particular column
by using the pattern "column:value". If no column is specified, it is assumed
that the column is the NAME column. No wildcarding or regular expression matching
is supported at this time. The following special keywords are also recognized:
all return all edges in this network
selected return all selected edges in this network
unselected return all unselected edges in this network
net
- the CyNetwork to search through. If null, use the current networkedgelist
- the string representing the edgelist
List<CyRow> getRowList(CyTable table, String rowlist)
CyRow
s. This
method may be used to find all rows, or rows matching a particular column
by using the pattern "column:value". If no column is specified, it is assumed
that the column is the NAME column. No wildcarding or regular expression matching
is supported at this time. The following special keywords are also recognized:
all return all edges in this network
table
- the CyTable to search through.rowlist
- the string representing the rowlist
|
Cytoscape 3.1.1 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |