-
Notifications
You must be signed in to change notification settings - Fork 1
/
genome_annotation.py
47 lines (36 loc) 路 1.19 KB
/
genome_annotation.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
#!/usr/bin/env python
__author__ = "Vini Salazar"
__license__ = "MIT"
__maintainer__ = "Vini Salazar"
__url__ = "https://github.com/vinisalazar/bioprov"
__version__ = "0.1.18a"
"""
Genome annotation workflow module.
'Genome annotation with Prodigal, Prokka and the COG database.'
This can be run by itself as a script or called
with the BioProv CLI application (recommended).
"""
from bioprov.src.workflow import Workflow, Step
from bioprov.programs import prodigal # , prokka
def genome_annotation(**kwargs):
_genome_annotation = Workflow(
name="genome_annotation",
description="Genome annotation with Prodigal, Prokka and the COG database.",
input_type="dataframe",
index_col="sample-id",
file_columns="assembly",
**kwargs,
)
# Create steps from preset programs.
prodigal_preset, prokka_preset = (prodigal(), None) # prokka()
steps = [
Step(prodigal_preset, default=True),
# Step(prokka_preset, default=False),
]
# Add steps to parser
for _step in steps:
_genome_annotation.add_step(_step)
return _genome_annotation
if __name__ == "__main__":
workflow = genome_annotation()
workflow.main()