Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
bob
bob.bio.base
Commits
c56523ce
Commit
c56523ce
authored
Feb 15, 2018
by
Amir MOHAMMADI
Browse files
use renamed class names
parent
829a329b
Pipeline
#16938
failed with stage
in 147 minutes and 53 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
bob/bio/base/script/annotate.py
View file @
c56523ce
...
...
@@ -5,22 +5,22 @@ import json
import
click
from
os.path
import
dirname
,
isfile
from
bob.extension.scripts.click_helper
import
(
verbosity_option
,
Command
,
Option
)
verbosity_option
,
Config
Command
,
Resource
Option
)
from
bob.io.base
import
create_directories_safe
from
bob.bio.base.tools.grid
import
indices
logger
=
logging
.
getLogger
(
__name__
)
@
click
.
command
(
entry_point_group
=
'bob.bio.config'
,
cls
=
Command
)
@
click
.
option
(
'--database'
,
'-d'
,
required
=
True
,
cls
=
Option
,
@
click
.
command
(
entry_point_group
=
'bob.bio.config'
,
cls
=
Config
Command
)
@
click
.
option
(
'--database'
,
'-d'
,
required
=
True
,
cls
=
Resource
Option
,
entry_point_group
=
'bob.bio.database'
)
@
click
.
option
(
'--annotator'
,
'-a'
,
required
=
True
,
cls
=
Option
,
@
click
.
option
(
'--annotator'
,
'-a'
,
required
=
True
,
cls
=
Resource
Option
,
entry_point_group
=
'bob.bio.annotator'
)
@
click
.
option
(
'--output-dir'
,
'-o'
,
required
=
True
,
cls
=
Option
)
@
click
.
option
(
'--force'
,
'-f'
,
is_flag
=
True
,
cls
=
Option
)
@
click
.
option
(
'--output-dir'
,
'-o'
,
required
=
True
,
cls
=
Resource
Option
)
@
click
.
option
(
'--force'
,
'-f'
,
is_flag
=
True
,
cls
=
Resource
Option
)
@
click
.
option
(
'--array'
,
type
=
click
.
INT
,
default
=
1
,)
@
verbosity_option
(
cls
=
Option
)
@
verbosity_option
(
cls
=
Resource
Option
)
def
annotate
(
database
,
annotator
,
output_dir
,
force
,
array
,
**
kwargs
):
"""Annotates a database.
The annotations are written in text file (json) format which can be read
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment