public class EncoderUtil
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
REGEXP_REGULATION_VARIABLE
Regular expression for parsing elements of regulations
|
static java.lang.String |
REGULATED
Regulated gene capture group name
|
static java.lang.String |
REGULATOR
Regulator gene capture group name
|
static java.lang.String |
SEPARATOR
Name-index separator for encoding variables
|
static java.lang.String |
SIGN
Gene regulation sign capture group name
|
| Constructor and Description |
|---|
EncoderUtil() |
| Modifier and Type | Method and Description |
|---|---|
static GeneRegulation |
extractRegulation(Literal literal)
Decodes the regulation from a given literal
|
static java.util.Set<GeneRegulation> |
extractRegulations(PropositionalModel model)
Obtains the list of true regulations from a propositional model
|
static java.util.Map<Gene,java.util.Set<Gene>> |
findDependencies(java.util.Set<GeneInteraction> interactions)
Finds the dependencies for every gene given a set of interactions
|
static java.lang.String |
getEncodedRowVariableName(Gene regulated,
int row)
Obtains the variable encoding for the given gene and row
|
static java.lang.String |
getRegulationVariableName(Gene source,
Gene target,
GeneRegulation.Type type)
Obtains the variable encoding the positive regulation for the given genes
|
static boolean |
isRegulationVariable(Literal literal)
Verifies that the literal contains a regulation variable (It is
considered a regulation variable if its name contains the reserved
prefix)
|
public static final java.lang.String SEPARATOR
public static final java.lang.String SIGN
public static final java.lang.String REGULATOR
public static final java.lang.String REGULATED
public static final java.lang.String REGEXP_REGULATION_VARIABLE
public static java.lang.String getRegulationVariableName(Gene source, Gene target, GeneRegulation.Type type)
source - the regulatortarget - the regulated genetype - the type of the regulationpublic static boolean isRegulationVariable(Literal literal)
literal - the literal to checkpublic static GeneRegulation extractRegulation(Literal literal)
literal - the literal representing the regulationpublic static java.util.Set<GeneRegulation> extractRegulations(PropositionalModel model)
model - the propositional modelpublic static java.lang.String getEncodedRowVariableName(Gene regulated, int row)
regulated - the regulated generow - the row of the truth table (lexicographic order)public static java.util.Map<Gene,java.util.Set<Gene>> findDependencies(java.util.Set<GeneInteraction> interactions)
interactions - the interactions