-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.py
executable file
·27 lines (20 loc) · 1004 Bytes
/
run.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
import curate
import flywheel
import logging
import utils
log = logging.getLogger(__name__)
if __name__ == '__main__':
with flywheel.GearContext() as gear_context:
gear_context.init_logging()
log.info('Entered gear context')
analysis_id = gear_context.destination['id']
analysis = gear_context.client.get_analysis(analysis_id)
curator_path = gear_context.get_input_path('curator')
curator = utils.load_converter(curator_path).Curator()
curator.input_file_one = gear_context.get_input_path('additional-input-one')
curator.input_file_two = gear_context.get_input_path('additional-input-two')
curator.input_file_three = gear_context.get_input_path('additional-input-three')
project = gear_context.client.get(analysis.parent['id'])
log.info('Curating project %s', project.label)
log.debug('Additional file input: %s', curator.input_file_one)
curate.main(gear_context.client, project, curator)