Class BioHanselSampleUpdater
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.pipeline.results.updater.impl.BioHanselSampleUpdater
-
- All Implemented Interfaces:
AnalysisSampleUpdater
@Component public class BioHanselSampleUpdater extends java.lang.Object implements AnalysisSampleUpdater
AnalysisSampleUpdater
for bio_hansel results to be written to metadata ofSample
s.
-
-
Constructor Summary
Constructors Constructor Description BioHanselSampleUpdater(MetadataTemplateService metadataTemplateService, SampleService sampleService)
-
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 bio_hansel results to the metadata of the givenSample
.
-
-
-
Constructor Detail
-
BioHanselSampleUpdater
@Autowired public BioHanselSampleUpdater(MetadataTemplateService metadataTemplateService, SampleService sampleService)
-
-
Method Detail
-
update
public void update(java.util.Collection<Sample> samples, AnalysisSubmission analysis) throws PostProcessingException
Add bio_hansel results to the metadata of the givenSample
.Create a bio_hansel
MetadataTemplate
for eachProject
of theSample
if one doesn't exist.- Specified by:
update
in interfaceAnalysisSampleUpdater
- Parameters:
samples
- The sample to update (collection should only have oneSample
object).analysis
- Use the results from thisAnalysisSubmission
to update theSample
metadata.- Throws:
PostProcessingException
- if the updater could not complete its processing
-
getAnalysisType
public AnalysisType getAnalysisType()
Gets theAnalysisType
this updater service handles.- Specified by:
getAnalysisType
in interfaceAnalysisSampleUpdater
- Returns:
- The
AnalysisType
.
-
-