public class SBMLAnnotaterTask
extends org.cytoscape.work.AbstractTask
Constructor and Description |
---|
SBMLAnnotaterTask(org.cytoscape.application.CyApplicationManager cymanager,
SBMLDocument SBMLDoc,
boolean GenerateGeneNodes,
org.cytoscape.event.CyEventHelper eventHelper,
String GeneAnnotDB,
String ProtAnnotDB,
Map<String,Set<CVTerm>> ProtAnnot,
String sbmlTypeCol,
String sbmlIDCol,
String sbmlCompCol,
String SBMLInteractionCol,
IDAREImageNodeApp app)
A Task reading in an SBML File and parsing its Notes fields adding the information to the Nodes of the current network.
|
Modifier and Type | Method and Description |
---|---|
double |
GetYPosition(int number,
int count,
double y,
double width)
Get the Y Position for the number-th of code Nodes
|
void |
run(org.cytoscape.work.TaskMonitor TaskMonitor) |
public SBMLAnnotaterTask(org.cytoscape.application.CyApplicationManager cymanager, SBMLDocument SBMLDoc, boolean GenerateGeneNodes, org.cytoscape.event.CyEventHelper eventHelper, String GeneAnnotDB, String ProtAnnotDB, Map<String,Set<CVTerm>> ProtAnnot, String sbmlTypeCol, String sbmlIDCol, String sbmlCompCol, String SBMLInteractionCol, IDAREImageNodeApp app)
cymanager
- The CyApplicationManager
used to obtain the currently choosen network for this Task.SBMLDoc
- The SBMLDocument
to obtain the annotation fromGenerateGeneNodes
- whether to generate gene (and potentially protein) nodeseventHelper
- The CyEventHelper
used to update the views.GeneAnnotDB
- The identifier used for protein name annotation ,ProtAnnotDB
- The name of the protein annotation database to be used.ProtAnnot
- a Map
associating the protein names with their CVTerms,sbmlTypeCol
- The column of the in which the SBML Types are storedsbmlIDCol
- The nodeTable column in which the SBML IDs are storedsbmlCompCol
- The Column in which the SBML compartment is storedSBMLInteractionCol
- The Column to obtain the sbml interaction type fromapp
- The IDAREImageNodeApp
used to keep the current network up to date.public void run(org.cytoscape.work.TaskMonitor TaskMonitor) throws Exception
run
in interface org.cytoscape.work.Task
run
in class org.cytoscape.work.AbstractTask
Exception
public double GetYPosition(int number, int count, double y, double width)
number
- - the position of the node (should be between 1 and count)count
- - the total count of nodes (this corresponds to the sections a circle is split into)y
- - the y position of the center of the circlewidth
- - the width of the circle.Copyright © 2018. All rights reserved.