From 935a8d46838a7d8aa63c0b02059148b1de6b6381 Mon Sep 17 00:00:00 2001 From: "David A. Parry" Date: Wed, 23 Nov 2016 15:29:00 +0000 Subject: [PATCH] set leafCutterDir relative to script location Proposed change would allow script to run from any directory, sourcing leafcutter directory from the script location. Current code requires running of this script from a subdirectory of the leafcutter directory. --- scripts/bam2junc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bam2junc.sh b/scripts/bam2junc.sh index 657ca97..0207a2f 100644 --- a/scripts/bam2junc.sh +++ b/scripts/bam2junc.sh @@ -1,5 +1,5 @@ -leafCutterDir='..' +leafCutterDir=$(dirname $0)/.. bamfile=$1 bedfile=$1.bed juncfile=$2