public class BuildQiimeMapping extends SeqModuleImpl
QIIME mapping file requirements:
Steps to convert metadata into QIIME mapping:
| Modifier and Type | Field and Description |
|---|---|
protected static String |
FUNCTION_REORDER_FIELDS
Name of the bash function that reorders metadata columns: "reorderColumns"
|
protected static String |
QIIME_COMMENT
Comment used to populate "Description" column
|
protected static String |
QIIME_ID
QIIME mapping file required 1st column name, containing the sample ID
|
protected static String |
SCRIPT_VALIDATE_MAPPING
QIIME script used to validate the QIIME mapping file format
|
protected static String |
VALIDATED_MAPPING
Suffix appended to the validate QIIME mapping file output to temp/mapping dir by bash script
|
GZIP_EXT, LOG_EXT, PDF_EXT, RETURN, SH_EXT, TAB_DELIM, TSV_EXT, TXT_EXTLOG_DIR, MAIN_SCRIPT_PREFIX, NO_VERSION, OUTPUT_DIR, RES_DIR, TEMP_DIR| Constructor and Description |
|---|
BuildQiimeMapping() |
| Modifier and Type | Method and Description |
|---|---|
File |
addMissingFields()
Create QIIME mapping based on metadata file, output to temp dir.
|
List<List<String>> |
buildScript(List<File> files)
Create the Qiime corrected mapping file by building a new metadata file with ordered columns, and verify the
format via the "validate_mapping_file.py" script.
|
String |
getDockerImageName()
Get the docker image to use for this module.
|
String |
getDockerImageOwner()
Get the name of the docker hub user that owns the image to use for this module.
|
String |
getDockerImageTag()
Get the version / tag to use for the docker image.
|
String |
getSummary()
Message summarizes contents of
scriptDir, and
status of the QIIME mapping files (exists or not). |
List<String> |
getWorkerScriptFunctions()
This method generates the bash function used to reorder columns as per QIIME requirements:
"reorderColumns"
|
getInputFiles, getSeqFiles, isValidInputModulebuildScriptForPairedReads, checkDependencies, executeTask, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts, isValidPropaddGeneralProperty, addGeneralProperty, addGeneralProperty, addNewProperty, addNewProperty, cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getAlias, getDescription, getDetails, getFileCache, getID, getLogDir, getMenuPlacement, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getPropDefault, getPropDescMap, getPropType, getPropTypeMap, getResourceDir, getTempDir, getTitle, hashCode, init, listProps, setAlias, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitbuildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeoutcheckDependencies, cleanUp, executeTask, getAlias, getID, getLogDir, getMetadata, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getPropDefault, getResourceDir, getTempDir, init, setAlias, versionprotected static final String FUNCTION_REORDER_FIELDS
protected static final String QIIME_COMMENT
protected static final String QIIME_ID
protected static final String SCRIPT_VALIDATE_MAPPING
protected static final String VALIDATED_MAPPING
public File addMissingFields() throws Exception
Exception - if unable to build the mapping filepublic List<List<String>> buildScript(List<File> files) throws Exception
buildScript in interface ScriptModulebuildScript in class ScriptModuleImplfiles - Files in the input directory that contain only forward readsException - if unable to generate script linespublic String getSummary() throws Exception
scriptDir, and
status of the QIIME mapping files (exists or not).getSummary in interface BioModulegetSummary in class SeqModuleImplException - if any error occurspublic List<String> getWorkerScriptFunctions() throws Exception
getWorkerScriptFunctions in interface ScriptModulegetWorkerScriptFunctions in class ScriptModuleImplException - if errors occurpublic String getDockerImageOwner()
BioModulegetDockerImageOwner in interface BioModulegetDockerImageOwner in class BioModuleImplpublic String getDockerImageName()
BioModulepublic String getDockerImageTag()
BioModulegetDockerImageTag in interface BioModulegetDockerImageTag in class BioModuleImpl