[Swift-commit] r3092 - SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Mon Aug 10 09:22:56 CDT 2009


Author: andric
Date: 2009-08-10 09:22:56 -0500 (Mon, 10 Aug 2009)
New Revision: 3092

Added:
   SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/surfclust.swift
Log:
updated swift

Added: SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/surfclust.swift
===================================================================
--- SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/surfclust.swift	                        (rev 0)
+++ SwiftApps/SIDGrid/swift/projects/andric/ccf_emblem/NonParametric_lag_analy/surfclust.swift	2009-08-10 14:22:56 UTC (rev 3092)
@@ -0,0 +1,29 @@
+type file{}
+
+(file surfclustOutput[]) SurfClust (file specFile, file surfFile, file input, float threshVal, string prefix){
+    app {
+        SurfClust "-spec" @filename(specFile) "-surf_A" @filename(surfFile) "-input" @filename(input) "1 -rmm 2.8 -thresh_col 1 -thresh" threshVal "-amm2 2 -sort_n_nodes -out_clusterdset -out_roidset -prepend_node_index -out_fulllist -prefix" prefix;
+    }
+}
+
+
+string SeedRegions = ["IDEAL"];
+string hemis = ["lh","rh"];
+int vertexThresh[] = [6,9];
+
+foreach seed in SeedRegions{
+    foreach h in hemis{
+        foreach thresh in vertexThresh{
+            file HORRYspec <single_file_mapper;file=@strcat("HORRY.",h,".mesh140_std.spec")>;
+            file HORRYsurf <single_file_mapper;file=@strcat("HORRY.",h,".mesh140_std.pial.asc")>;
+            file inputFile <single_file_mapper;file=@strcat("results/",h,"_",seed,"_new_sorted.txt")>;
+            string outPrefix=@strcat(h,"_",seed,"_Thresh",thresh);
+            string vals_name = @strcat(outPrefix,"_Clustered_r2.8_a2.0.niml.dset, ");
+            string msk_name = @strcat(outPrefix,"_ClstMsk_r2.8_a2.0.niml.dset, ");
+            string table_name = @strcat(outPrefix,"_ClstTable_r2.8_a2.0.1D");
+            string out_files = @strcat(vals_name, msk_name, table_name);
+            file surfclustOutput[] <fixed_array_mapper;files=out_files>;
+            (surfclustOutput) = SurfClust(HORRYspec,HORRYsurf,inputFile,thresh,outPrefix);
+        }
+    }
+}




More information about the Swift-commit mailing list