• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision20e4778958ed3cd76e0c028af0967c64ac6bb797 (tree)
Time2015-03-02 10:28:15
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Modify: PIONE tutorial Advanced5
modified: SampleCode/PIONE/Advanced5/Main.pione

Change Summary

Incremental Difference

--- a/SampleCode/PIONE/Advanced5/Main.pione
+++ b/SampleCode/PIONE/Advanced5/Main.pione
@@ -1,17 +1,73 @@
11 param $task := 2
22 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)
460
561 Rule Main
662 input '*.roi'.all
763 input 'Makefile'
8- input 'Makefile.config'
964 output '*.avg'.all
1065 output '*.tiff'.all
1166 output 'all.logps'
1267 output 'all.treeinfo'
1368 output 'all.avgsortlst'
1469 Flow
70+ rule SetParam
1571 rule Preprocess {filelist:$I[1].all, num:1.upto($task), length:$I[1].length()}
1672 rule Process
1773 rule Refinement {num:1.upto($divide)}
@@ -19,6 +75,17 @@ Flow
1975 rule MontageAverage
2076 End
2177
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+
2289 Rule Preprocess
2390 input $filelist.nth(((($num-1)*((($length-1)/$task)+1))+1).upto((($num*((($length-1)/$task)+1))|$length).min()))
2491 input 'Makefile'
@@ -219,5 +286,3 @@ Action
219286 mrcImageMontageCreate -i {$I[1]} -o {$O[1]}
220287 mrc2tiff -i {$O[1]} -o {$O[2]}
221288 End
222-
223-param $roi := false
Show on old repository browser