Class CopyInputDataModule
java.lang.Object
fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
fr.ens.biologie.genomique.eoulsan.modules.CopyInputDataModule
- All Implemented Interfaces:
Module
Copy input files of a format in another location or in different compression format.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(StepConfigurationContext context, Set<Parameter> stepParameters) Set the parameters of the step to configure the module.static StringencodeAllowedCompressionsParameterValue(EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> outputCompressionAllowed) Method to encode an EnumSet of the allowed compressions parameter in a string.execute(TaskContext context, TaskStatus status) Execute a task step.Get the input data format.getName()Get the name of the module.Get the output data format.fr.ens.biologie.genomique.kenetre.util.VersionGet version of the Module.Methods inherited from class fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
getChecker, getDescription, getParallelizationMode, getRequiredEoulsanVersion, getRequirements
-
Field Details
-
MODULE_NAME
- See Also:
-
FORMAT_PARAMETER
- See Also:
-
OUTPUT_COMPRESSION_PARAMETER
- See Also:
-
OUTPUT_COMPRESSIONS_ALLOWED_PARAMETER
- See Also:
-
-
Constructor Details
-
CopyInputDataModule
public CopyInputDataModule()
-
-
Method Details
-
getName
Description copied from interface:ModuleGet the name of the module.- Returns:
- the name of the module
-
getVersion
public fr.ens.biologie.genomique.kenetre.util.Version getVersion()Description copied from interface:ModuleGet version of the Module.- Returns:
- a Version object with the version of the Module
-
getInputPorts
Description copied from interface:ModuleGet the input data format.- Specified by:
getInputPortsin interfaceModule- Overrides:
getInputPortsin classAbstractModule- Returns:
- a set with DataFormat or null if the module does not any need input format
-
getOutputPorts
Description copied from interface:ModuleGet the output data format.- Specified by:
getOutputPortsin interfaceModule- Overrides:
getOutputPortsin classAbstractModule- Returns:
- an set with DataFormat or null if the module does not produce any output data
-
configure
public void configure(StepConfigurationContext context, Set<Parameter> stepParameters) throws EoulsanException Description copied from interface:ModuleSet the parameters of the step to configure the module.- Specified by:
configurein interfaceModule- Overrides:
configurein classAbstractModule- Parameters:
context- configuration context. The context can be null for generator stepsstepParameters- parameters of the step- Throws:
EoulsanException- if a parameter is invalid
-
execute
Description copied from interface:ModuleExecute a task step.- Parameters:
context- Execution contextstatus- of the task- Returns:
- a TaskResult object
-
encodeAllowedCompressionsParameterValue
public static String encodeAllowedCompressionsParameterValue(EnumSet<fr.ens.biologie.genomique.kenetre.io.CompressionType> outputCompressionAllowed) Method to encode an EnumSet of the allowed compressions parameter in a string.- Parameters:
outputCompressionAllowed- the EnumSet to encode- Returns:
- a string with the EnumSet encoded
-