Class SISTRSampleUpdater
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.pipeline.results.updater.impl.SISTRSampleUpdater
-
- All Implemented Interfaces:
AnalysisSampleUpdater
@Component public class SISTRSampleUpdater extends java.lang.Object implements AnalysisSampleUpdater
AnalysisSampleUpdater
that adds a number of results from a SISTR run to the metadata of aSample
-
-
Constructor Summary
Constructors Constructor Description SISTRSampleUpdater(MetadataTemplateService metadataTemplateService, SampleService sampleService, IridaWorkflowsService iridaWorkflowsService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalysisType
getAnalysisType()
Gets theAnalysisType
this updater service handles.void
update(java.util.Collection<Sample> samples, AnalysisSubmission analysis)
Add SISTR results to the metadata of the givenSample
s
-
-
-
Constructor Detail
-
SISTRSampleUpdater
@Autowired public SISTRSampleUpdater(MetadataTemplateService metadataTemplateService, SampleService sampleService, IridaWorkflowsService iridaWorkflowsService)
-
-
Method Detail
-
update
public void update(java.util.Collection<Sample> samples, AnalysisSubmission analysis) throws PostProcessingException
Add SISTR results to the metadata of the givenSample
s- Specified by:
update
in interfaceAnalysisSampleUpdater
- Parameters:
samples
- The samples to update.analysis
- theAnalysisSubmission
to apply to the samples- Throws:
PostProcessingException
- if the method cannot read the "sistr-predictions" output file
-
getAnalysisType
public AnalysisType getAnalysisType()
Description copied from interface:AnalysisSampleUpdater
Gets theAnalysisType
this updater service handles.- Specified by:
getAnalysisType
in interfaceAnalysisSampleUpdater
- Returns:
- The
AnalysisType
.
-
-