use of ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService in project irida by phac-nml.
the class IridaWorkflowsServiceIT method setup.
@Before
public void setup() throws IOException, URISyntaxException, IridaWorkflowException {
Path workflowVersion1DirectoryPath = Paths.get(TestAnalysis.class.getResource("workflows/TestAnalysis/1.0").toURI());
Path workflowVersion2DirectoryPath = Paths.get(TestAnalysis.class.getResource("workflows/TestAnalysis/2.0").toURI());
Path workflowPhylogenomicsDirectoryPath = Paths.get(TestAnalysis.class.getResource("workflows/AnalysisPhylogenomicsPipeline/0.1").toURI());
iridaWorkflowsService = new IridaWorkflowsService(new IridaWorkflowSet(Sets.newHashSet()), new IridaWorkflowIdSet(Sets.newHashSet()));
testWorkflow1v1 = iridaWorkflowLoaderService.loadIridaWorkflowFromDirectory(workflowVersion1DirectoryPath);
testWorkflow1v2 = iridaWorkflowLoaderService.loadIridaWorkflowFromDirectory(workflowVersion2DirectoryPath);
testWorkflowPhylogenomics = iridaWorkflowLoaderService.loadIridaWorkflowFromDirectory(workflowPhylogenomicsDirectoryPath);
}
use of ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService in project irida by phac-nml.
the class ToolsListExporter method getDefaultWorkflows.
private static Map<AnalysisType, IridaWorkflow> getDefaultWorkflows() throws IridaWorkflowNotFoundException {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.getEnvironment().setActiveProfiles("dev");
context.register(new Class[] { IridaApiPropertyPlaceholderConfig.class, IridaWorkflowsConfig.class });
context.refresh();
IridaWorkflowsService iridaWorkflowsService = context.getBean(IridaWorkflowsService.class);
Map<AnalysisType, IridaWorkflow> workflows = iridaWorkflowsService.getAllDefaultWorkflowsByType(Sets.newHashSet(AnalysisType.executableAnalysisTypes()));
context.close();
return workflows;
}
use of ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService in project irida by phac-nml.
the class AnalysesListingServiceTest method init.
@Before
public void init() {
analysisSubmissionService = mock(AnalysisSubmissionService.class);
IridaWorkflowsService iridaWorkflowsService = mock(IridaWorkflowsService.class);
UpdateAnalysisSubmissionPermission updateAnalysisPermission = mock(UpdateAnalysisSubmissionPermission.class);
MessageSource messageSource = mock(MessageSource.class);
analysesListingService = new AnalysesListingService(analysisSubmissionService, iridaWorkflowsService, updateAnalysisPermission, messageSource);
}
use of ca.corefacility.bioinformatics.irida.service.workflow.IridaWorkflowsService in project irida by phac-nml.
the class IridaWorkflowsServiceTest method setup.
@Before
public void setup() throws IridaWorkflowException {
iridaWorkflow = IridaWorkflowTestBuilder.buildTestWorkflow(iridaWorkflowId, IridaWorkflowTestBuilder.Input.SINGLE, "reference");
iridaWorkflow2 = IridaWorkflowTestBuilder.buildTestWorkflow(iridaWorkflowId2, IridaWorkflowTestBuilder.Input.SINGLE, "reference");
iridaWorkflow3 = IridaWorkflowTestBuilder.buildTestWorkflow(iridaWorkflowId3, IridaWorkflowTestBuilder.Input.SINGLE, "reference");
iridaWorkflowSet = new IridaWorkflowSet(Sets.newHashSet(iridaWorkflow, iridaWorkflow2));
defaultIridaWorkflowIdSet = new IridaWorkflowIdSet(Sets.newHashSet());
iridaWorkflowsService = new IridaWorkflowsService(iridaWorkflowSet, defaultIridaWorkflowIdSet);
}
Aggregations