Class AbstractSAM2BAMModule
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
-
- fr.ens.biologie.genomique.eoulsan.modules.mapping.AbstractSAM2BAMModule
-
- All Implemented Interfaces:
Module
- Direct Known Subclasses:
SAM2BAMHadoopModule,SAM2BAMLocalModule
public abstract class AbstractSAM2BAMModule extends AbstractModule
This class define a module for converting SAM files into BAM.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCOUNTER_GROUP
-
Constructor Summary
Constructors Constructor Description AbstractSAM2BAMModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(StepConfigurationContext context, Set<Parameter> stepParameters)Set the parameters of the step to configure the module.protected intgetCompressionLevel()Get the compression level to use.StringgetDescription()Get the description of the moduleInputPortsgetInputPorts()Get the input data format.protected intgetMaxRecordsInRam()Get the maximum records in RAM.StringgetName()Get the name of the module.OutputPortsgetOutputPorts()Get the output data format.protected intgetReducerTaskCount()Get the reducer task count.fr.ens.biologie.genomique.kenetre.util.VersiongetVersion()Get version of the Module.-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.modules.AbstractModule
getChecker, getParallelizationMode, getRequiredEoulsanVersion, getRequirements
-
-
-
-
Field Detail
-
COUNTER_GROUP
protected static final String COUNTER_GROUP
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCompressionLevel
protected int getCompressionLevel()
Get the compression level to use.- Returns:
- the compression level to use
-
getReducerTaskCount
protected int getReducerTaskCount()
Get the reducer task count.- Returns:
- the reducer task count
-
getMaxRecordsInRam
protected int getMaxRecordsInRam()
Get the maximum records in RAM.- Returns:
- the reducer task count
-
getName
public String getName()
Description copied from interface:ModuleGet the name of the module.- Returns:
- the name of the module
-
getDescription
public String getDescription()
Description copied from interface:ModuleGet the description of the module- Specified by:
getDescriptionin interfaceModule- Overrides:
getDescriptionin classAbstractModule- Returns:
- the description 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
public InputPorts 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
public OutputPorts 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
-
-