diff tools/rdock/data/pmf/smoothed/pmf2m.awk @ 0:bc03dbb6eb37 draft

planemo upload commit 781926e52355f7805db8d9a4ccafeff397b19aa4-dirty
author marpiech
date Mon, 29 Aug 2016 03:38:13 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tools/rdock/data/pmf/smoothed/pmf2m.awk	Mon Aug 29 03:38:13 2016 -0400
@@ -0,0 +1,20 @@
+#!/bin/awk -f
+{
+	a[NR]=$1;
+	b[NR]=$2;
+}END{
+	print "# name: x"
+	print "# type: matrix"
+	print "# rows: 1"
+	print "# columns: "NR
+	for(i=1;i<=NR;i++) 
+		printf("%f ",a[i]);
+	print ""
+	print "# name: y"
+	print "# type: matrix"
+	print "# rows: 1"
+	print "# columns: "NR
+	for(i=1;i<=NR;i++) 
+		printf("%f ",b[i]); 
+	print " ";
+}