Class QualityMetricsCollector
java.lang.Object
fr.ens.biologie.genomique.aozan.collectors.interop.QualityMetricsCollector
- All Implemented Interfaces:
Collector
This class collects run data by reading the QualityMetricsOut.bin in InterOp
directory.
- Since:
- 2.0
- Author:
- Cyril Firmo
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Remove temporary files.voidCollect data from QualityMetric interOpFile.voidconfigure(QC qc, CollectorConfiguration conf) Configure the collector with the path of the run data.Get the name of the collectors required to run this collector.Gets the directory interOp file path.intGets the lanes count.getName()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.intGets the reads count.fr.ens.biologie.genomique.aozan.collectors.interop.ReadsDataGets the reads data.booleanTest if the class is a summary collector.
-
Field Details
-
COLLECTOR_NAME
The sub-collector name from ReadCollector.- See Also:
-
DATA_PREFIX
- See Also:
-
FORK_VERSION_5
- See Also:
-
FORK_VERSION_6
- See Also:
-
FORK_VERSION_7
- See Also:
-
-
Constructor Details
-
QualityMetricsCollector
public QualityMetricsCollector()
-
-
Method Details
-
getName
Description copied from interface:CollectorGet the name of the collector.- Returns:
- the name of the collector
-
collect
Collect data from QualityMetric interOpFile.- Specified by:
collectin interfaceCollector- Parameters:
data- result data object- Throws:
AozanException- if an error occurs while collecting data
-
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
Description copied from interface:CollectorConfigure the collector with the path of the run data. -
getReadFromCycleNumber
Define the readNumber corresponding to the cycle.- Parameters:
cycleNumber- the cycle number- Returns:
- readNumber
- Throws:
AozanException- if cycleNumber invalid or if no read found
-
clear
public void clear()Remove temporary files. -
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
-