OSDN Git Service

Add: tutorial for mrcImageROI3D v2.0.2p0039
authorkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 20 Oct 2014 02:28:08 +0000 (11:28 +0900)
committerkinoshita-eos <kinoshita@yasunaga-lab.bio.kyutech.ac.jp>
Mon, 20 Oct 2014 02:28:08 +0000 (11:28 +0900)
 Changes to be committed:
new file:   Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile
new file:   Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib

Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile [new file with mode: 0644]
Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib [new file with mode: 0644]

diff --git a/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile b/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile
new file mode 100644 (file)
index 0000000..2adf4de
--- /dev/null
@@ -0,0 +1,104 @@
+#
+#      This is Main Makefile for mrcImageROI3D.
+#
+
+#### Root Makefile ####
+MAKE_ROOT=mrcImageROI3D
+
+#### Input extention ####
+INI=ini
+OUT=roi
+
+#### Suffixes rule ####
+# Defined at Sub
+
+#### INCLUDE ####
+-include ${EOS_HOME}/tutorial/TIPS/Help/Makefile/Makefile-lib
+-include Makefile-lib
+
+#### Definition ####
+# Path of Input File
+# Basically, use a linked data from /SampleData.
+INPUT_PATH=${EOS_HOME}/tutorial/SampleData/1VOM-N.mrc
+
+### FileData
+FILE_NAME=Input
+OUT_FILE_NAME="$(FILE_NAME)-roi"
+
+### Option ###
+## -x
+X_START=10
+X_END=50
+## -y
+Y_START=10
+Y_END=50
+## -z
+Z_START=20
+Z_END=60
+
+#### Rules of the list created ####
+# Defined at Sub
+
+##### Commands #####
+# Defined at Sub basically
+# By make Initial, Create input data for this command.
+Initial::
+       make InitialData;
+
+# By make Exe, Execute the sample of this command.
+Exe::
+       make $(FILE_NAME).$(OUT)
+
+# By make Final, Make visualize Output for this command.
+Final::
+       make InitialImage;
+       make OutputImage
+
+# By make all, Initial -> Exe.
+all::
+       make Initial;
+       make Exe;
+       make Final;
+
+help_mrcImageROI3D::
+       @echo
+       @echo "Makefile for mrcImageROI3D"
+       @echo "This is Main Makefile for mrcImageROI3D."
+       @echo
+       @echo " (Command):"
+       @echo "         Initial:                Create input data for this command."
+       @echo "                 (Setting Data):"
+       @echo "                 INI:            input extention for Initial"
+       @echo "                 OUT:            output extention"
+       @echo
+       @echo "         Exe:                    Execute the sample of this command."
+       @echo "                 (Setting Data):"
+       @echo "                 X_START:        -x: start of x"
+       @echo "                 X_END:          -x: end of x"
+       @echo "                 Y_START:        -x: start of y"
+       @echo "                 Y_END:          -x: end of y"
+       @echo "                 Z_START:        -x: start of z"
+       @echo "                 Z_END:          -x: end of z"
+       @echo
+       @echo "         Final:                  Make visualize Output for this command."
+       @echo
+       @echo "         all:                    Initial -> Exe."
+       @echo
+       @echo " (Setting Data):"
+       @echo "         FILE_NAME:              filename of input"
+       @echo "         OUT_FILE_NAME:          filename of output"
+
+##### Commands(Input to Output) #####
+# Defined at Sub
+.$(INI).$(OUT):
+       @if [ ! -z "$(X_START)" -a ! -z "$(X_END)" ] ; then \
+               OPTION="$$OPTION -x $(X_START) $(X_END)"; \
+       fi; \
+       if [ ! -z "$(Y_START)" -a ! -z "$(Y_END)" ] ; then \
+               OPTION="$$OPTION -y $(Y_START) $(Y_END)"; \
+       fi; \
+       if [ ! -z "$(Z_START)" -a ! -z "$(Z_END)" ] ; then \
+               OPTION="$$OPTION -z $(Z_START) $(Z_END)"; \
+       fi; \
+       echo "mrcImageROI3D -i $*.$(INI) -o $(OUT_FILE_NAME).$(OUT) $$OPTION"; \
+       mrcImageROI3D -i $*.$(INI) -o $(OUT_FILE_NAME).$(OUT) $$OPTION;
diff --git a/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib b/Small Tools/mrcImage/mrcImageROI3D/Makefile/Makefile-lib
new file mode 100644 (file)
index 0000000..cceafe9
--- /dev/null
@@ -0,0 +1,42 @@
+#
+#      This is Sub Makefile for mrcImageROI3D.
+#
+
+#### Input extention ####
+# Defined at Main
+
+#### Suffixes rule ####
+.SUFFIXES: .$(INI) .$(OUT)
+
+#### INCLUDE ####
+# Use TIPS File.
+-include ${EOS_HOME}/tutorial/TIPS/Projection3DImage/Makefile/Makefile-lib
+
+#### Definition ####
+# Defined at Main
+
+#### Rules of the list created ####
+
+
+##### Commands #####
+InitialData::
+       touch $(FILE_NAME).$(INI);
+       rm $(FILE_NAME).$(INI);
+       ln -s $(INPUT_PATH) $(FILE_NAME).$(INI)
+       
+InitialImage::
+       export PRJ_FILE_NAME=$(FILE_NAME); \
+       export IN_PRJ=$(INI); \
+       export PRJ=$(INI)2d; \
+       export OUT_PRJ=tiff; \
+       make Projection3DImage;
+
+OutputImage::
+       export PRJ_FILE_NAME=$(OUT_FILE_NAME); \
+       export IN_PRJ=$(OUT); \
+       export PRJ=$(OUT)2d; \
+       export OUT_PRJ=tiff; \
+       make Projection3DImage;
+
+##### Commands(Input to Output) #####
+