• R/O
  • HTTP
  • SSH
  • HTTPS

tutorial: Commit

This repository is for tutorials of Eos.


Commit MetaInfo

Revision0ba1adc2daa6547ac941819ec3bd04e08f8bf057 (tree)
Time2014-11-19 17:53:09
Authorkinoshita-eos <kinoshita@yasu...>
Commiterkinoshita-eos

Log Message

Add: tutorial for PIONE Package.
new file: SampleCode/PIONE/Package2/pione-package.json
new file: SampleCode/PIONE/Package3/Final.pione
new file: SampleCode/PIONE/Package3/First.pione
new file: SampleCode/PIONE/Package3/Initial.pione
new file: SampleCode/PIONE/Package3/Main.pione
new file: SampleCode/PIONE/Package3/Second.pione
Add: tutorial for PIONE WebClient.
new file: SampleCode/PIONE/Packages/CenterGet(Kinoshita)+v0.0.1.ppg
new file: SampleCode/PIONE/Packages/HelloWorld(Kinoshita)+v0.0.1.ppg

Change Summary

Incremental Difference

--- /dev/null
+++ b/SampleCode/PIONE/Package2/pione-package.json
@@ -0,0 +1,20 @@
1+{
2+ "PackageName": "HelloWorld",
3+ "Editor": "Kinoshita",
4+ "Tag": "v0.0.1",
5+ "Parents": [
6+
7+ ],
8+ "Documents": [
9+ "HelloWorld.pione"
10+ ],
11+ "Scenarios": [
12+
13+ ],
14+ "Bins": [
15+
16+ ],
17+ "Etcs": [
18+
19+ ]
20+}
\ No newline at end of file
--- /dev/null
+++ b/SampleCode/PIONE/Package3/Final.pione
@@ -0,0 +1,23 @@
1+.@ PackageName :: "CenterGet"
2+.@ Editor :: "Kinoshita"
3+.@ Tag :: "v0.0.1"
4+
5+Rule Final
6+ input '*.mrc'
7+ input '{$I[1][1]}.roi'
8+ input 'Eos_env'
9+ output '{$I[1]}-1.tiff'
10+ output '{$I[2]}-1.tiff'
11+ output '{$I[1]}-2.tiff'
12+ output '{$I[2]}-2.tiff'
13+Action
14+ source {$I[3]}
15+ mrcImageProjection -i {$I[1]} -o {$I[1]}.2d
16+ mrc2tiff -i {$I[1]}.2d -o {$O[1]}
17+ mrcImageProjection -i {$I[1]} -o {$I[1]}.2d1 -m 1
18+ mrc2tiff -i {$I[1]}.2d1 -o {$O[3]}
19+ mrcImageProjection -i {$I[2]} -o {$I[2]}.2d
20+ mrc2tiff -i {$I[2]}.2d -o {$O[2]}
21+ mrcImageProjection -i {$I[2]} -o {$I[2]}.2d1 -m 1
22+ mrc2tiff -i {$I[2]}.2d1 -o {$O[4]}
23+End
--- /dev/null
+++ b/SampleCode/PIONE/Package3/First.pione
@@ -0,0 +1,16 @@
1+.@ PackageName :: "CenterGet"
2+.@ Editor :: "Kinoshita"
3+.@ Tag :: "v0.0.1"
4+
5+Rule First
6+ input '*.mrc'
7+ input 'Eos_env'
8+ output '{$I[1]}.info'
9+Action
10+ source {$I[2]}
11+ mrcImageInfo -I -i {$I[1]} \
12+ | head -2 | tail -1 \
13+ | awk '{printf("%s %s %s", $3, $4, $5)}' \
14+ | tr -c '[0-9]' ' ' \
15+ > {$O[1]}
16+End
--- /dev/null
+++ b/SampleCode/PIONE/Package3/Initial.pione
@@ -0,0 +1,10 @@
1+.@ PackageName :: "CenterGet"
2+.@ Editor :: "Kinoshita"
3+.@ Tag :: "v0.0.1"
4+
5+Rule Initial
6+ input '*.mrc'
7+ output '{$I[1][1]}.parameters'
8+Action
9+ echo "40 40 50" > {$O[1]}
10+End
--- /dev/null
+++ b/SampleCode/PIONE/Package3/Main.pione
@@ -0,0 +1,15 @@
1+.@ PackageName :: "CenterGet"
2+.@ Editor :: "Kinoshita"
3+.@ Tag :: "v0.0.1"
4+
5+Rule Main
6+ input '*.mrc'.all
7+ input 'Eos_env'
8+ output '*.roi'
9+ output '*.tiff'
10+Flow
11+ rule Initial
12+ rule First
13+ rule Second
14+ rule Final
15+End
--- /dev/null
+++ b/SampleCode/PIONE/Package3/Second.pione
@@ -0,0 +1,22 @@
1+.@ PackageName :: "CenterGet"
2+.@ Editor :: "Kinoshita"
3+.@ Tag :: "v0.0.1"
4+
5+Rule Second
6+ input '*.mrc'
7+ input '{$I[1]}.info'
8+ input '{$I[1][1]}.parameters'
9+ input 'Eos_env'
10+ output '{$I[1][1]}.roi'
11+Action
12+ source {$I[4]}
13+ Center_x=$(awk '{printf("%s\n", $1)}' {$I[2]})
14+ Center_y=$(awk '{printf("%s\n", $2)}' {$I[2]})
15+ Center_z=$(awk '{printf("%s\n", $3)}' {$I[2]})
16+ N_x=$(awk '{printf("%s\n", $1)}' {$I[3]})
17+ N_y=$(awk '{printf("%s\n", $2)}' {$I[3]})
18+ N_z=$(awk '{printf("%s\n", $3)}' {$I[3]})
19+ mrcImageCenterGet -i {$I[1]} -o {$O[1]} \
20+ -Cx $Center_x -Cy $Center_y -Cz $Center_z \
21+ -Nx $N_x -Ny $N_y -Nz $N_z
22+End
Binary files /dev/null and b/SampleCode/PIONE/Packages/CenterGet(Kinoshita)+v0.0.1.ppg differ
Binary files /dev/null and b/SampleCode/PIONE/Packages/HelloWorld(Kinoshita)+v0.0.1.ppg differ
Show on old repository browser