Class UndeterminedIndexesProcessThread
- java.lang.Object
-
- fr.ens.biologie.genomique.aozan.collectors.UndeterminedIndexesProcessThread
-
-
Constructor Summary
Constructors Constructor Description UndeterminedIndexesProcessThread(RunData data, FastqSample fastqSample, File reportDir, File undeterminedIndexedXSLFile)
Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwable
getException()
Get the exception generated by the call to processSequences in the run() method.FastqSample
getFastqSample()
Return the fastqSample which represent a sample to treat.RunData
getResults()
Get the results of the analysis.boolean
isSuccess()
Test if the call to run method was a success.protected void
logThreadEnd(String duration)
protected void
logThreadStart()
static int
mismatches(String a, String b)
Get the number of mismatches of two string of the same length.protected void
process()
protected void
processResults()
Process results after the end of the thread.void
run()
protected void
setException(Throwable exception)
Set the exception if occurs.protected void
setSuccess(boolean success)
Set if the process has been successful.
-
-
-
Constructor Detail
-
UndeterminedIndexesProcessThread
public UndeterminedIndexesProcessThread(RunData data, FastqSample fastqSample, File reportDir, File undeterminedIndexedXSLFile) throws AozanException
Constructor.- Parameters:
data
- run data instancefastqSample
- sample to processreportDir
- output report directoryundeterminedIndexedXSLFile
- xsl file use to create report html- Throws:
AozanException
- if sample cannot be processed
-
-
Method Detail
-
logThreadStart
protected void logThreadStart()
-
process
protected void process() throws AozanException
- Throws:
AozanException
-
logThreadEnd
protected void logThreadEnd(String duration)
-
processResults
protected void processResults() throws AozanException
Process results after the end of the thread.- Throws:
AozanException
- if an error occurs while generate report
-
mismatches
public static final int mismatches(String a, String b)
Get the number of mismatches of two string of the same length.- Parameters:
a
- the first stringb
- the second string- Returns:
- the number of mismatches
-
getResults
public RunData getResults()
Get the results of the analysis.- Returns:
- a RunData object with only the result of the thread
-
getException
public Throwable getException()
Get the exception generated by the call to processSequences in the run() method.- Returns:
- a exception object or null if no Exception has been thrown
-
isSuccess
public boolean isSuccess()
Test if the call to run method was a success.- Returns:
- true if the call to run method was a success
-
getFastqSample
public FastqSample getFastqSample()
Return the fastqSample which represent a sample to treat.- Returns:
- fastqSample, object which represent a sample to treat
-
setException
protected void setException(Throwable exception)
Set the exception if occurs.- Parameters:
exception
- the exception
-
setSuccess
protected void setSuccess(boolean success)
Set if the process has been successful.- Parameters:
success
- the success result
-
-