[Swift-commit] r2862 - SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/output/analysis
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Sun Apr 19 23:30:46 CDT 2009
Author: andric
Date: 2009-04-19 23:30:46 -0500 (Sun, 19 Apr 2009)
New Revision: 2862
Added:
SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/output/analysis/parse_designfile.R
Log:
R script for parsing design file from all runs into run by run
Added: SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/output/analysis/parse_designfile.R
===================================================================
--- SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/output/analysis/parse_designfile.R (rev 0)
+++ SwiftApps/SIDGrid/swift/projects/andric/peakfit_pilots/PK2/output/analysis/parse_designfile.R 2009-04-20 04:30:46 UTC (rev 2862)
@@ -0,0 +1,15 @@
+dd = read.table("for3dDecon.PK2_4condSHORTcat_all.1D")
+tr = c(1:226)
+runs = 8
+start = 1
+end = length(tr)
+
+for (i in 1:runs){
+ design = dd[start:end,]
+ start = start + length(tr)
+ end = end + length(tr)
+ out = paste("run",i,"Design.txt",sep="")
+ write.table(design,file=out,col.names=F,quote=F)
+}
+print(start)
+print(end)
More information about the Swift-commit
mailing list