public class GenericMetadataSaver extends Module
processingAccession, VERSION
Constructor and Description |
---|
GenericMetadataSaver()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ReturnValue |
clean_up()
Deprecated.
clean_up.
|
ReturnValue |
do_run()
Deprecated.
do_run.
|
ReturnValue |
do_test()
Deprecated.
do_test.
|
ReturnValue |
do_verify_input()
Deprecated.
do_verify_input.
|
ReturnValue |
do_verify_output()
Deprecated.
do_verify_output.
|
ReturnValue |
do_verify_parameters()
Deprecated.
do_verify_parameters.
|
String |
get_syntax()
Deprecated.
Generates a "help" message for the user of the module.
|
protected joptsimple.OptionParser |
getOptionParser()
Deprecated.
getOptionParser is an internal method to parse command line args.
|
ReturnValue |
init()
Deprecated.
init.
|
get_galaxy_xml, getAlgorithm, getMetadata, getParameters, getProcessingAccession, getStderrFile, getStdoutFile, setAlgorithm, setMetadata, setParameters, setProcessingAccession, setStderrFile, setStdoutFile
protected joptsimple.OptionParser getOptionParser()
getOptionParser
in class Module
public String get_syntax()
get_syntax
in interface ModuleInterface
get_syntax
in class Module
public ReturnValue init()
init.
The init method is where you put any code needed to setup your module. Here I set some basic information in the ReturnValue object which will eventually populate the "processing" table in seqware_meta_db. I also create a temporary directory using the FileTools object. init is optionalinit
in interface ModuleInterface
init
in class Module
public ReturnValue do_verify_parameters()
do_verify_parameters.
Verifies that the parameters make sensedo_verify_parameters
in interface ModuleInterface
do_verify_parameters
in class Module
public ReturnValue do_verify_input()
do_verify_input.
The do_verify_input method ensures that the input is reasonable and valid for this tool. For this generic command runner we really can't tell if thedo_verify_input
in interface ModuleInterface
do_verify_input
in class Module
public ReturnValue do_test()
do_test.
This is really an optional method but a very good idea. You would test the programs your calling here by running them on a "known good" test dataset and then compare the new answer with the previous known good answer. Other forms of testing could be encapsulated here as well.do_test
in interface ModuleInterface
do_test
in class Module
public ReturnValue do_run()
do_run.
This is the core of a module. It just saves metadata back to the DB using the standardized ReturnValue object as a wrapper.do_run
in interface ModuleInterface
do_run
in class Module
public ReturnValue do_verify_output()
do_verify_output.
A method to check to make sure the output was created correctlydo_verify_output
in interface ModuleInterface
do_verify_output
in class Module
public ReturnValue clean_up()
clean_up.
A cleanup method, make sure you cleanup files that are outside the current working directory since Pegasus won't clean those for you. clean_up is optionalclean_up
in interface ModuleInterface
clean_up
in class Module
Copyright © 2015 SeqWare. All rights reserved.