19package denoptim.programs.mol2graph;
22import java.util.ArrayList;
24import java.util.logging.Level;
26import org.openscience.cdk.interfaces.IAtomContainer;
28import denoptim.exception.DENOPTIMException;
29import denoptim.ga.EAUtils;
30import denoptim.graph.DGraph;
31import denoptim.io.DenoptimIO;
32import denoptim.programs.RunTimeParameters.ParametersType;
33import denoptim.programs.fragmenter.FragmenterParameters;
34import denoptim.task.ProgramTask;
81 List<DGraph> graphs =
new ArrayList<DGraph>();
90 m2gParams.
getLogger().log(Level.SEVERE,
"Unable to convert "
91 +
"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)
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.
boolean containsParameters(ParametersType type)
void setParameters(RunTimeParameters otherParams)
RunTimeParameters getParameters(ParametersType type)
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.
Parameters controlling execution of the fragmenter.
Tool for creating DGraphs from molecules.
Mol2Graph(File configFile, File workDir)
Creates and configures the program task.
Parameters controlling execution of GraphEditor.
IAtomContainer getInputMol(int i)
FileFormat getOutFormat()
void processParameters()
Processes all parameters and initialize related objects.
void checkParameters()
Evaluate consistency of input parameters.
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.
Identifier of the type of parameters.
FS_PARAMS
Parameters pertaining the definition of the fragment space.
FRG_PARAMS
Parameters controlling the fragmenter.