-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_cryolo_picking.sh
executable file
·44 lines (32 loc) · 1.32 KB
/
run_cryolo_picking.sh
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
#! /usr/bin/env bash
# See documentation at <http://sphire.mpg.de/wiki/doku.php?id=pipeline:window:cryolo>
# Pick all micrographs with cryolo, using a generic model
# --weights indicates which model to use: optionally provide a model trained
# specifically on your own data here
# --threshold is a picking threshold: default 0.3, increase to make it more
# picky, decrease to make it more greedy
# --distance will consider duplicates two particles that are closer to each
# other than the set distance, and will only keep one such particle
# --otf means micrographs will be low-pass filtered on the fly and not saved.
# This saves disk space at the expense of slightly longer picking time. If you
# want to run picking several times with different options, removing this option
# might speed up subsequent runs.
# --gpu designates which GPU to use
# This line depends on your environment setup.
# Comment it out or edit it as needed.
module purge
module load cuda/9.0 cryolo/v1.5.1
RUN="001"
if [ ! -d coordinates_"$RUN" ]; then
mkdir coordinates_"$RUN"
fi
cryolo_predict.py \
--conf config.json \
--weights gmodel_phosnet_20190314.h5 \
--input micrographs/ \
--output coordinates_"$RUN"/ \
--threshold 0.3 \
--distance 0 \
--otf \
--gpu 0 \
2>cryolo_picking_"$RUN".err | tee cryolo_picking_"$RUN".log