view chromeister/bin/run_and_plot_chromeister.sh @ 0:7fdf47a0bae8 draft

Uploaded
author alvarofaure
date Wed, 12 Dec 2018 07:18:40 -0500
parents
children
line wrap: on
line source

#!/usr/bin/env bash
G1=$1
G2=$2
KMER=$3
DIM=$4


FILE1=$(basename $G1)
FILE2=$(basename $G2)

BINDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"


if [ $# -lt 4 ]; then
        echo "***ERROR*** Use: $0 <G1> <G2> <KMER> <DIMENSION>"
        exit -1
fi



(time $BINDIR/CHROMEISTER -query $G1 -db $G2 -kmer $KMER -out $FILE1-$FILE2.mat -dimension $DIM) &> $FILE1-$FILE2.log
(Rscript $BINDIR/compute_score.R $FILE1-$FILE2.mat $DIM) &> $FILE1-$FILE2.scr.txt

#$BINDIR/plot.R $FILE1-$FILE2.mat


#rm $FILE1-$FILE2.mat