]> git.donarmstrong.com Git - biopieces.git/commitdiff
added bp_scripts directory and stats scripts
authormartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 20 May 2010 09:31:05 +0000 (09:31 +0000)
committermartinahansen <martinahansen@74ccb610-7750-0410-82ae-013aeee3265d>
Thu, 20 May 2010 09:31:05 +0000 (09:31 +0000)
git-svn-id: http://biopieces.googlecode.com/svn/trunk@963 74ccb610-7750-0410-82ae-013aeee3265d

bp_scripts/00README [new file with mode: 0644]
bp_scripts/stats_biopieces.sh [new file with mode: 0755]
bp_scripts/stats_users.sh [new file with mode: 0755]

diff --git a/bp_scripts/00README b/bp_scripts/00README
new file mode 100644 (file)
index 0000000..1539e00
--- /dev/null
@@ -0,0 +1,4 @@
+This directory contains shell scripts with useful Biopieces pipelines.
+
+
+Martin A. Hansen, May 2010
diff --git a/bp_scripts/stats_biopieces.sh b/bp_scripts/stats_biopieces.sh
new file mode 100755 (executable)
index 0000000..398288b
--- /dev/null
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+# Count how many times each Biopieces has been used and output as a table.
+
+read_tab -d '\t' -i $BP_LOG/biopieces.log -k TIME_BEG,TIME_END,TIME_ELAP,USER,STATUS,COMMAND |
+split_vals -d ' ' -k COMMAND |
+count_vals -k COMMAND_0 |
+uniq_vals -k COMMAND_0 |
+sort_records -k COMMAND_0_COUNTn -r |
+write_tab -k COMMAND_0_COUNT,COMMAND_0 -x
diff --git a/bp_scripts/stats_users.sh b/bp_scripts/stats_users.sh
new file mode 100755 (executable)
index 0000000..4e1da80
--- /dev/null
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+# Output a histogram of how many times each user have executed Biopieces.
+
+read_tab -d '\t' -i $BP_LOG/biopieces.log -k TIME_BEG,TIME_END,TIME_ELAP,USER,STATUS,COMMAND |
+plot_histogram -T 'User distribution' -k USER -x