This repository is for tutorials of Eos.
リビジョン | 20e4778958ed3cd76e0c028af0967c64ac6bb797 (tree) |
---|---|
日時 | 2015-03-02 10:28:15 |
作者 | kinoshita-eos <kinoshita@yasu...> |
コミッター | kinoshita-eos |
Modify: PIONE tutorial Advanced5
modified: SampleCode/PIONE/Advanced5/Main.pione
@@ -1,17 +1,73 @@ | ||
1 | 1 | param $task := 2 |
2 | 2 | param $divide := 2 |
3 | -param $refine := 5 | |
3 | +param $refine := 5 | |
4 | + | |
5 | +# Cluster Name | |
6 | +param $CLUSTER := "all" | |
7 | + | |
8 | +# Pad Parameter | |
9 | +# Width(Nx) before shrinking | |
10 | +param $PADWIDTH := 32 | |
11 | +# Height(Ny) before shrinking | |
12 | +param $PADHEIGHT := 32 | |
13 | +# Shrink for Speed Up in clustering | |
14 | +param $SHRINK := 1 | |
15 | +# Pad Mode | |
16 | +param $PADMODE := 13 | |
17 | +# LOWPASS | |
18 | +param $LowPassMode := 4 | |
19 | +param $LowPassResolution := 0.1 | |
20 | + | |
21 | +# Clustering | |
22 | +param $ClusterCorrelationMode := 19 | |
23 | +# | |
24 | +param $ClusterRotationRangeMin := 0 | |
25 | +param $ClusterRotationRangeMax := 360 | |
26 | +param $ClusterRotationRangePartitionNumber := 72 | |
27 | +param $ClusterRotationIterationNumber := 2 | |
28 | +param $ClusterRotationCorrelationMode := 0 | |
29 | +# | |
30 | +param $ClusterMode := 2 | |
31 | + | |
32 | + | |
33 | +# ClusterShow | |
34 | +param $TreeRootPositionX := 0 | |
35 | +param $TreeRootPositionY := 400 | |
36 | +param $TreeScaleX := 10 | |
37 | +param $TreeScaleY := 100 | |
38 | +param $TreeOffset := "1e1" | |
39 | + | |
40 | +# Sequence with Keys(Makefile.config for 2D Clustering) | |
41 | +$Config := ("CLUSTER":$CLUSTER) | | |
42 | + ("PADWIDTH":$PADWIDTH) | | |
43 | + ("PADHEIGHT":$PADHEIGHT) | | |
44 | + ("SHRINK":$SHRINK) | | |
45 | + ("PADMODE":$PADMODE) | | |
46 | + ("LowPassMode":$LowPassMode) | | |
47 | + ("LowPassResolution":$LowPassResolution) | | |
48 | + ("ClusterCorrelationMode":$ClusterCorrelationMode) | | |
49 | + ("ClusterRotationRangeMin":$ClusterRotationRangeMin) | | |
50 | + ("ClusterRotationRangeMax":$ClusterRotationRangeMax) | | |
51 | + ("ClusterRotationRangePartitionNumber":$ClusterRotationRangePartitionNumber) | | |
52 | + ("ClusterRotationIterationNumber":$ClusterRotationIterationNumber) | | |
53 | + ("ClusterRotationCorrelationMode":$ClusterRotationCorrelationMode) | | |
54 | + ("ClusterMode":$ClusterMode) | | |
55 | + ("TreeRootPositionX":$TreeRootPositionX) | | |
56 | + ("TreeRootPositionY":$TreeRootPositionY) | | |
57 | + ("TreeScaleX":$TreeScaleX) | | |
58 | + ("TreeScaleY":$TreeScaleY) | | |
59 | + ("TreeOffset":$TreeOffset) | |
4 | 60 | |
5 | 61 | Rule Main |
6 | 62 | input '*.roi'.all |
7 | 63 | input 'Makefile' |
8 | - input 'Makefile.config' | |
9 | 64 | output '*.avg'.all |
10 | 65 | output '*.tiff'.all |
11 | 66 | output 'all.logps' |
12 | 67 | output 'all.treeinfo' |
13 | 68 | output 'all.avgsortlst' |
14 | 69 | Flow |
70 | + rule SetParam | |
15 | 71 | rule Preprocess {filelist:$I[1].all, num:1.upto($task), length:$I[1].length()} |
16 | 72 | rule Process |
17 | 73 | rule Refinement {num:1.upto($divide)} |
@@ -19,6 +75,17 @@ Flow | ||
19 | 75 | rule MontageAverage |
20 | 76 | End |
21 | 77 | |
78 | +Rule SetParam | |
79 | + output 'Makefile.config' | |
80 | +Action | |
81 | + key=({$Config.keys}) | |
82 | + value=({$Config.values}) | |
83 | + for (( i=0; i<{$Config.length}; i++ )) | |
84 | + do | |
85 | + echo "${key[${i}]}=${value[${i}]}" >> {$O[1]} | |
86 | + done | |
87 | +End | |
88 | + | |
22 | 89 | Rule Preprocess |
23 | 90 | input $filelist.nth(((($num-1)*((($length-1)/$task)+1))+1).upto((($num*((($length-1)/$task)+1))|$length).min())) |
24 | 91 | input 'Makefile' |
@@ -219,5 +286,3 @@ Action | ||
219 | 286 | mrcImageMontageCreate -i {$I[1]} -o {$O[1]} |
220 | 287 | mrc2tiff -i {$O[1]} -o {$O[2]} |
221 | 288 | End |
222 | - | |
223 | -param $roi := false |