From: martinahansen Date: Thu, 20 May 2010 09:31:05 +0000 (+0000) Subject: added bp_scripts directory and stats scripts X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=d9724b0c42ffc46c0f34c3c44ee4fd2f0361a5ab;p=biopieces.git added bp_scripts directory and stats scripts git-svn-id: http://biopieces.googlecode.com/svn/trunk@963 74ccb610-7750-0410-82ae-013aeee3265d --- diff --git a/bp_scripts/00README b/bp_scripts/00README new file mode 100644 index 0000000..1539e00 --- /dev/null +++ b/bp_scripts/00README @@ -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 index 0000000..398288b --- /dev/null +++ b/bp_scripts/stats_biopieces.sh @@ -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 index 0000000..4e1da80 --- /dev/null +++ b/bp_scripts/stats_users.sh @@ -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