[Swift-commit] r2505 - SwiftApps/SIDGrid/swift/swift_scripts/R

noreply at svn.ci.uchicago.edu noreply at svn.ci.uchicago.edu
Fri Feb 6 13:23:44 CST 2009


Author: skenny
Date: 2009-02-06 13:23:43 -0600 (Fri, 06 Feb 2009)
New Revision: 2505

Added:
   SwiftApps/SIDGrid/swift/swift_scripts/R/modgenproc.swift
Log:
generates and runs mx model objects

Added: SwiftApps/SIDGrid/swift/swift_scripts/R/modgenproc.swift
===================================================================
--- SwiftApps/SIDGrid/swift/swift_scripts/R/modgenproc.swift	                        (rev 0)
+++ SwiftApps/SIDGrid/swift/swift_scripts/R/modgenproc.swift	2009-02-06 19:23:43 UTC (rev 2505)
@@ -0,0 +1,28 @@
+###  generate openmx models in parallel
+###  by number of connections
+
+type file{}
+
+(file min) mxmodel_processor (file cov_matrix, file dot_r, int numcol, int modnum){
+    app{
+	RInvoke @filename(dot_r) @filename(cov_matrix) numcol modnum;
+    }
+}
+
+file cov_script<single_file_mapper; file="scripts/singlemodels.R">;
+file covmx<single_file_mapper;file="matrices/gestspeech.cov">;
+
+float initweight = .75;
+int numcol = 4;
+int totalperms[] = [0:65534];
+
+foreach perm in totalperms{
+		file modmin<single_file_mapper; file=@strcat("results/",perm,".min")>;
+		(modmin) = mxmodel_processor(covmx, cov_script, numcol, perm);		
+		}
+
+
+
+
+
+




More information about the Swift-commit mailing list