@@ -5,7 +5,7 @@ Generating Workflows
55
66WfGen is a component of WfCommons project that targets the generation of realistic
77synthetic workflow instances with a variety of characteristics. The
8- :class: `~wfcommons.generator .generator.WorkflowGenerator ` class uses recipes
8+ :class: `~wfcommons.wfgen .generator.WorkflowGenerator ` class uses recipes
99of workflows (as described in :ref: `workflow-recipe-generator-label `)
1010for creating the realistic synthetic instances. The resulting workflows are represented in the
1111:ref: `json-format-label `, which is already supported by simulation frameworks such as
@@ -19,29 +19,28 @@ WfCommons Workflows Recipes
1919This Python package provides several *workflow recipes * for generating realistic
2020synthetic workflow instances. The current list of available workflow recipes include:
2121
22- - :class: `~wfcommons.wfchef.recipes.blast_recipe.BlastRecipe `: :code: `from wfcommons.wfchef.recipes import BlastWorkflowRecipe `
23- - :class: `~wfcommons.wfchef.recipes.bwa_recipe.BwaRecipe `: :code: `from wfcommons.wfchef.recipes import BwaRecipe `
24- - :class: `~wfcommons.wfchef.recipes.cycles_recipe.CyclesRecipe `: :code: `from wfcommons.wfchef.recipes import CyclesRecipe `
25- - :class: `~wfcommons.wfchef.recipes.epigenomics_recipe.EpigenomicsRecipe `: :code: `from wfcommons.wfchef.recipes import EpigenomicsRecipe `
26- - :class: `~wfcommons.wfchef.recipes.genome_recipe.GenomeRecipe `: :code: `from wfcommons.wfchef.recipes import GenomeRecipe `
27- - :class: `~wfcommons.wfchef.recipes.montage_recipe.MontageRecipe `: :code: `from wfcommons.wfchef.recipes import MontageRecipe `
28- - :class: `~wfcommons.wfchef.recipes.seismology_recipe.SeismologyRecipe `: :code: `from wfcommons.wfchef.recipes import SeismologyRecipe `
29- - :class: `~wfcommons.wfchef.recipes.soykb_recipe.SoykbRecipe `: :code: `from wfcommons.wfchef.recipes import SoykbRecipe `
30- - :class: `~wfcommons.wfchef.recipes.srasearch_recipe.SrasearchRecipe `: :code: `from wfcommons.wfchef.recipes import SrasearchRecipe `
31-
22+ - :class: `~wfcommons.wfchef.recipes.blast.recipe.BlastRecipe `: :code: `from wfcommons.wfchef.recipes import BlastRecipe `
23+ - :class: `~wfcommons.wfchef.recipes.bwa.recipe.BwaRecipe `: :code: `from wfcommons.wfchef.recipes import BwaRecipe `
24+ - :class: `~wfcommons.wfchef.recipes.cycles.recipe.CyclesRecipe `: :code: `from wfcommons.wfchef.recipes import CyclesRecipe `
25+ - :class: `~wfcommons.wfchef.recipes.epigenomics.recipe.EpigenomicsRecipe `: :code: `from wfcommons.wfchef.recipes import EpigenomicsRecipe `
26+ - :class: `~wfcommons.wfchef.recipes.genome.recipe.GenomeRecipe `: :code: `from wfcommons.wfchef.recipes import GenomeRecipe `
27+ - :class: `~wfcommons.wfchef.recipes.montage.recipe.MontageRecipe `: :code: `from wfcommons.wfchef.recipes import MontageRecipe `
28+ - :class: `~wfcommons.wfchef.recipes.seismology.recipe.SeismologyRecipe `: :code: `from wfcommons.wfchef.recipes import SeismologyRecipe `
29+ - :class: `~wfcommons.wfchef.recipes.soykb.recipe.SoykbRecipe `: :code: `from wfcommons.wfchef.recipes import SoykbRecipe `
30+ - :class: `~wfcommons.wfchef.recipes.srasearch.recipe.SrasearchRecipe `: :code: `from wfcommons.wfchef.recipes import SrasearchRecipe `
3231
3332The Workflow Instances Generator
3433--------------------------------
3534
3635Synthetic workflow instances are generated using the
37- :class: `~wfcommons.generator .generator.WorkflowGenerator ` class. This class takes
38- as input a :class: `~wfcommons.generator.workflow .abstract_recipe.WorkflowRecipe `
36+ :class: `~wfcommons.wfgen .generator.WorkflowGenerator ` class. This class takes
37+ as input a :class: `~wfcommons.wfgen .abstract_recipe.WorkflowRecipe `
3938object (see in :ref: `workflow-recipe-generator-label `), and provides two methods
4039for generating synthetic workflow instances:
4140
42- - :meth: `~wfcommons.generator .generator.WorkflowGenerator.build_workflow `: generates a single synthetic workflow
41+ - :meth: `~wfcommons.wfgen .generator.WorkflowGenerator.build_workflow `: generates a single synthetic workflow
4342 instance based on the workflow recipe used to instantiate the generator.
44- - :meth: `~wfcommons.generator .generator.WorkflowGenerator.build_workflows `: generates a number of synthetic workflow
43+ - :meth: `~wfcommons.wfgen .generator.WorkflowGenerator.build_workflows `: generates a number of synthetic workflow
4544 instances based on the workflow recipe used to instantiate the generator.
4645
4746The build methods use the workflow recipe for generating realistic synthetic
@@ -88,7 +87,7 @@ os 300 tasks, builds a synthetic workflow instance, and writes the
8887synthetic instance to a JSON file. ::
8988
9089 from wfcommons.wfchef.recipes import SeismologyRecipe
91- from wfcommons.generator import WorkflowGenerator
90+ from wfcommons.wfgen import WorkflowGenerator
9291
9392 generator = WorkflowGenerator(SeismologyRecipe.from_num_tasks(250))
9493 workflow = generator.build_workflow()
@@ -99,7 +98,7 @@ The example below generates a number of 10 *Blast* synthetic
9998workflow instances for every size defined in the array :code: `num_tasks `: ::
10099
101100 from wfcommons.wfchef.recipes import BlastRecipe
102- from wfcommons.generator import WorkflowGenerator
101+ from wfcommons.wfgen import WorkflowGenerator
103102
104103 num_tasks = [100, 250, 370, 800]
105104
@@ -115,7 +114,7 @@ based on the number of tasks entered by the user (1000), builds the synthetic
115114workflow instances, and writes the synthetic instances to JSON files. ::
116115
117116 from wfcommons.wfchef.recipes import EpigenomicsRecipe
118- from wfcommons.generator import WorkflowGenerator
117+ from wfcommons.wfgen import WorkflowGenerator
119118
120119 generator = WorkflowGenerator(EpigenomicsRecipe.from_num_tasks(1000))
121120 for i, workflow in enumerate(generator.build_workflows(10)):
@@ -126,7 +125,7 @@ based on the number of tasks entered by the user (250), builds the synthetic wor
126125instance, and writes the synthetic instance to a JSON file. ::
127126
128127 from wfcommons.wfchef.recipes import CyclesRecipe
129- from wfcommons.generator import WorkflowGenerator
128+ from wfcommons.wfgen import WorkflowGenerator
130129
131130 generator = WorkflowGenerator(CyclesRecipe.from_num_tasks(250))
132131 workflow = generator.build_workflow()
0 commit comments