-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocess_mP.sh
58 lines (49 loc) · 2.05 KB
/
process_mP.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
if [ -e $1/P2 ]; then
echo $1 has been already processed
exit
fi
mkdir -p $1/P2
cd $1/P2
rm -fr {optimised,indexed,refined,integrated,symmetrized,scaled}.{expt,refl} image.emd
if [ -f "../../images/Camera_Ceta_"*"$1_670_mm_0001.emd" ]; then
ln -s "../../images/Camera_Ceta_"*"$1_670_mm_0001.emd" image.emd
else
ln -s "../../images/Camera_Ceta_"*"$1_670_mm.emd" image.emd
fi
#dials.import image.emd mask=../../pixels.mask panel.pedestal=-40 distance=618 fast_slow_beam_centre=1035,1011 # image_range=$2
#dials.find_spots imported.expt gain=0.1 max_separation=4 nproc=4
#dials.search_beam_position imported.expt strong.refl
#dials.find_rotation_axis optimised.expt strong.refl # just for check
ln -s ../P1/strong.refl .
ln -s ../P1/imported.expt .
if [ ! -f optimised.expt ]; then
cp imported.expt optimised.expt
fi
dials.index optimised.expt strong.refl detector.fix=distance space_group=P2 unit_cell=10,20,30,90,100,90
if [ ! -f indexed.expt ]; then
dials.index optimised.expt strong.refl detector.fix=distance indexing.method=fft1d space_group=P2 unit_cell=10,20,30,90,100,90
fi
#if [ ! -f indexed.expt ]; then
# dials.index imported.expt strong.refl detector.fix=distance indexing.method=real_space_grid_search #space_group=P2 # unit_cell=5,10,20,90,90,90
#fi
if [ ! -f indexed.expt ]; then
exit
fi
dials.refine indexed.expt indexed.refl scan_varying=False detector.fix=distance
dials.refine refined.expt refined.refl scan_varying=True detector.fix=distance
dials.integrate refined.expt refined.refl prediction.d_min=0.6 nproc=4 profile.gaussian_rs.min_spots.overall=25
if [ ! -f integrated.expt ]; then
exit
fi
dials.check_indexing_symmetry integrated.{expt,refl} d_min=1.2 d_max=6 grid=2
dials.scale integrated.expt integrated.refl d_min=0.8 json=scaled.json
dials.python ../../../scripts/filter_blanks_fixed.py integrated.expt integrated.refl
if [ ! -f not_blank.expt ]; then
exit
fi
dials.symmetry integrated.expt integrated.refl
mkdir not_blank
cd not_blank
dials.scale ../not_blank.{expt,refl} d_min=0.65 json=scaled.json
cd ..