Permalink
Browse files

Add dispatch script to set PHYLOCSF_BASE

  • Loading branch information...
1 parent 621ab98 commit 0cfd7b84b07f2b52aad6fcfba5f35f3025e7f557 @mlin committed Mar 19, 2013
Showing with 27 additions and 5 deletions.
  1. +0 −2 Makefile
  2. +15 −0 PhyloCSF
  3. +12 −3 README
View
@@ -3,8 +3,6 @@ all: PhyloCSF
.PHONY: PhyloCSF CamlPaml clean
ARCH := $(shell uname).$(shell uname -m)
-PHYLOCSF_BASE := $(shell pwd)
-export PHYLOCSF_BASE
PhyloCSF: CamlPaml
$(MAKE) -C src clean
View
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+ARCH=`uname`.`uname -m`
+case $0 in
+ ./*) export PHYLOCSF_BASE=`pwd` ;;
+ * ) export PHYLOCSF_BASE=`dirname $0`
+esac
+
+if [ -f "$PHYLOCSF_BASE/PhyloCSF.$ARCH" ]; then
+ $PHYLOCSF_BASE/PhyloCSF.$ARCH $@
+else
+ echo "No PhyloCSF executable found for architecture: $ARCH"
+ echo "You may need to compile/install it according to the README."
+ exit 1
+fi
View
15 README
@@ -42,6 +42,15 @@ Mac OS X, 'gsl' is available in both Homebrew and MacPorts.
Now just run 'make' in this directory. This will build and install the
CamlPaml library, then compile the PhyloCSF executable and copy it to
-PhyloCSF.ARCH in this directory, where e.g. ARCH = Linux.x86_64. This
-executable should be usable by anyone on the same machine/cluster; they don't
-have to set up OPAM or anything else.
+this directory. You can then use the ./PhyloCSF dispatch script like the
+examples found on our website, e.g.
+
+./PhyloCSF 12flies PhyloCSF_Examples/tal-AA.fa
+
+PhyloCSF should be usable in this way by anyone on the machine/cluster with rx
+permissions; they don't have to set up OPAM or anything else. PhyloCSF can
+be started from any working directory.
+
+If you want to 'install' PhyloCSF somewhere, you must transplant PhyloCSF,
+PhyloCSF.ARCH (where e.g. ARCH=Linux.x86_64), and the PhyloCSF_Parameters
+directory to the desired location.

0 comments on commit 0cfd7b8

Please sign in to comment.