From d9724b0c42ffc46c0f34c3c44ee4fd2f0361a5ab Mon Sep 17 00:00:00 2001 From: martinahansen Date: Thu, 20 May 2010 09:31:05 +0000 Subject: [PATCH] added bp_scripts directory and stats scripts git-svn-id: http://biopieces.googlecode.com/svn/trunk@963 74ccb610-7750-0410-82ae-013aeee3265d --- bp_scripts/00README | 4 ++++ bp_scripts/stats_biopieces.sh | 10 ++++++++++ bp_scripts/stats_users.sh | 6 ++++++ 3 files changed, 20 insertions(+) create mode 100644 bp_scripts/00README create mode 100755 bp_scripts/stats_biopieces.sh create mode 100755 bp_scripts/stats_users.sh 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 -- 2.39.2