Package org.snpeff.reactome
Class Entity
java.lang.Object
org.snpeff.reactome.Entity
- All Implemented Interfaces:
Comparable<Entity>
- Direct Known Subclasses:
Compartment,Event
A reactome basic entity (e.g. anything in reactome database derives fro this object)
- Author:
- pcingola
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic doubleprotected Compartmentstatic booleanprotected doubleprotected intprotected Stringprotected doublestatic Entity.TransferFunctionprotected double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a geneIddoublecalc()doubleCalculate entities.intintgetId()getName()doubledoublebooleanbooleanisFixed()booleanvoidreset()voidsetCompartment(Compartment compartment) voidsetFixedOutput(double fixedOutput) voidsetWeight(double weight) toString()protected doubletransferFunction(double x) Transfer function
-
Field Details
-
debug
public static boolean debug -
TRANSFER_FUNCTION
-
BETA
public static double BETA -
id
protected int id -
name
-
compartment
-
output
protected double output -
weight
protected double weight -
fixedOutput
protected double fixedOutput -
geneIds
-
-
Constructor Details
-
Entity
-
-
Method Details
-
addGeneId
Add a geneId- Parameters:
geneId-
-
calc
public double calc() -
calc
Calculate entities. Make sure we don't calculate twice (keep 'doneEntities' set up to date)- Parameters:
doneEntities-- Returns:
-
compareTo
- Specified by:
compareToin interfaceComparable<Entity>
-
getCompartment
-
getGeneIds
-
getId
public int getId() -
getName
-
getOutput
public double getOutput() -
getWeight
public double getWeight() -
hasOutput
public boolean hasOutput() -
isFixed
public boolean isFixed() -
isReaction
public boolean isReaction() -
reset
public void reset() -
setCompartment
-
setFixedOutput
public void setFixedOutput(double fixedOutput) -
setWeight
public void setWeight(double weight) -
toString
-
toString
-
toStringSimple
-
transferFunction
protected double transferFunction(double x) Transfer function- Parameters:
x-- Returns:
-