X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rsem-plot-transcript-wiggles;h=11027a1ea30fa91b880d5e776dfdd5b032a2d71b;hb=1d786dca8b4c9c1e2176a28a669d2d16cd93e395;hp=35dfd75544c7d50d6afa61a41d39ecd8c3241608;hpb=52f1bd6f44f9b2630b839f192fb9ece18581983b;p=rsem.git diff --git a/rsem-plot-transcript-wiggles b/rsem-plot-transcript-wiggles index 35dfd75..11027a1 100755 --- a/rsem-plot-transcript-wiggles +++ b/rsem-plot-transcript-wiggles @@ -2,7 +2,8 @@ use Getopt::Long; use Pod::Usage; -use File::Basename; +use FindBin; +use lib $FindBin::Bin; use strict; use rsem_perl_utils; @@ -18,7 +19,7 @@ GetOptions("gene-list" => \$gene_list, pod2usage(-verbose => 2) if ($help == 1); pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (scalar(@ARGV) != 3); -my ($fn, $dir, $suf) = fileparse($0); +my $dir = "$FindBin::Bin/"; my $command = ""; unless (-e "$ARGV[0].transcript.sorted.bam") {