public class TautomerAnalysis extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TautomerAnalysis.Task |
| Modifier and Type | Field and Description |
|---|---|
String |
filePath |
protected ArrayList<String> |
fileRuleNames |
boolean |
FlagFilter |
String |
inputFileName |
protected MoleculeFilter |
molecularFilter |
String |
molFilterString |
String |
outFilePath |
String |
outFilePrefix |
protected File[] |
outFiles |
String |
outFileType |
String |
outputFileName |
protected FileWriter[] |
outWriters |
protected int |
records_error |
protected int |
records_processed |
protected int |
records_read |
String |
sep |
TautomerAnalysis.Task |
task |
protected TautomerManager |
tman |
| Constructor and Description |
|---|
TautomerAnalysis() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
calcAllTautomersAndAllRanks(org.openscience.cdk.interfaces.IAtomContainer mol) |
static double |
calcTautomerRankCorrCoeff(double[] ranks,
double[] energies) |
static double |
calcTautomerRankingMeasure(double[] ranks,
double[] energies)
This is a measure for the tautomer ranking based on a comparison with
tautomers energies
|
static double |
calcTautomerRankSpearmanCorrCoeff(double[] ranks,
double[] energies,
boolean isFractional) |
protected void |
closeWriters() |
protected void |
createOutWriter() |
protected void |
createRulePairsWriters() |
protected FileWriter |
createWriter(String fname) |
protected void |
createWriters() |
protected void |
doTask(org.openscience.cdk.interfaces.IAtomContainer mol) |
protected void |
generateRulePairs(org.openscience.cdk.interfaces.IAtomContainer mol) |
protected String |
getFileRuleName(String rname) |
static int |
getNumberOfDistinctValues(double[] values) |
static double[] |
getRanks(double[] values,
boolean isFractionalRanking) |
protected org.openscience.cdk.io.iterator.IIteratingChemObjectReader<org.openscience.cdk.interfaces.IAtomContainer> |
getReader(InputStream in,
String extension) |
protected void |
outputTautomerPair(TautomerUtils.TautomerPair tp) |
protected void |
printSmiles(org.openscience.cdk.interfaces.IAtomContainer mol) |
int |
process() |
void |
setMoleculeFilter(String molFilterString) |
public String filePath
public String outFilePath
public String inputFileName
public String outputFileName
public String outFilePrefix
public String outFileType
public String molFilterString
public TautomerAnalysis.Task task
public boolean FlagFilter
protected TautomerManager tman
protected MoleculeFilter molecularFilter
protected int records_read
protected int records_processed
protected int records_error
protected FileWriter[] outWriters
protected File[] outFiles
public String sep
public void setMoleculeFilter(String molFilterString) throws Exception
molFilterString - expression which defines the filter e.g. "#Mol=[1,100];NA=[1,10]"Exceptionpublic int process()
throws Exception
Exceptionprotected org.openscience.cdk.io.iterator.IIteratingChemObjectReader<org.openscience.cdk.interfaces.IAtomContainer> getReader(InputStream in, String extension) throws org.openscience.cdk.exception.CDKException, AmbitIOException
org.openscience.cdk.exception.CDKExceptionAmbitIOExceptionprotected FileWriter createWriter(String fname) throws Exception
Exceptionprotected void closeWriters()
protected void doTask(org.openscience.cdk.interfaces.IAtomContainer mol)
throws Exception
Exceptionprotected void printSmiles(org.openscience.cdk.interfaces.IAtomContainer mol)
throws Exception
Exceptionprotected void generateRulePairs(org.openscience.cdk.interfaces.IAtomContainer mol)
throws Exception
Exceptionprotected void outputTautomerPair(TautomerUtils.TautomerPair tp)
protected void calcAllTautomersAndAllRanks(org.openscience.cdk.interfaces.IAtomContainer mol)
throws Exception
Exceptionpublic static double calcTautomerRankingMeasure(double[] ranks,
double[] energies)
ranks - energies - public static double calcTautomerRankCorrCoeff(double[] ranks,
double[] energies)
public static double calcTautomerRankSpearmanCorrCoeff(double[] ranks,
double[] energies,
boolean isFractional)
public static double[] getRanks(double[] values,
boolean isFractionalRanking)
public static int getNumberOfDistinctValues(double[] values)
Copyright © 2004–2020 Ideaconsult Ltd.. All rights reserved.