19package denoptim.programs.mol2graph;
22import java.util.ArrayList;
24import java.util.logging.Level;
26import javax.swing.JOptionPane;
27import javax.swing.UIManager;
29import org.openscience.cdk.interfaces.IAtomContainer;
31import denoptim.exception.DENOPTIMException;
32import denoptim.fragspace.FragmentSpaceParameters;
33import denoptim.ga.EAUtils;
34import denoptim.graph.DGraph;
35import denoptim.io.DenoptimIO;
36import denoptim.programs.RunTimeParameters.ParametersType;
37import denoptim.programs.fragmenter.FragmenterParameters;
38import denoptim.task.ProgramTask;
73 List<DGraph> graphs =
new ArrayList<DGraph>();
87 m2gParams.
getLogger().log(Level.SEVERE,
"Unable to convert "
88 +
"molecule " + i +
" to DENOPTIM graph. "
Helper methods for the genetic algorithm.
static DGraph makeGraphFromFragmentationOfMol(IAtomContainer mol, List< CuttingRule > cuttingRules, Logger logger, ScaffoldingPolicy scaffoldingPolicy)
Converts a molecule into a DGraph by fragmentation and re-assembling of the fragments.
Container for the list of vertices and the edges that connect them.
Utility methods for input/output.
static File writeGraphToFile(File file, FileFormat format, DGraph graph, Logger logger, Randomizer randomizer)
Writes the a graph to file.
static File writeGraphsToFile(File file, FileFormat format, List< DGraph > modGraphs, Logger logger, Randomizer randomizer)
Writes the graphs to file.
Logger startProgramSpecificLogger(String loggerIdentifier)
Starts a logger with the given name.
void readParameterFile(String infile)
Read the parameter TXT file line by line and interpret its content.
Logger getLogger()
Get the name of the program specific logger.
Randomizer getRandomizer()
Returns the current program-specific randomizer.
Tool for creating DGraphs from molecules.
Mol2Graph(File configFile, File workDir)
Creates and configures the program task.
Parameters controlling execution of GraphEditor.
double getLinearAngleLimit()
FragmentSpace getFragmentSpace()
IAtomContainer getInputMol(int i)
List< CuttingRule > getCuttingRules()
FileFormat getOutFormat()
void processParameters()
Processes all parameters and initialize related objects.
void checkParameters()
Evaluate consistency of input parameters.
ScaffoldingPolicy getScaffoldingPolicy()
Task structure for any of the main programs in the denoptim project, such as genetic algorithm and co...
String loggerIdentifier
Identifier of this program's logger.
File configFilePathName
File containing configuration parameters for the program task.
File workDir
The file system location where we want to be placed when doing the work.