From 1bb292d10cf62e9a899405daf14939ee833bc9ec Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Wed, 22 Jan 2014 16:48:18 -0500 Subject: add different outputs for each run --- SelectiveGenomeAmplification | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'SelectiveGenomeAmplification') diff --git a/SelectiveGenomeAmplification b/SelectiveGenomeAmplification index 075d7c7..9358e39 100755 --- a/SelectiveGenomeAmplification +++ b/SelectiveGenomeAmplification @@ -71,6 +71,8 @@ if [ ! -d $tmp_directory ]; then fi +current_run=$output_`date +%s` +mkdir -p $output_directory/$current_run for fasta_file in $foreground $background; do @@ -107,7 +109,7 @@ bg_counts=$counts_directory/$(basename $background)-counts fg_tmp=$tmp_directory/$(basename $foreground) bg_tmp=$tmp_directory/$(basename $background) -selected=$tmp_directory/$(basename $foreground)_$(basename $background)-selected-mers +selected=$output_directory/$current_run/selected-mers # remove ignored mers if [ "$ignore_mers" ]; then @@ -131,4 +133,4 @@ echo "scoring mer selectivity" select_mers.py $fg_counts-non-melting $fg_tmp $bg_counts-non-melting $bg_tmp > $selected echo "scoring top mers based on selectivity" -score_mers.py $selected $fg_tmp $bg_tmp $output_directory/output_`date +%s` +score_mers.py $selected $fg_tmp $bg_tmp $output_directory/$current_run/scores-output -- cgit v1.2.3