$darkmode
|
DENOPTIM
|
Utility methods for input/output. More...
Classes | |
| class | PartlySilencedChemObjReaderErrorHandler |
| This differs from DefaultChemObjectReaderErrorHandler just by ignoring messages about invalid symbol. More... | |
Static Public Member Functions | |
| static Object | readDENOPTIMData (String pathname) throws Exception |
| Reads any content of a given pathname and tries to read DENOPTIM data from it. More... | |
| static List< Candidate > | readGenerationFromSummary (File file) throws DENOPTIMException |
Reads a FileFormat#GENSUMMARY file and searches all the files defining each member of the population. More... | |
| static List< IAtomContainer > | readAllAtomContainers (File file) throws IOException, CDKException, DENOPTIMException |
| Returns a single collection with all atom containers found in a file of any format. More... | |
| static ArrayList< IAtomContainer > | readSDFFile (String fileName) throws DENOPTIMException |
| Reads a file containing multiple molecules. More... | |
| static File | writeVertexesToFile (File file, FileFormat format, List< Vertex > vertexes) throws DENOPTIMException |
| Writes vertexes to file. More... | |
| static File | writeVertexToFile (File file, FileFormat format, Vertex vertex, boolean append) throws DENOPTIMException |
| Writes vertexes to file. More... | |
| static File | writeVertexesToFile (File file, FileFormat format, List< Vertex > vertexes, boolean append) throws DENOPTIMException |
| Writes vertexes to file. More... | |
| static void | writeVertexesToJSON (File file, List< Vertex > vertexes) throws DENOPTIMException |
| Writes vertexes to JSON file. More... | |
| static void | writeVertexesToJSON (File file, List< Vertex > vertexes, boolean append) throws DENOPTIMException |
| Writes vertexes to JSON file. More... | |
| static void | writeVertexToSDF (String pathName, Vertex vertex) throws DENOPTIMException |
| Writes a vertex to an SDF file. More... | |
| static void | writeVertexesToSDF (File file, List< Vertex > vertexes, boolean append) throws DENOPTIMException |
| Write a list of vertexes to file. More... | |
| static void | writeSDFFile (String fileName, IAtomContainer mol) throws DENOPTIMException |
Writes IAtomContainer to SDF file. More... | |
| static void | writeSDFFile (String fileName, List< IAtomContainer > mols) throws DENOPTIMException |
Writes IAtomContainers to SDF file. More... | |
| static void | writeSDFFile (String fileName, List< IAtomContainer > mols, boolean append) throws DENOPTIMException |
Writes a set of IAtomContainers to SDF file. More... | |
| static void | writeSDFFile (String fileName, IAtomContainer mol, boolean append) throws DENOPTIMException |
Writes an IAtomContainer to SDF file. More... | |
| static void | writeMol2File (String fileName, IAtomContainer mol, boolean append) throws DENOPTIMException |
| static void | writeXYZFile (String fileName, IAtomContainer mol, boolean append) throws DENOPTIMException |
| static void | writeSmilesSet (String fileName, String[] smiles, boolean append) throws DENOPTIMException |
| Writes multiple smiles string array to the specified file. More... | |
| static void | writeSmiles (String fileName, String smiles, boolean append) throws DENOPTIMException |
| Writes a single smiles string to the specified file. More... | |
| static void | writeData (String fileName, String data, boolean append) throws DENOPTIMException |
| Write text-like data file. More... | |
| static List< CandidateLW > | readLightWeightCandidate (File file) throws DENOPTIMException |
| Read only selected data from a GA produced items. More... | |
| static double[] | readPopulationProps (File file) throws DENOPTIMException |
Read the min, max, mean, and median of a population from FileFormat#GENSUMMARY file. More... | |
| static List< String > | readPopulationMemberPathnames (File file) throws DENOPTIMException |
Read the pathnames to the population members from a FileFormat#GENSUMMARY file. More... | |
| static List< CandidateLW > | readPopulationMembersTraces (File file) throws DENOPTIMException |
Read the minimal info that can be found in a FileFormat#GENSUMMARY file about the members of a population. More... | |
| static ArrayList< String > | readList (String fileName) throws DENOPTIMException |
| Read list of data as text. More... | |
| static ArrayList< String > | readList (String fileName, boolean allowEmpty) throws DENOPTIMException |
| Read list of data as text. More... | |
| static String | readText (String fileName) throws DENOPTIMException |
| Read text from file. More... | |
| static List< Map< String, Object > > | readSDFProperties (String pathName, List< String > propNames) throws DENOPTIMException |
| Extract selected properties from SDF files. More... | |
| static Set< APClass > | readAllAPClasses (File fragLib) |
| static void | writeCompatibilityMatrix (String fileName, HashMap< APClass, ArrayList< APClass > > cpMap, HashMap< APClass, APClass > capMap, HashSet< APClass > ends) throws DENOPTIMException |
| The class compatibility matrix. More... | |
| static void | readCompatibilityMatrix (String fileName, HashMap< APClass, ArrayList< APClass > > compatMap, HashMap< APClass, APClass > cappingMap, Set< APClass > forbiddenEndList) throws DENOPTIMException |
| Read the APclass compatibility matrix data from file. More... | |
| static void | readRCCompatibilityMatrix (String fileName, HashMap< APClass, ArrayList< APClass > > rcCompatMap) throws DENOPTIMException |
| Reads the APclass compatibility matrix for ring-closing connections (the RC-CPMap). More... | |
| static ArrayList< Candidate > | readCandidates (File file) throws DENOPTIMException |
| Reads SDF files that represent one or more tested candidates. More... | |
| static ArrayList< Candidate > | readCandidates (File file, boolean allowNoUID) throws DENOPTIMException |
| Reads SDF files that represent one or more tested or to be tested candidates. More... | |
| static void | writeCandidatesToFile (File file, List< Candidate > popMembers, boolean append) throws DENOPTIMException |
| Writes candidate items to file. More... | |
| static void | writeCandidateToFile (File file, Candidate candidate, boolean append) throws DENOPTIMException |
| Writes one candidate item to file. More... | |
| static ArrayList< GraphEdit > | readDENOPTIMGraphEditFromFile (String fileName) throws DENOPTIMException |
| Reads a list of graph editing tasks from a JSON file. More... | |
| static ArrayList< DGraph > | readDENOPTIMGraphsFromFile (File inFile) throws Exception |
Reads a list of DGraphs from file. More... | |
| static ArrayList< DGraph > | readDENOPTIMGraphsFromFile (File inFile, FileFormat format) throws Exception |
Reads a list of DGraphs from file. More... | |
| static ArrayList< DGraph > | readDENOPTIMGraphsFromSDFile (String fileName) throws DENOPTIMException |
Reads a list of <DGraphs from a SDF file. More... | |
| static DGraph | readGraphFromSDFileIAC (IAtomContainer mol) throws DENOPTIMException |
| Converts an atom container read in from an SDF file into a graph, if possible. More... | |
| static DGraph | readGraphFromSDFileIAC (IAtomContainer mol, int molId) throws DENOPTIMException |
| Converts an atom container read in from an SDF file into a graph, if possible. More... | |
| static DGraph | readGraphFromSDFileIAC (IAtomContainer mol, int molId, String fileName) throws DENOPTIMException |
| Converts an atom container read in from an SDF file into a graph, if possible. More... | |
| static ArrayList< DGraph > | readDENOPTIMGraphsFromTxtFile (String fileName, FragmentSpace fragSpace, Logger logger) throws DENOPTIMException |
Reads a list of <DGraphs from a text file. More... | |
| static ArrayList< Vertex > | readDENOPTIMVertexesFromJSONFile (String fileName) throws DENOPTIMException |
Reads a list of Vertexes from a JSON file. More... | |
| static ArrayList< DGraph > | readDENOPTIMGraphsFromJSONFile (String fileName) throws DENOPTIMException |
Reads a list of DGraphs from a JSON file. More... | |
| static File | writeGraphToFile (File file, FileFormat format, DGraph graph) throws DENOPTIMException |
| Writes the a graph to file. More... | |
| static File | writeGraphToFile (File file, FileFormat format, DGraph graph, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the a graph to file. More... | |
| static File | writeGraphsToFile (File file, FileFormat format, List< DGraph > modGraphs, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graphs to file. More... | |
| static void | writeGraphsToSDF (File file, List< DGraph > graphs, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graphs to SDF file. More... | |
| static void | writeGraphToSDF (File file, DGraph graph, boolean append, boolean make3D, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graph to SDF file. More... | |
| static void | writeGraphToSDF (File file, DGraph graph, boolean append, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graph to SDF file. More... | |
| static void | writeGraphsToSDF (File file, List< DGraph > graphs, boolean append, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graphs to SDF file. More... | |
| static void | writeGraphsToSDF (File file, List< DGraph > modGraphs, boolean append, boolean make3D, Logger logger, Randomizer randomizer) throws DENOPTIMException |
| Writes the graphs to SDF file. More... | |
| static void | writeGraphToJSON (File file, DGraph graph) throws DENOPTIMException |
| Writes the graph to JSON file. More... | |
| static void | writeGraphsToJSON (File file, List< DGraph > graphs) throws DENOPTIMException |
| Writes the graphs to JSON file. More... | |
| static void | writeGraphsToJSON (File file, List< DGraph > graphs, boolean append) throws DENOPTIMException |
| Writes the graphs to JSON file. More... | |
| static void | writeGraphToFile (String fileName, DGraph graph, boolean append) throws DENOPTIMException |
| Writes the string representation of a graph to file. More... | |
| static Map< File, FileFormat > | readRecentFilesMap () |
Reads the file defined in DENOPTIMConstants#RECENTFILESLIST and makes a map that contains the pathname and the format of each recent file. More... | |
| static ArrayList< Vertex > | readVertexes (File file, Vertex.BBType bbt) throws UndetectedFileFormatException, IOException, IllegalArgumentException, DENOPTIMException |
Reads Vertexes from any file that can contain such items. More... | |
| static ArrayList< Vertex > | readDENOPTIMVertexesFromSDFile (String fileName, Vertex.BBType bbt) throws DENOPTIMException |
Reads a list of Vertexes from a SDF file. More... | |
| static LinkedHashMap< String, String > | readCSDFormulae (File file) throws DENOPTIMException |
| Read molecular formula from TXT data representation produced by Cambridge Structural Database tools (such as Conquest). More... | |
| static void | readCuttingRules (BufferedReader reader, List< CuttingRule > cutRules, String source) throws DENOPTIMException |
| Read cutting rules from a stream. More... | |
| static void | readCuttingRules (File file, List< CuttingRule > cutRules) throws DENOPTIMException |
| Read cutting rules from a properly formatted text file. More... | |
| static void | readCuttingRules (ArrayList< String > cutRulLines, List< CuttingRule > cutRules, String source) throws DENOPTIMException |
| Read cutting rules from a properly formatted text file. More... | |
| static void | writeCuttingRules (File file, List< CuttingRule > cutRules) throws DENOPTIMException |
| Writes a formatted text file that collects cutting rule. More... | |
| static void | appendTxtFiles (File f1, List< File > files) throws IOException |
| Appends the second file to the first. More... | |
| static List< BridgeHeadFindingRule > | readBridgeHesFindingRules (String fileName) throws DENOPTIMException |
| Reads a list of rules for identifying potential bridge-head sites. More... | |
| static List< BridgeHeadFindingRule > | readBridgeHesFindingRules (BufferedReader br) throws IOException |
| Reads a list of rules for identifying potential bridge-head sites. More... | |
| static void | scanLoggingLevels (Logger logger) |
| Utility to trigger logging at all known levels. More... | |
Static Public Attributes | |
| static final String | FS = System.getProperty("file.separator") |
| File separator from system. More... | |
| static final String | NL = System.getProperty("line.separator") |
| Newline character from system. More... | |
Static Private Attributes | |
| static final IChemObjectBuilder | builder |
Utility methods for input/output.
Definition at line 109 of file DenoptimIO.java.
|
static |
Appends the second file to the first.
| f1 | file being elongated |
| list | files providing the content to place in f1. |
| IOException |
Definition at line 2611 of file DenoptimIO.java.
Referenced by denoptim.fragmenter.ParallelFragmentationAlgorithm.doPostFlightOperations().
|
static |
Definition at line 1145 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readVertexes(), and denoptim.graph.Vertex.BBType.UNDEFINED.
Referenced by denoptim.gui.CompatibilityMatrixForm.importAllAPClassesFromCappingGroupLibs(), denoptim.gui.CompatibilityMatrixForm.importAllAPClassesFromFragmentLibs(), and denoptim.io.DenoptimIOTest.testReadAllAPClasses().
|
static |
Returns a single collection with all atom containers found in a file of any format.
CIF files are internally converted to SDF files, causing loss of information beyond molecular structure in Cartesian coordinates. So, if you need more than molecular structure from CIF files, do not use this method.
| file | the file to read. |
| IOException | if the file is not found or not readable. |
| CDKException | if the reading of the file goes wrong. |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 279 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.FS, denoptim.files.FileUtils.getTempFolder(), denoptim.io.DenoptimIO.readAllAtomContainers(), and denoptim.io.DenoptimIO.readSDFFile().
Referenced by denoptim.gui.MoleculeViewPanel.fillDataTable(), denoptim.gui.FragmentViewPanel.getStructureFromJmolViewer(), denoptim.gui.GUIVertexInspector.importStructureFromFile(), denoptim.io.IteratingAtomContainerReader.IteratingAtomContainerReader(), denoptim.gui.MoleculeViewPanel.loadChemicalStructureFromFile(), denoptim.fitness.FitnessExpressionParser.makeIBitFingerprint(), denoptim.programs.mol2graph.Mol2GraphParameters.processParameters(), denoptim.io.DenoptimIO.readAllAtomContainers(), denoptim.task.FitnessTask.runExternalFitness(), denoptim.gui.MoleculeViewPanel.showPopup(), and denoptim.io.DenoptimIOTest.testReadAllAtomContainersFromCIF().
|
static |
Reads a list of rules for identifying potential bridge-head sites.
| reader | the source of data. |
| IOException | |
| DENOPTIMException | in case we cannot read, find, or understand the data. |
Definition at line 2696 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getReader().
|
static |
Reads a list of rules for identifying potential bridge-head sites.
| fileName | the pathname of the file to read |
| DENOPTIMException | in case we cannot read, find, or understand the data. |
Definition at line 2655 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readBridgeHesFindingRules().
Referenced by denoptim.graph.rings.RingClosureParameters.interpretKeyword(), denoptim.io.DenoptimIO.readBridgeHesFindingRules(), and denoptim.graph.rings.RingClosureParameters.RingClosureParameters().
|
static |
Reads SDF files that represent one or more tested candidates.
Candidates are provided with a graph representation, a unique identifier, and either a fitness value or a mol_error defining why this candidate could not be evaluated.
| file | the SDF file to read. |
| DENOPTIMException | is something goes wrong while reading the file or interpreting its content |
Definition at line 1408 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readCandidates().
Referenced by denoptim.ga.EAUtils.getPopulationFromFile(), denoptim.gui.MoleculeViewPanel.loadChemicalStructureFromFile(), denoptim.io.DenoptimIO.readCandidates(), denoptim.io.DenoptimIO.readDENOPTIMData(), denoptim.io.DenoptimIO.readGenerationFromSummary(), and denoptim.programs.moldecularmodelbuilder.MolecularModelBuilder.runProgram().
|
static |
Reads SDF files that represent one or more tested or to be tested candidates.
| file | the SDF file to read. |
| allowNoUID | use true if candidates should be allowed to have no unique identifier. |
| DENOPTIMException | is something goes wrong while reading the file or interpreting its content |
Definition at line 1427 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.GAGENDIRNAMEROOT, denoptim.io.DenoptimIO.readSDFFile(), denoptim.graph.Candidate.setGeneration(), and denoptim.graph.Candidate.setSDFFile().
|
static |
Read the APclass compatibility matrix data from file.
| fileName | the file to be read |
| compatMap | container for the APClass compatibility rules |
| cappingMap | container for the capping rules |
| forbiddenEndList | container for the definition of forbidden ends |
| DENOPTIMException |
Definition at line 1235 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.APCMAPCAPPING, denoptim.constants.DENOPTIMConstants.APCMAPCOMPRULE, denoptim.constants.DENOPTIMConstants.APCMAPFORBIDDENEND, denoptim.constants.DENOPTIMConstants.APCMAPIGNORE, and denoptim.graph.APClass.make().
Referenced by denoptim.fragspace.FragmentSpace.FragmentSpace(), denoptim.fragspace.FragmentSpace.importCompatibilityMatrixFromFile(), and denoptim.gui.CompatibilityMatrixForm.importCPMapFromFile().
|
static |
Read molecular formula from TXT data representation produced by Cambridge Structural Database tools (such as Conquest).
Essentially, this method reads a text file expecting to find lines as the following among lines with other kinds of information:
REFCODE: ABEWOT [...] Formula: C36 H44 Cl1 P2 Ru1 1+,F6 P1 1-
| file | the text file to read |
| DENOPTIMException | if any exception occurs during the reading of the file or if the file does not exist. |
Definition at line 2388 of file DenoptimIO.java.
Referenced by denoptim.programs.fragmenter.FragmenterParameters.processParameters(), and denoptim.io.DenoptimIOTest.testReadCSDFormulae().
|
static |
Read cutting rules from a properly formatted text file.
| cutRulLines | text lines containing cutting rules. These are expected to be lines starting with the DENOPTIMConstants.CUTRULKEYWORD keyword. |
| cutRules | the collector of the cutting rules. The collection is already sorted by priority when this method returns. |
| source | the source of text. This is used only in logging as the source of the text that we are trying to convert into cutting rules. For example, a file name. |
| DENOPTIMException | in case there are errors in the formatting of the text contained in the file. |
Definition at line 2515 of file DenoptimIO.java.
References denoptim.programs.fragmenter.CuttingRule.getPriority().
|
static |
Read cutting rules from a stream.
| reader | the stream providing text lines. |
| cutRules | the collector of the cutting rules. The collection is already sorted by priority when this method returns. |
| source | the source of text. This is used only in logging as the source of the text that we are trying to convert into cutting rules. For example, a file name. |
| DENOPTIMException | in case there are errors in the formatting of the text contained in the file. |
Definition at line 2446 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.CUTRULKEYWORD, and denoptim.io.DenoptimIO.readCuttingRules().
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), denoptim.gui.GUIVertexInspector.dialogToDefineCuttingRules(), denoptim.programs.fragmenter.FragmenterParameters.getDefaultCuttingRules(), denoptim.programs.fragmenter.FragmenterParameters.processParameters(), denoptim.programs.mol2graph.Mol2GraphParameters.processParameters(), denoptim.io.DenoptimIO.readCuttingRules(), denoptim.io.DenoptimIOTest.testIOCuttingRules(), and denoptim.io.DenoptimIOTest.testReadCuttingRulsedDefault().
|
static |
Read cutting rules from a properly formatted text file.
| file | the file to read. |
| cutRules | the collector of the cutting rules. The collection is already sorted by priority when this method returns. |
| DENOPTIMException | in case there are errors in the formatting of the text contained in the file. |
Definition at line 2484 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.CUTRULKEYWORD, denoptim.io.DenoptimIO.readCuttingRules(), and denoptim.io.DenoptimIO.readList().
|
static |
Reads any content of a given pathname and tries to read DENOPTIM data from it.
As the type of the returned value if not defined this method is meant of untyped coding context, like the interfacing with Python. Please, avoid to use it in typed code context, like within JAVA code.
| pathname | the pathname to read. |
| Exception | if for any reason no data can be returned. |
Definition at line 136 of file DenoptimIO.java.
References denoptim.files.FileUtils.detectFileFormat(), denoptim.graph.Vertex.BBType.FRAGMENT, denoptim.io.DenoptimIO.readCandidates(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.io.DenoptimIO.readGenerationFromSummary(), denoptim.io.DenoptimIO.readVertexes(), and denoptim.files.FileFormat.UNRECOGNIZED.
Referenced by denoptim.integration.python.Py4JGetawayServer.loadData().
|
static |
Reads a list of graph editing tasks from a JSON file.
| fileName | the pathname of the file to read |
| DENOPTIMException |
Definition at line 1511 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getReader().
Referenced by denoptim.programs.grapheditor.GraphEdParameters.processParameters().
|
static |
Reads a list of DGraphs from file.
| fileName | the pathname of the file to read |
| Exception |
Definition at line 1581 of file DenoptimIO.java.
References denoptim.files.FileUtils.detectFileFormat(), and denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile().
Referenced by denoptim.graph.DGraph.editGraph(), denoptim.fragmenter.FragmenterTools.fragmentationFromGraphs(), denoptim.gui.GUIVertexInspector.initialize(), denoptim.programs.combinatorial.CEBLParameters.processParameters(), denoptim.programs.fragmenter.FragmenterParameters.processParameters(), denoptim.programs.graphlisthandler.GraphListsHandlerParameters.processParameters(), denoptim.ga.EAUtils.readCandidateFromFile(), denoptim.io.DenoptimIO.readDENOPTIMData(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.gui.GUIGraphHandler.readGraphsFromFile(), denoptim.programs.grapheditor.GraphEdParameters.readInputGraphs(), denoptim.programs.fitnessevaluator.FPRunner.run(), denoptim.programs.genetweeker.GeneOpsRunner.runMutation(), denoptim.programs.isomorphism.Isomorphism.runProgram(), and denoptim.programs.genetweeker.GeneOpsRunner.runXOver().
|
static |
Reads a list of DGraphs from file.
| inFile | the file to read |
| format | the format of the file to read. We assume this has been detected from previous calls of FileUtils#detectFileFormat(File) and that now we want to avoid having to call that method again. |
| Exception |
Definition at line 1601 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.GRAPHTAG, denoptim.io.DenoptimIO.readDENOPTIMGraphsFromJSONFile(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromSDFile(), denoptim.io.DenoptimIO.readVertexes(), denoptim.graph.Vertex.BBType.UNDEFINED, and denoptim.files.FileFormat.VRTXSDF.
|
static |
Reads a list of DGraphs from a JSON file.
| fileName | the pathname of the file to read |
| DENOPTIMException |
Definition at line 1905 of file DenoptimIO.java.
References denoptim.graph.DGraph.fromJson(), and denoptim.json.DENOPTIMgson.getReader().
Referenced by denoptim.combinatorial.CombinatorialExplorerByLayer.exploreCombinationsAtGivenLevel(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.gui.GUIGraphHandler.readGraphsFromFile(), denoptim.io.DenoptimIO.readVertexes(), and denoptim.io.DenoptimIOTest.testSerializeDeserializeDENOPTIMGraphs().
|
static |
Reads a list of <DGraphs from a SDF file.
| fileName | the pathname of the file to read. |
| DENOPTIMException |
Definition at line 1656 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readGraphFromSDFileIAC(), and denoptim.io.DenoptimIO.readSDFFile().
Referenced by denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.gui.GUIGraphHandler.readGraphsFromFile(), and denoptim.io.DenoptimIO.readVertexes().
|
static |
Reads a list of <DGraphs from a text file.
| fileName | the pathname of the file to read. |
| DENOPTIMException |
Definition at line 1782 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.APCMAPIGNORE, and denoptim.utils.GraphConversionTool.getGraphFromString().
|
static |
Reads a list of Vertexes from a JSON file.
| fileName | the pathname of the file to read. |
| DENOPTIMException |
Definition at line 1839 of file DenoptimIO.java.
References denoptim.graph.Vertex.fromJson(), and denoptim.json.DENOPTIMgson.getReader().
Referenced by denoptim.io.DenoptimIO.readVertexes(), denoptim.io.DenoptimIOTest.testAppendToJSON(), and denoptim.io.DenoptimIO.writeVertexesToJSON().
|
static |
Reads a list of Vertexes from a SDF file.
| fileName | the pathname of the file to read. |
| DENOPTIMException |
Definition at line 2347 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getReader(), denoptim.graph.Vertex.parseVertexFromSDFFormat(), and denoptim.io.DenoptimIO.readSDFFile().
Referenced by denoptim.io.DenoptimIO.readVertexes().
|
static |
Reads a FileFormat#GENSUMMARY file and searches all the files defining each member of the population.
If the pathnames found in FileFormat#GENSUMMARY do not exist, this method will try to build the candidate's files pathnames relative to the location of the FileFormat#GENSUMMARY. This assumes that the original folder structure of a FileFormat#GA_RUN has been preserved.
| file | the generation summary file (FileFormat#GENSUMMARY) to read |
| DENOPTIMException |
Definition at line 234 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readCandidates(), and denoptim.io.DenoptimIO.readPopulationMemberPathnames().
Referenced by denoptim.io.DenoptimIO.readDENOPTIMData(), and denoptim.io.DenoptimIOTest.testReadGenerationFromSummary().
|
static |
Converts an atom container read in from an SDF file into a graph, if possible.
Otherwise, throws an exception.
| mol | the atom container coming from SDF representation |
| molId | identified used only for logging purposed |
| DENOPTIMException | is the atom container cannot be converted due to lack of the proper SDF tags, or failure in the conversion. |
Definition at line 1682 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readGraphFromSDFileIAC().
Referenced by denoptim.graph.Candidate.Candidate(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromSDFile(), and denoptim.io.DenoptimIO.readGraphFromSDFileIAC().
|
static |
Converts an atom container read in from an SDF file into a graph, if possible.
Otherwise, throws an exception.
| mol | the atom container coming from SDF representation |
| molId | identified used only for logging purposed |
| DENOPTIMException | is the atom container cannot be converted due to lack of the proper SDF tags, or failure in the conversion. |
Definition at line 1699 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readGraphFromSDFileIAC().
|
static |
Converts an atom container read in from an SDF file into a graph, if possible.
Otherwise, throws an exception.
| mol | the atom container coming from SDF representation |
| molId | identified used only for logging purposes. If negative it is ignored. |
| fileName | a pathname used only for logging errors. This is usually the pathname to the file from which we took the atom container. If empty it is ignored |
| DENOPTIMException | is the atom container cannot be converted due to lack of the proper SDF tags, or failure in the conversion. |
Definition at line 1720 of file DenoptimIO.java.
References denoptim.graph.DGraph.fromJson(), denoptim.constants.DENOPTIMConstants.GRAPHJSONTAG, and denoptim.constants.DENOPTIMConstants.GRAPHTAG.
|
static |
Read only selected data from a GA produced items.
This is a light-weight reader of SDF files containing an item, which can be successfully or Unsuccessfully evaluated.
| fileName | the pathname to SDF file |
| DENOPTIMException |
Definition at line 844 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.FITNESSTAG, denoptim.constants.DENOPTIMConstants.GRAPHLEVELTAG, denoptim.constants.DENOPTIMConstants.MOLERRORTAG, denoptim.constants.DENOPTIMConstants.PROVENANCE, denoptim.io.DenoptimIO.readSDFProperties(), denoptim.graph.CandidateLW.setError(), denoptim.graph.CandidateLW.setFitness(), denoptim.graph.CandidateLW.setGeneratingSource(), denoptim.graph.CandidateLW.setLevel(), and denoptim.constants.DENOPTIMConstants.UNIQUEIDTAG.
Referenced by denoptim.gui.GUIInspectFSERun.importFSERunData(), denoptim.gui.GUIInspectGARun.readOneGeneration(), and denoptim.io.DenoptimIOTest.testReadLightWeightCandidate().
|
static |
Read list of data as text.
| fileName | the pathname to the file to read. |
| DENOPTIMException |
Definition at line 1035 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readList().
Referenced by denoptim.gui.GUIInspectGARun.buildAndFillMonitorPlot(), denoptim.files.FileUtils.canWriteAndReadTo(), denoptim.integration.tinker.ConformationalSearchPSSROT.fixLongeLinesInXYZ(), denoptim.fitness.FitnessExpressionParser.makeStringArray(), denoptim.ga.ExternalCmdsListener.processExternalCmdFile(), denoptim.io.DenoptimIO.readCuttingRules(), denoptim.io.DenoptimIO.readList(), denoptim.io.DenoptimIO.readPopulationMemberPathnames(), denoptim.io.DenoptimIO.readPopulationMembersTraces(), denoptim.io.DenoptimIO.readPopulationProps(), denoptim.io.DenoptimIO.readRecentFilesMap(), denoptim.ga.EAUtils.readUID(), denoptim.utils.SizeControlledSetTest.test(), denoptim.programs.denovo.GAParametersTest.testLogging(), and denoptim.fragmenter.ParallelFragmentationAlgorithmTest.testSplitInputForThreads().
|
static |
Read list of data as text.
| fileName | the pathname to the file to read. |
| allowEmpty | if true the method is allowed to return an empty list if the file exists and is empty |
| DENOPTIMException |
Definition at line 1051 of file DenoptimIO.java.
|
static |
Read the pathnames to the population members from a FileFormat#GENSUMMARY file.
| fileName | the pathname to the file to read. |
| DENOPTIMException |
Definition at line 960 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.FS, and denoptim.io.DenoptimIO.readList().
Referenced by denoptim.io.DenoptimIO.readGenerationFromSummary(), and denoptim.gui.GUIInspectGARun.readOneGeneration().
|
static |
Read the minimal info that can be found in a FileFormat#GENSUMMARY file about the members of a population.
| fileName | the pathname to the FileFormat#GENSUMMARY file to read. |
FileFormat#GENSUMMARY file. | DENOPTIMException | if the file cannot be read. |
Definition at line 993 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readList(), and denoptim.graph.CandidateLW.setFitness().
Referenced by denoptim.gui.GUIInspectGARun.readOneGeneration().
|
static |
Read the min, max, mean, and median of a population from FileFormat#GENSUMMARY file.
| fileName | the pathname to the file to read. |
| DENOPTIMException |
Definition at line 919 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readList().
Referenced by denoptim.gui.GUIInspectGARun.readOneGeneration().
|
static |
Reads the APclass compatibility matrix for ring-closing connections (the RC-CPMap).
Note that RC-CPMap is by definition symmetric. Though, true entries can be defined either from X:Y or Y:X, and we make sure such entries are stored in the map. This method assumes that the APclasses reported in the RC-CPMap are defined, w.r.t bond order, in the regular compatibility matrix as we wont check it this condition is satisfied.
| fileName | |
| rcCompatMap |
| DENOPTIMException |
Definition at line 1329 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.APCMAPCOMPRULE, denoptim.constants.DENOPTIMConstants.APCMAPIGNORE, and denoptim.graph.APClass.make().
Referenced by denoptim.fragspace.FragmentSpace.FragmentSpace(), and denoptim.fragspace.FragmentSpace.importRCCompatibilityMatrixFromFile().
|
static |
Reads the file defined in DENOPTIMConstants#RECENTFILESLIST and makes a map that contains the pathname and the format of each recent file.
Ignores any entry that is present in the file but cannot be found in the system.
Definition at line 2236 of file DenoptimIO.java.
References denoptim.logging.StaticLogger.appLogger, denoptim.files.FileUtils.checkExists(), denoptim.io.DenoptimIO.readList(), and denoptim.constants.DENOPTIMConstants.RECENTFILESLIST.
Referenced by denoptim.files.FileUtils.addToRecentFiles(), and denoptim.gui.MainToolBar.updateOpenRecentMenu().
|
static |
Reads a file containing multiple molecules.
Suitable for both MDLV3000 and MDLV2000 formats, and can read very large files.
| fileName | the file containing the molecules |
| DENOPTIMException |
Definition at line 339 of file DenoptimIO.java.
Referenced by denoptim.gui.GUIGraphHandler.appendGraphsFromFile(), denoptim.gui.GUIGraphHandler.importGraphsFromFile(), denoptim.io.DenoptimIO.readAllAtomContainers(), denoptim.io.DenoptimIO.readCandidates(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromSDFile(), denoptim.io.DenoptimIO.readDENOPTIMVertexesFromSDFile(), denoptim.io.DenoptimIO.readSDFProperties(), denoptim.programs.fitnessevaluator.FPRunner.run(), denoptim.graph.TemplateTest.testGetIAtomContainer(), denoptim.graph.TemplateTest.testGetIAtomContainer_DeepVertex(), and denoptim.ga.EAUtilsTest.testMakeGraphFromFragmentationOfMol().
|
static |
Extract selected properties from SDF files.
| pathName | to the file to read |
| propNames | the list of property names to extract. All the rest will be ignored. |
| DENOPTIMException | if the file cannot be read. |
Definition at line 1126 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.readSDFFile().
Referenced by denoptim.io.DenoptimIO.readLightWeightCandidate().
|
static |
Read text from file.
| fileName | the pathname to the file to read. |
| DENOPTIMException |
Definition at line 1092 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.NL.
Referenced by denoptim.combinatorial.CEBLUtils.deserializeCheckpoint(), denoptim.gui.GUITextReader.displayContent(), and denoptim.programs.fitnessevaluator.FPRunner.run().
|
static |
Reads Vertexes from any file that can contain such items.
| file | the file we want to read. |
| bbt | the type of building blocks assigned to each new vertex, if not already specified by the content of the file, i.e., this method does not overwrite the Vertex.BBType defined in the file. |
| IOException | |
| UndetectedFileFormatException | |
| DENOPTIMException | |
| IllegalArgumentException | |
| Exception |
Definition at line 2290 of file DenoptimIO.java.
References denoptim.files.FileUtils.detectFileFormat(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromJSONFile(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromSDFile(), denoptim.io.DenoptimIO.readDENOPTIMVertexesFromJSONFile(), denoptim.io.DenoptimIO.readDENOPTIMVertexesFromSDFile(), and denoptim.graph.Template.setInnerGraph().
Referenced by denoptim.fragmenter.ParallelConformerExtractionAlgorithm.createAndSubmitTasks(), denoptim.fragspace.FragmentSpace.FragmentSpace(), denoptim.gui.GUIVertexInspector.importVerticesFromFile(), denoptim.gui.GUIVertexInspector.initialize(), denoptim.fragmenter.FragmenterTools.manageFragmentCollection(), denoptim.programs.fragmenter.FragmenterParameters.processParameters(), denoptim.io.DenoptimIO.readAllAPClasses(), denoptim.io.DenoptimIO.readDENOPTIMData(), denoptim.io.DenoptimIO.readDENOPTIMGraphsFromFile(), denoptim.programs.fragmenter.Fragmenter.runProgram(), denoptim.io.DenoptimIOTest.testIOEmptyVertex(), denoptim.io.DenoptimIOTest.testIOMolFragment(), and denoptim.io.DenoptimIOTest.testIOTemplate().
|
static |
Utility to trigger logging at all known levels.
Useful to check what is the effective verbosity level.
| logger |
Definition at line 2724 of file DenoptimIO.java.
|
static |
Writes candidate items to file.
Always overwrites.
| file | the file where to print. |
| popMembers | the list of candidates to print to file. |
| append | use true to append if the file exist |
| DENOPTIMException |
Definition at line 1463 of file DenoptimIO.java.
References denoptim.files.FileFormat.CANDIDATESDF, and denoptim.io.DenoptimIO.writeSDFFile().
Referenced by denoptim.ga.EAUtils.outputPopulationDetails().
|
static |
Writes one candidate item to file.
Always overwrites.
| file | the file where to print. |
| candidate | the candidate to print to file. |
| append | use true to append if the file exist |
| DENOPTIMException |
Definition at line 1489 of file DenoptimIO.java.
References denoptim.files.FileFormat.CANDIDATESDF, and denoptim.io.DenoptimIO.writeSDFFile().
Referenced by denoptim.ga.EAUtils.getPopulationFromFile(), denoptim.ga.EAUtils.outputFinalResults(), denoptim.task.FitnessTask.runFitnessProvider(), and denoptim.io.DenoptimIOTest.testReadGenerationFromSummary().
|
static |
The class compatibility matrix.
| fileName | the file to be read |
| cpMap | container for the APClass compatibility rules |
| capMap | container for the capping rules |
| ends | container for the definition of forbidden ends |
Definition at line 1173 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.APCMAPCAPPING, denoptim.constants.DENOPTIMConstants.APCMAPCOMPRULE, denoptim.constants.DENOPTIMConstants.APCMAPFORBIDDENEND, denoptim.constants.DENOPTIMConstants.APCMAPIGNORE, denoptim.io.DenoptimIO.NL, and denoptim.io.DenoptimIO.writeData().
Referenced by denoptim.fragspace.FragmentSpaceTest.buildFragmentSpace(), and denoptim.gui.CompatibilityMatrixForm.writeCopatibilityMatrixFile().
|
static |
Writes a formatted text file that collects cutting rule.
| file | the file where to write. |
| cutRules | the cutting rules to write. |
| DENOPTIMException |
Definition at line 2581 of file DenoptimIO.java.
References denoptim.constants.DENOPTIMConstants.CUTRULKEYWORD, denoptim.io.DenoptimIO.NL, and denoptim.io.DenoptimIO.writeData().
Referenced by denoptim.gui.CuttingRulesSelectionDialog.CuttingRulesSelectionDialog(), and denoptim.io.DenoptimIOTest.testIOCuttingRules().
|
static |
Write text-like data file.
| fileName | |
| data | |
| append |
| DENOPTIMException |
Definition at line 813 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.NL.
Referenced by denoptim.utils.SizeControlledSet.addNewUniqueEntry(), denoptim.files.FileUtils.addToRecentFiles(), denoptim.files.FileUtils.canWriteAndReadTo(), denoptim.integration.tinker.ConformationalSearchPSSROT.fixLongeLinesInXYZ(), denoptim.gui.FragmentViewPanel.getStructureFromJmolViewer(), denoptim.ga.EAUtils.outputPopulationDetails(), denoptim.integration.tinker.ConformationalSearchPSSROT.performPSSROT(), denoptim.utils.Randomizer.print(), denoptim.task.ProgramTask.printErrorToFile(), denoptim.logging.Monitor.printHeader(), denoptim.logging.Monitor.printSnapshot(), denoptim.logging.Monitor.printSummary(), denoptim.programs.fitnessevaluator.FPRunner.run(), denoptim.integration.rcoserver.RCOSocketServerClient.runConformationalOptimization(), denoptim.ga.EAUtils.selectBasedOnFitness(), denoptim.combinatorial.CEBLUtils.serializeCheckPoint(), denoptim.main.MainTest.testDefineProgramBehavior(), denoptim.io.DenoptimIOTest.testDetectFileFormat(), denoptim.graph.TemplateTest.testGetIAtomContainer(), denoptim.graph.TemplateTest.testGetIAtomContainer_DeepVertex(), denoptim.ga.EAUtilsTest.testMakeGraphFromFragmentationOfMol(), denoptim.io.DenoptimIOTest.testReadAllAtomContainersFromCIF(), denoptim.io.DenoptimIOTest.testReadCSDFormulae(), denoptim.io.DenoptimIOTest.testSerializeDeserializeDENOPTIMGraphs(), denoptim.fragmenter.ParallelFragmentationAlgorithmTest.testSplitInputForThreads(), denoptim.io.DenoptimIO.writeCompatibilityMatrix(), denoptim.io.DenoptimIO.writeCuttingRules(), denoptim.files.SingletonFileAccess.writeData(), denoptim.io.DenoptimIO.writeGraphsToJSON(), denoptim.io.DenoptimIO.writeGraphToFile(), denoptim.ga.EAUtils.writeUID(), and denoptim.io.DenoptimIO.writeVertexesToJSON().
|
static |
Writes the graphs to file.
Always overwrites.
| file | the file where to print |
| format | how to print graphs on file |
| modGraphs | the list of graphs to print |
| DENOPTIMException |
Definition at line 2026 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToJSON(), and denoptim.io.DenoptimIO.writeGraphsToSDF().
Referenced by denoptim.gui.GUIGraphHandler.initialize(), denoptim.programs.grapheditor.GraphEditor.runProgram(), and denoptim.programs.mol2graph.Mol2Graph.runProgram().
|
static |
Writes the graphs to JSON file.
| file | the file where to print |
| graphs | the list of graphs to print |
| DENOPTIMException |
Definition at line 2187 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getWriter(), and denoptim.io.DenoptimIO.writeData().
Referenced by denoptim.fragspace.FragmentSpace.addFusedRingsToFragmentLibrary(), denoptim.io.DenoptimIO.writeGraphsToFile(), and denoptim.io.DenoptimIO.writeGraphToJSON().
|
static |
Writes the graphs to JSON file.
| file | the file where to print |
| graphs | the list of graphs to print |
| append | use true to append |
| DENOPTIMException |
Definition at line 2204 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getWriter(), and denoptim.io.DenoptimIO.writeData().
|
static |
Writes the graphs to SDF file.
| file | the file where to print |
| graphs | the list of graphs to print |
| append | use true to append to the file |
| DENOPTIMException |
Definition at line 2116 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToSDF().
|
static |
Writes the graphs to SDF file.
| file | the file where to print |
| graphs | the list of graphs to print |
| DENOPTIMException |
Definition at line 2060 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToSDF().
Referenced by denoptim.ga.EAUtils.buildCandidatesByXOver(), denoptim.io.DenoptimIO.writeGraphsToFile(), denoptim.io.DenoptimIO.writeGraphsToSDF(), and denoptim.io.DenoptimIO.writeGraphToSDF().
|
static |
Writes the graphs to SDF file.
| file | the file where to print |
| modGraphs | the list of graphs to print |
| append | use true to append to the file |
| make3D | use true to convert graph to 3d. If false an empty molecule will be used. |
| DENOPTIMException |
Definition at line 2135 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.builder, denoptim.molecularmodeling.ThreeDimTreeBuilder.convertGraphTo3DAtomContainer(), denoptim.utils.GraphUtils.writeSDFFields(), and denoptim.io.DenoptimIO.writeSDFFile().
|
static |
Writes the a graph to file.
Always overwrites.
| file | the file where to print. |
| format | how to print graphs on file. |
| graph | the graph to print. |
| DENOPTIMException |
Definition at line 1973 of file DenoptimIO.java.
References denoptim.logging.StaticLogger.appLogger, and denoptim.io.DenoptimIO.writeGraphToFile().
Referenced by denoptim.programs.mol2graph.Mol2Graph.runProgram(), and denoptim.io.DenoptimIO.writeGraphToFile().
|
static |
Writes the a graph to file.
Always overwrites.
| file | the file where to print. |
| format | how to print graphs on file. |
| graph | the graph to print. |
| DENOPTIMException |
Definition at line 1990 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphToJSON(), and denoptim.io.DenoptimIO.writeGraphToSDF().
|
static |
Writes the string representation of a graph to file.
| fileName | the file where to print |
| graph | the graph to print |
| append | use true to append |
| DENOPTIMException |
Definition at line 2221 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeData().
|
static |
Writes the graph to JSON file.
| file | the file where to print |
| graph | the graphs to print |
| DENOPTIMException |
Definition at line 2170 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToJSON().
Referenced by denoptim.molecularmodeling.ThreeDimTreeBuilder.convertGraphTo3DAtomContainer(), denoptim.graph.DGraph.removeChainUpToBranching(), and denoptim.io.DenoptimIO.writeGraphToFile().
|
static |
Writes the graph to SDF file.
| file | the file where to print. |
| graph | the of graph to print. |
| append | use true to append to the file. |
| make3D | use true to convert graph to 3d. |
| DENOPTIMException |
Definition at line 2078 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToSDF().
Referenced by denoptim.fragspace.FragmentSpace.addFusedRingsToFragmentLibrary(), denoptim.ga.EAUtils.buildCandidateByMutation(), denoptim.utils.MoleculeUtils.extractIACForSubgraph(), denoptim.ga.GraphOperations.performMutation(), and denoptim.io.DenoptimIO.writeGraphToFile().
|
static |
Writes the graph to SDF file.
| file | the file where to print |
| graph | the of graph to print |
| append | use true to append to the file |
| DENOPTIMException |
Definition at line 2097 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeGraphsToSDF().
|
static |
Definition at line 695 of file DenoptimIO.java.
|
static |
Writes IAtomContainer to SDF file.
| fileName | The file to be write to. |
| mol | The molecules to be written. |
| DENOPTIMException |
Definition at line 609 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeSDFFile().
Referenced by denoptim.fragspace.FragmentSpace.addFusedRingsToFragmentLibrary(), denoptim.molecularmodeling.MultiMolecularModelBuilder.build3DTree(), denoptim.fragmenter.FragmenterTools.checkElementalAnalysisAgainstFormula(), denoptim.molecularmodeling.ThreeDimTreeBuilder.convertGraphTo3DAtomContainer(), denoptim.fragmenter.FragmenterTools.filterStrucutresBySMARTS(), denoptim.utils.MoleculeUtils.getSMILESForMolecule(), denoptim.gui.MoleculeViewPanel.loadChemicalStructure(), denoptim.gui.FragmentViewPanel.loadStructure(), denoptim.graph.rings.PathSubGraph.makeMolecularRepresentation(), denoptim.utils.DummyAtomHandler.removeDummyInHapto(), denoptim.graph.rings.RingClosureFinder.reportForDebug(), denoptim.task.FitnessTask.runFitnessProvider(), denoptim.programs.genetweeker.GeneOpsRunner.runMutation(), denoptim.programs.moldecularmodelbuilder.MolecularModelBuilder.runProgram(), denoptim.programs.genetweeker.GeneOpsRunner.runXOver(), denoptim.fragmenter.ParallelFragmentationAlgorithm.splitInputForThreads(), denoptim.fragmenter.FragmentClustererTest.testCluster(), denoptim.fitness.FitnessProviderTest.testGetFitnessWithParametrizedDescriptors(), denoptim.fitness.FitnessExpressionParserTest.testProcessExpressions(), denoptim.io.DenoptimIOTest.testReadLightWeightCandidate(), denoptim.fragmenter.ParallelFragmentationAlgorithmTest.testSplitInputForThreads(), denoptim.io.DenoptimIO.writeCandidatesToFile(), denoptim.io.DenoptimIO.writeCandidateToFile(), denoptim.io.DenoptimIO.writeGraphsToSDF(), denoptim.io.DenoptimIO.writeSDFFile(), and denoptim.io.DenoptimIO.writeVertexesToSDF().
|
static |
Writes an IAtomContainer to SDF file.
| fileName | The file to be written to |
| mol | The molecule to be written |
| append |
| DENOPTIMException |
Definition at line 674 of file DenoptimIO.java.
|
static |
Writes IAtomContainers to SDF file.
| fileName | The file to be write to. |
| mols | The molecules to be written. |
| DENOPTIMException |
Definition at line 625 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeSDFFile().
|
static |
Writes a set of IAtomContainers to SDF file.
| fileName | The file to be written to |
| mols | The molecules to be written |
| append | use true to append to the file |
| DENOPTIMException |
Definition at line 640 of file DenoptimIO.java.
|
static |
Writes a single smiles string to the specified file.
| fileName | The file to be written to |
| smiles | |
| append | if true append to the file |
| DENOPTIMException |
Definition at line 783 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.NL.
|
static |
Writes multiple smiles string array to the specified file.
| fileName | The file to be written to |
| smiles | array of smiles strings to be written |
| append | if true append to the file |
| DENOPTIMException |
Definition at line 750 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.NL.
|
static |
Writes vertexes to file.
Always overwrites.
| file | the file where to print |
| format | how to print vertexes on file |
| vertexes | the list of vertexes to print |
| DENOPTIMException |
Definition at line 461 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeVertexesToFile().
Referenced by denoptim.fragmenter.ConformerExtractorTask.call(), denoptim.fragmenter.FragmenterTools.fragmentation(), denoptim.fragmenter.FragmenterTools.fragmentationFromGraphs(), denoptim.gui.GUIGraphHandler.initialize(), denoptim.gui.GUIVertexInspector.initialize(), denoptim.fragmenter.FragmenterTools.manageFragmentCollection(), denoptim.io.DenoptimIOTest.testAppendToJSON(), denoptim.fragmenter.FragmentClustererTest.testCluster(), denoptim.io.DenoptimIOTest.testIOEmptyVertex(), denoptim.io.DenoptimIOTest.testIOMolFragment(), denoptim.io.DenoptimIOTest.testIOTemplate(), denoptim.io.DenoptimIO.writeVertexesToFile(), and denoptim.io.DenoptimIO.writeVertexToFile().
|
static |
Writes vertexes to file.
Always overwrites.
| file | the file where to print |
| format | how to print vertexes on file |
| vertexes | the list of vertexes to print |
| DENOPTIMException |
Definition at line 495 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeVertexesToJSON(), and denoptim.io.DenoptimIO.writeVertexesToSDF().
|
static |
Writes vertexes to JSON file.
Always overwrites.
| file | the file where to print. |
| vertexes | the list of vertexes to print. |
| DENOPTIMException |
Definition at line 528 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeVertexesToJSON().
Referenced by denoptim.io.DenoptimIO.writeVertexesToFile(), and denoptim.io.DenoptimIO.writeVertexesToJSON().
|
static |
Writes vertexes to JSON file.
Always overwrites.
| file | the file where to print. |
| vertexes | the list of vertexes to print. |
| append | use true to append to the existing list of vertexes found in the file. |
| DENOPTIMException |
Definition at line 545 of file DenoptimIO.java.
References denoptim.json.DENOPTIMgson.getWriter(), denoptim.io.DenoptimIO.readDENOPTIMVertexesFromJSONFile(), and denoptim.io.DenoptimIO.writeData().
|
static |
Write a list of vertexes to file.
| file | the file to write to. |
| vertexes | the vertexes to be written. |
| append | use true to append instead of overwriting. |
| DENOPTIMException |
Definition at line 588 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeSDFFile().
Referenced by denoptim.fragspace.FragmentSpaceTest.buildFragmentSpace(), denoptim.graph.FragmentIsomorphismInspector.getMappings(), denoptim.graph.FragmentIsomorphismInspector.isomorphismExists(), denoptim.io.DenoptimIOTest.testReadAllAPClasses(), denoptim.io.DenoptimIO.writeVertexesToFile(), and denoptim.io.DenoptimIO.writeVertexToSDF().
|
static |
Writes vertexes to file.
Always overwrites.
| file | the file where to print |
| format | how to print vertexes on file |
| vertex | the vertex to print |
| DENOPTIMException |
Definition at line 477 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeVertexesToFile().
Referenced by denoptim.fragmenter.FragmenterTools.manageFragmentCollection().
|
static |
Writes a vertex to an SDF file.
| pathName | pathname where to write. |
| vertices | list of vertices to write. |
| DENOPTIMException |
Definition at line 570 of file DenoptimIO.java.
References denoptim.io.DenoptimIO.writeVertexesToSDF().
|
static |
Definition at line 718 of file DenoptimIO.java.
|
staticprivate |
Definition at line 122 of file DenoptimIO.java.
Referenced by denoptim.io.DenoptimIO.writeGraphsToSDF().
|
static |
File separator from system.
Definition at line 115 of file DenoptimIO.java.
Referenced by denoptim.files.FileUtils.getAvailableFileName(), denoptim.programs.fragmenter.FragmenterParameters.getMWSlotFileNameAllFrags(), denoptim.programs.fragmenter.FragmenterParameters.getMWSlotFileNameUnqFrags(), denoptim.io.DenoptimIO.readAllAtomContainers(), and denoptim.io.DenoptimIO.readPopulationMemberPathnames().
|
static |
Newline character from system.
Definition at line 120 of file DenoptimIO.java.
Referenced by denoptim.utils.FormulaUtils.compareFormulaAndElementalAnalysis(), denoptim.files.FileUtils.isLineInTxtFile(), denoptim.io.DenoptimIO.readText(), denoptim.utils.DummyAtomHandler.removeDummy(), denoptim.utils.DummyAtomHandler.removeDummyInHapto(), denoptim.io.DenoptimIO.writeCompatibilityMatrix(), denoptim.io.DenoptimIO.writeCuttingRules(), denoptim.io.DenoptimIO.writeData(), denoptim.io.DenoptimIO.writeSmiles(), and denoptim.io.DenoptimIO.writeSmilesSet().