public class ReactionDataBase extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
DEFAULT_TXT_FILE_COLUMN_NAMES |
List<String> |
errors |
List<GenericReaction> |
excludedGenericReactions |
List<GenericReaction> |
genericReactions |
Constructor and Description |
---|
ReactionDataBase() |
ReactionDataBase(List<String> smirksList) |
ReactionDataBase(String fileName) |
ReactionDataBase(String fileName,
Map<String,Integer> columnIndices) |
ReactionDataBase(String fileName,
Map<String,Integer> columnIndices,
int headerLines) |
Modifier and Type | Method and Description |
---|---|
int |
checkColumnIndices(Map<String,Integer> columnIndices) |
void |
configureGenericReactions(SMIRKSManager smrkMan) |
void |
excludeReactionsWithConfigErrors() |
static Map<String,Integer> |
getDefaultGenericReacitonTextFileColumnsIndices() |
String |
getErrorsAsString() |
GenericReaction |
getGenericReactionByID(int id) |
void |
loadReactionsFromJSON(File jsonFile,
boolean FlagCleanDB) |
void |
loadReactionsFromTabDelimitedFile(File txtFile,
boolean FlagCleanDB) |
void |
loadReactionsFromTabDelimitedFile(File txtFile,
boolean FlagCleanDB,
Map<String,Integer> columnIndices,
int numHeaderLines) |
String |
toString() |
public static final String[] DEFAULT_TXT_FILE_COLUMN_NAMES
public List<GenericReaction> genericReactions
public List<GenericReaction> excludedGenericReactions
public ReactionDataBase()
public ReactionDataBase(String fileName, Map<String,Integer> columnIndices) throws Exception
Exception
public ReactionDataBase(String fileName, Map<String,Integer> columnIndices, int headerLines) throws Exception
Exception
public void loadReactionsFromJSON(File jsonFile, boolean FlagCleanDB) throws Exception
Exception
public void loadReactionsFromTabDelimitedFile(File txtFile, boolean FlagCleanDB) throws Exception
Exception
public void loadReactionsFromTabDelimitedFile(File txtFile, boolean FlagCleanDB, Map<String,Integer> columnIndices, int numHeaderLines) throws Exception
Exception
public int checkColumnIndices(Map<String,Integer> columnIndices)
columnIndices
- public static Map<String,Integer> getDefaultGenericReacitonTextFileColumnsIndices()
public void configureGenericReactions(SMIRKSManager smrkMan) throws Exception
Exception
public GenericReaction getGenericReactionByID(int id)
public String getErrorsAsString()
public void excludeReactionsWithConfigErrors()
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.