public class Metaphlan2Parser extends ParserModuleImpl
NUM_OTUS
BLJ_OPTIONS
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 |
---|
Metaphlan2Parser() |
Modifier and Type | Method and Description |
---|---|
void |
parseSamples()
To parse the taxonomy level reports output by
Metaphlan2Classifier :
Create ParsedSample for the OtuNodeImpl.getSampleId() if
not yet created. |
addOtuNode, buildOtuCountFiles, checkDependencies, getDepricatedOtuCountFields, getOtuCountField, getParsedSample, getSummary, isValid, runModule, setNumHitsFieldName, validateModuleOrder
buildScript, executeTask, getSource, getWorkerScriptFunctions, isValidInputModule, markStatus, moduleComplete, moduleFailed
buildScriptForPairedReads, getJobParams, getMainScript, getRuntimeParams, getScriptDir, getScriptErrors, getTimeout, hasScripts
cacheInputFiles, cleanUp, compareTo, equals, findModuleInputFiles, getFileCache, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, toString, validateFileNameUnique
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
moduleComplete, moduleFailed
buildScript, buildScriptForPairedReads, getJobParams, getMainScript, getScriptDir, getScriptErrors, getTimeout, getWorkerScriptFunctions
cleanUp, executeTask, getID, getInputFiles, getModuleDir, getOutputDir, getPostRequisiteModules, getPreRequisiteModules, getTempDir, init, isValidInputModule
public void parseSamples() throws Exception
Metaphlan2Classifier
:
ParsedSample
for the OtuNodeImpl.getSampleId()
if
not yet created.
OtuNodeImpl.getCount()
(1) to ParsedSample
OTU
count.
Sample Metaphlan2 report line (head 7A_1_reported.tsv) :
#SampleID Metaphlan22_Analysis #clade_name relative_abundance coverage average_genome_length_in_the_clade
estimated_number_of_reads_from_the_clade k__Bacteria|p__Bacteroidetes 14.68863 0.137144143537 4234739 580770
parseSamples
in interface ParserModule
parseSamples
in class ParserModuleImpl
Exception
- if error occurs while parsing classifier reports