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_EXT
SCRIPT_BATCH_SIZE, SCRIPT_DEFAULT_HEADER, SCRIPT_NUM_THREADS, SCRIPT_PERMISSIONS, SCRIPT_TIMEOUT
MAIN_SCRIPT_PREFIX, OUTPUT_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 |
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, isValidInputModule
buildScriptForPairedReads, checkDependencies, executeTask, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts
cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, toString, validateFileNameUnique
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
buildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeout
checkDependencies, cleanUp, executeTask, getID, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init
protected 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 ScriptModule
buildScript
in class ScriptModuleImpl
files
- 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 BioModule
getSummary
in class SeqModuleImpl
Exception
- if any error occurspublic List<String> getWorkerScriptFunctions() throws Exception
getWorkerScriptFunctions
in interface ScriptModule
getWorkerScriptFunctions
in class ScriptModuleImpl
Exception
- if errors occur