public class PathGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
static Set<String> |
totalNaturalPaths |
static Set<String> |
totalPaths |
| Constructor and Description |
|---|
PathGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkAndStorePath(String newOrigPath,
List<String> listNewOrigPath,
String newNatPath,
List<String> listNewNatPath)
Checks if path already exists as palindrome, stores valide paths depending
on lexicographical order.
|
void |
clearPaths() |
void |
findPaths(Graph moleculeGraph)
Calls depthFirstSearch for every monomer (vertex).
|
Set<String> |
getNaturalPaths() |
String |
getNaturalPeptide(String monomerUnit)
Gets the natural analog of a peptide monomer.
|
String |
getNaturalRNA(String monomerUnit)
Gets the natural analog of a RNA monomer.
|
Set<String> |
getPaths() |
public void findPaths(Graph moleculeGraph) throws NaturalAnalogException
moleculeGraph - The moleculeGraph of a HELM notationNaturalAnalogException - if natural analog of a modified monomer cannot be foundpublic static void checkAndStorePath(String newOrigPath, List<String> listNewOrigPath, String newNatPath, List<String> listNewNatPath)
newOrigPath - original path to be checkedlistNewOrigPath - list of original path to be checkednewNatPath - natural path to be checkedlistNewNatPath - list of natural path to be checkedpublic String getNaturalPeptide(String monomerUnit)
monomerUnit - The modified monomer that the natural analog is looked forpublic String getNaturalRNA(String monomerUnit)
monomerUnit - The modified monomer that the natural analog is looked forpublic void clearPaths()
Copyright © 2018. All rights reserved.