]> Creatis software - vip-workflow-odin.git/commitdiff
added options field and correct odinepiexe
authorSorina Pop <sorina.pop@creatis.insa-lyon.fr>
Fri, 18 Nov 2016 13:28:25 +0000 (14:28 +0100)
committerSorina Pop <sorina.pop@creatis.insa-lyon.fr>
Fri, 18 Nov 2016 13:28:25 +0000 (14:28 +0100)
bin/odin-release.tgz
bin/odin.sh
gasw/odin.xml
workflow/odin_epi.gwendia
workflow/odin_fisp.gwendia

index ad7fb14c36a5b4a0bb8013201dbd1dc34504301d..7fb33f1d87ca15f8fc603465af23dd2b68804f8e 100644 (file)
Binary files a/bin/odin-release.tgz and b/bin/odin-release.tgz differ
index b761f604465ba146e9c647216511aa4a9b57bc00..089433f0acad4cf5d5b73fe1055b22c72aa61e64 100644 (file)
@@ -72,6 +72,17 @@ PROPATH=$1
 SMPPATH=$2
 RESDIR=$3
 ODINSEQ=$4
+OPTIONS=$5
+
+if [ "${OPTIONS}" != "no" ] 
+then
+        OPT=`echo ${OPTIONS} | sed s/_/\ /g`
+else
+        OPT=""
+fi
+
+echo "Options are $OPT"
+
 
 PRO=`basename $PROPATH`
 SMP=`basename $SMPPATH`
@@ -109,8 +120,8 @@ else
 fi
 
 #launching program odinrecopexe
-echo "executing odinrecopexe -o $OUTNAME"
-./odinrecoexe -o $OUTNAME
+echo "executing odinrecopexe $OPT -o $OUTNAME"
+./odinrecoexe $OPT -o $OUTNAME
 
 CODE=$?
 if [ ${CODE} != 0 ]
index fa742054b8e9cea59f72797f041e3797ef5d5179..5942c113c4af0a1cc583b757abd4f3778f54921c 100644 (file)
@@ -16,6 +16,8 @@
                 </input>
                <input name="odin_seq" option="no4">
                 </input>
+               <input name="options" option="no5">
+                </input>
                 <sandbox name="executable">
                         <access type="LFN" cached="true">
 
index 7180ef1091118dc865404c74f8ed1ed7eecc40f5..f301f16c4fb0300ec589746d28f27c8d9acdacc1 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<workflow name="odin" version="0.1">
+<workflow name="odin" version="0.2">
 
   <description>There is no description for this application. Please contact the developers to know what it is about.</description>
 
       </source-comment>
     </source>
     <constant name="OdinSeq" type="string" value="odinepiexe" cardinality="scalar" />
+    <source name="options" type="string">
+      <source-comment>&lt;b&gt;&lt;font color="blue"&gt;options&lt;/font&gt;&lt;/b&gt;: any option string, to be appended to the recon-all command line. For instance: '-all'. &lt;b&gt;Important:&lt;/b&gt; don't put spaces, use '_'  instead. And put 'no' in case you don't want to use any option.
+      </source-comment>
+    </source>
   </interface>
 
   <processors>
     <processor name="odin" >
+      <in name="input4" type="string" depth="0" />
       <in name="input3" type="string" depth="0" />
       <in name="input2" type="string" depth="0" />
       <in name="input1" type="uri" depth="0" />
@@ -31,6 +36,7 @@
           <port name="input1" />
           <port name="input2" />
           <port name="input3" />
+          <port name="input4" />
         </cross>
       </iterationstrategy>
       <gasw descriptor="[GASW_DIR]/odin.xml"/>
@@ -56,6 +62,7 @@ String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis()
       <link from="ResultsDirectory" to="append-date:dir" />
       <link from="append-date:result" to="odin:input2" />
       <link from="OdinSeq" to="odin:input3" />
+      <link from="options" to="odin:input4" />
   </links>
 
 </workflow>
index f6d820423a402ea23bba77221b76d394085506e7..10c862eca031e83a2641013a4a7301e5b66bfa66 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<workflow name="odin" version="0.1">
+<workflow name="odin" version="0.2">
 
   <description>There is no description for this application. Please contact the developers to know what it is about.</description>
 
       </source-comment>
     </source>
     <constant name="OdinSeq" type="string" value="odinfispexe" cardinality="scalar" />
+    <source name="options" type="string">
+      <source-comment>&lt;b&gt;&lt;font color="blue"&gt;options&lt;/font&gt;&lt;/b&gt;: any option string, to be appended to the recon-all command line. For instance: '-all'. &lt;b&gt;Important:&lt;/b&gt; don't put spaces, use '_'  instead. And put 'no' in case you don't want to use any option.
+      </source-comment>
+    </source>
   </interface>
 
   <processors>
     <processor name="odin" >
+      <in name="input4" type="string" depth="0" />
       <in name="input3" type="string" depth="0" />
       <in name="input2" type="string" depth="0" />
       <in name="input1" type="uri" depth="0" />
@@ -31,6 +36,7 @@
           <port name="input1" />
           <port name="input2" />
           <port name="input3" />
+          <port name="input4" />
         </cross>
       </iterationstrategy>
       <gasw descriptor="[GASW_DIR]/odin.xml"/>
@@ -56,6 +62,7 @@ String result = dir.toString()+"/"+(dateFormat.format(System.currentTimeMillis()
       <link from="ResultsDirectory" to="append-date:dir" />
       <link from="append-date:result" to="odin:input2" />
       <link from="OdinSeq" to="odin:input3" />
+      <link from="options" to="odin:input4" />
   </links>
 
 </workflow>