public class RdpClassifier extends ClassifierModuleImpl
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FUNCTION_RDP
Name of the RdpClassifier bash script function used to assign taxonomy: "runRdp"
|
protected static String |
RDP_DB
Config File property used to define an alternate RDP database file: "rdp.db" |
protected static String |
RDP_JAR
Config File property for RDP java executable JAR: "rdp.jar" |
protected static String |
RDP_PARAMS
Config List property for RDP java executable JAR runtime params: "exe.rdpParams" |
GZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXTSCRIPT_BATCH_SIZE, SCRIPT_DEFAULT_HEADER, SCRIPT_NUM_THREADS, SCRIPT_PERMISSIONS, SCRIPT_TIMEOUTMAIN_SCRIPT_PREFIX, OUTPUT_DIR, TEMP_DIR| Constructor and Description |
|---|
RdpClassifier() |
| Modifier and Type | Method and Description |
|---|---|
List<List<String>> |
buildScript(List<File> files)
Build bash script lines to classify unpaired reads with RDP.
|
void |
checkDependencies()
Validate module dependencies:
Call
ClassifierModuleImpl.getClassifierExe() to verify the executable
Call ClassifierModuleImpl.getClassifierParams() to verify the runtime parameters are valid
Call ClassifierModuleImpl.validateModuleOrder() to validate module configuration order. |
String |
getClassifierExe()
RDP uses java to run a JAR file, so no special command is required
|
List<String> |
getClassifierParams()
Do not accept -t to define a database, since that instead requires the specific property: "rdp.db"
|
File |
getDB()
Return database directory, if multiple databases are configured, they must share a common parent directory and
the common parent directory is returned by this method.
|
List<String> |
getPreRequisiteModules()
If paired reads found, add prerequisite:
PearMergeReads. |
List<String> |
getWorkerScriptFunctions()
This method generates the required bash functions: "runRdp"
|
getClassifierType, getPostRequisiteModules, getSummary, validateModuleOrdergetInputFiles, getSeqFiles, isValidInputModulebuildScriptForPairedReads, executeTask, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScriptscacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getModuleDir, getOutputDir, getTempDir, init, toString, validateFileNameUniqueclone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetSeqFilesbuildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeoutcleanUp, executeTask, getID, getInputFiles, getModuleDir, getOutputDir, getTempDir, init, isValidInputModuleprotected static final String FUNCTION_RDP
protected static final String RDP_DB
Config File property used to define an alternate RDP database file: "rdp.db"protected static final String RDP_JAR
Config File property for RDP java executable JAR: "rdp.jar"protected static final String RDP_PARAMS
Config List property for RDP java executable JAR runtime params: "exe.rdpParams"public List<List<String>> buildScript(List<File> files) throws Exception
Example line: "java -jar $RDP_PATH t /database/silva128/rRNAClassifier.properties -o ./output/sample42.fasta_reported.tsv ./input/sample42.fasta"
buildScript in interface ScriptModulebuildScript in class ScriptModuleImplfiles - Files in the input directory that contain only forward readsException - if unable to generate script linespublic void checkDependencies()
throws Exception
ClassifierModuleImplClassifierModuleImpl.getClassifierExe() to verify the executable
ClassifierModuleImpl.getClassifierParams() to verify the runtime parameters are valid
ClassifierModuleImpl.validateModuleOrder() to validate module configuration order.
BioModule.checkDependencies() to validate script dependencies.
checkDependencies in interface BioModulecheckDependencies in class ClassifierModuleImplException - thrown if missing or invalid dependencies are foundpublic String getClassifierExe() throws Exception
getClassifierExe in interface ClassifierModulegetClassifierExe in class ClassifierModuleImplException - if the classifier program undefined or invalidpublic List<String> getClassifierParams() throws Exception
getClassifierParams in interface ClassifierModulegetClassifierParams in class ClassifierModuleImplException - thrown if parameters defined are invalidpublic File getDB() throws Exception
DatabaseModulegetDB in interface DatabaseModulegetDB in class ClassifierModuleImplException - thrown if any runtime error occurspublic List<String> getPreRequisiteModules() throws Exception
PearMergeReads.getPreRequisiteModules in interface BioModulegetPreRequisiteModules in class BioModuleImplException - if invalid Class names are returned as prerequisitespublic List<String> getWorkerScriptFunctions() throws Exception
getWorkerScriptFunctions in interface ScriptModulegetWorkerScriptFunctions in class ScriptModuleImplException - if errors occur