Class QualityMetricsCollector
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.collectors.interop.QualityMetricsCollector
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOLLECTOR_NAMEThe sub-collector name from ReadCollector.static StringDATA_PREFIXstatic StringFORK_VERSION_5static StringFORK_VERSION_6static StringFORK_VERSION_7
-
Constructor Summary
Constructors Constructor Description QualityMetricsCollector()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Remove temporary files.voidcollect(RunData data)Collect data from QualityMetric interOpFile.voidconfigure(QC qc, CollectorConfiguration conf)Configure the collector with the path of the run data.List<String>getCollectorsNamesRequiered()Get the name of the collectors required to run this collector.FilegetInterOpDir()Gets the directory interOp file path.intgetLanesCount()Gets the lanes count.StringgetName()Get the name of the collector.fr.ens.biologie.genomique.aozan.collectors.interop.ReadsData.ReadDatagetReadData(int read)Gets the read data.intgetReadFromCycleNumber(int cycleNumber)Define the readNumber corresponding to the cycle.intgetReadsCount()Gets the reads count.fr.ens.biologie.genomique.aozan.collectors.interop.ReadsDatagetReadsData()Gets the reads data.booleanisSummaryCollector()Test if the class is a summary collector.
-
-
-
Field Detail
-
COLLECTOR_NAME
public static final String COLLECTOR_NAME
The sub-collector name from ReadCollector.- See Also:
- Constant Field Values
-
DATA_PREFIX
public static final String DATA_PREFIX
- See Also:
- Constant Field Values
-
FORK_VERSION_5
public static final String FORK_VERSION_5
- See Also:
- Constant Field Values
-
FORK_VERSION_6
public static final String FORK_VERSION_6
- See Also:
- Constant Field Values
-
FORK_VERSION_7
public static final String FORK_VERSION_7
- See Also:
- Constant Field Values
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:CollectorGet the name of the collector.- Returns:
- the name of the collector
-
collect
public void collect(RunData data) throws AozanException
Collect data from QualityMetric interOpFile.- Specified by:
collectin interfaceCollector- Parameters:
data- result data object- Throws:
AozanException- if an error occurs while collecting data
-
getCollectorsNamesRequiered
public List<String> getCollectorsNamesRequiered()
Get the name of the collectors required to run this collector.- Specified by:
getCollectorsNamesRequieredin interfaceCollector- Returns:
- a list of String with the name of the required collectors
-
configure
public void configure(QC qc, CollectorConfiguration conf)
Description copied from interface:CollectorConfigure the collector with the path of the run data.
-
getReadFromCycleNumber
public int getReadFromCycleNumber(int cycleNumber) throws AozanExceptionDefine the readNumber corresponding to the cycle.- Parameters:
cycleNumber- the cycle number- Returns:
- readNumber
- Throws:
AozanException- if cycleNumber invalid or if no read found
-
getInterOpDir
public File getInterOpDir()
Gets the directory interOp file path.- Returns:
- the directory interOp file path.
-
getLanesCount
public int getLanesCount()
Gets the lanes count.- Returns:
- the lanes count
-
getReadsCount
public int getReadsCount()
Gets the reads count.- Returns:
- the reads count
-
getReadsData
public fr.ens.biologie.genomique.aozan.collectors.interop.ReadsData getReadsData()
Gets the reads data.- Returns:
- the reads data
-
getReadData
public fr.ens.biologie.genomique.aozan.collectors.interop.ReadsData.ReadData getReadData(int read)
Gets the read data.- Parameters:
read- the read- Returns:
- the read data
-
isSummaryCollector
public boolean isSummaryCollector()
Description copied from interface:CollectorTest if the class is a summary collector. A summary collector must be executed after all the other collectors.- Specified by:
isSummaryCollectorin interfaceCollector- Returns:
- true if the collector is a summary collector
-
-