Project

General

Profile

Appion autoRelauncher » History » Version 1

Anchi Cheng, 03/15/2022 06:35 PM

1 1 Anchi Cheng
h1. Appion autoRelauncher
2
3
This is a feature to repeat the array of appion scripts and their most recent parameters from an old session to apply to the new session.
4
5
For example, frame alignment was run on en preset images of an old session 22mar01a, and ctffind4 was run on the en-a preset image generated from the output of the frame alignment.  Once a new session 22mar02a is started, we want to launch 2 parallel frame alignment runs with the same parameters on gpuid 1 and 2. And then run 4 instances of ctffind4 on the same host named appion_server on 22mar02a. We will setup:
6
7
1. your_appion_wrapper createAutoHost.py
8
9
This interactive program will allow you to setup the configuration for the host you run this from.  This only needs to be set once if you don't plan to change it.
10
<pre>
11
running autohost creation on appion_server
12
hostname (as str) = appion_server
13
appion_wrapper (as str) = your_appion_wrapper
14
ddalign_gpus (as list) = [1,2]
15
loop_max (as int) = 4
16
</pre>
17
18
2. Testing autoRelauncher
19
20
<pre>
21
your_appion_wrapper autoRelauncher.py --old-session=22mar01a --new-session=22mar02a --testing
22
</pre>
23
This generate the appion scripts it will run.  You can check session name, sessionid, gpuid etc that you typically have to change when relaunch manually.
24
25
3. Run autoRelauncher
26
27
Remove --testing flag makes it follow the sequence and run these scripts.  There are jobtype dependency coded in autoRelauncher.py so that ctffind script will not launch before an image with en-a preset exists.
28
<pre>
29
your_appion_wrapper autoRelauncher.py --old-session=22mar01a --new-session=22mar02a --testing
30
</pre>