예제 #1
0
 public Map<String, Rxn> getReactions(String compartment) {
   TreeMap<String, Rxn> crxns = new TreeMap<String, Rxn>();
   for (String rn : reactions.keySet()) {
     Rxn r = reactions.get(rn);
     if (r.getLocation().equals(compartment)) {
       crxns.put(rn, r);
     }
   }
   return crxns;
 }
예제 #2
0
 public Set<String> getOutputReactions(Rxn r) {
   TreeSet<String> rxns = new TreeSet<String>();
   for (String rn : reactions.keySet()) {
     Rxn rxn = reactions.get(rn);
     if (r.connects(rxn)) {
       rxns.add(rn);
     }
   }
   return rxns;
 }
예제 #3
0
 public Rxn getReaction(String rxnAbbrev) {
   return reactions.get(rxnAbbrev);
 }
예제 #4
0
 public LogicalORFTree getLogicalORFTree(String rxnAbbrev) {
   return orfSets.get(rxnAbbrev);
 }