Skip to content

Commit

Permalink
Hardcode the makefile to use GHC 7.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
rrnewton committed Nov 21, 2012
1 parent 1aa4f10 commit bd26481
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ default: haskell

all: find_tree_matches.exe haskell

GHC=ghc-7.4.2

haskell:
ghc -O2 --make Main.hs -o phybin.exe
$(GHC) -O2 --make Main.hs -o phybin.exe
strip phybin.exe

win:
ghc -DWIN32 --make Bio/Phylogeny/PhyBin/Main.hs -o phybin.exe
$(GHC) -DWIN32 --make Bio/Phylogeny/PhyBin/Main.hs -o phybin.exe

release: haskell
upx phybin.exe
Expand Down
9 changes: 6 additions & 3 deletions vary_branchlen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ if [ "$2" == "" ]; then echo "ERR: Two args required!"; exit 1; fi

taxa=$1
dataset=$2
branchlens="0.0001 0.001 0.01 0.05 0.1 0.5 1.0 5.0"
# 12 settings:
branchlens="0.0001 0.001 0.01 0.02 0.03 0.05 0.1 0.2 0.3 0.5 1.0 5.0"

DOGRAPH="-g"

echo Wiping "$dataset/phybin_output/" ...
rm -rf "$dataset/phybin_output/"
Expand All @@ -15,7 +18,7 @@ echo "[parallel] Starting jobs..."
for bl in $branchlens; do
echo "Running with branch len $bl"
echo "=============================="
PHYBIN="./phybin.exe -b $bl -g -n $taxa"
PHYBIN="./phybin.exe -b $bl $DOGRAPH -n $taxa"
outdir="$dataset/phybin_output/brlen$bl/"
LOG="$dataset/phybin_output/brlen$bl.log"

Expand All @@ -25,7 +28,7 @@ for bl in $branchlens; do
# ASSUMPTION2! We likewise expect the inputs in a certain spot.
RENAMER="$dataset/renaming_table.txt"
echo " RUNNING: $PHYBIN -m $RENAMER -s '_' -o $outdir"
$PHYBIN -m $RENAMER -s '_' -o $outdir $dataset/final_trees/*BranchLab*.out | tee $LOG
($PHYBIN -m $RENAMER -s '_' -o $outdir $dataset/final_trees/*BranchLab*.out | tee $LOG) &
done

echo "[parallel] Waiting for outstanding jobs"
Expand Down

0 comments on commit bd26481

Please sign in to comment.