X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=rsem-plot-transcript-wiggles;h=efe00ba91863d7125268d0e492d602ae6b9cbeb7;hp=35dfd75544c7d50d6afa61a41d39ecd8c3241608;hb=80182d3120cde6e3831fc3ea99af91f20dade08b;hpb=52f1bd6f44f9b2630b839f192fb9ece18581983b diff --git a/rsem-plot-transcript-wiggles b/rsem-plot-transcript-wiggles index 35dfd75..efe00ba 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") { @@ -56,11 +57,7 @@ rsem-plot-transcript-wiggles =head1 SYNOPSIS -=over - - rsem-plot-transcript-wiggles [options] sample_name input_list output_plot_file - -=back +rsem-plot-transcript-wiggles [options] sample_name input_list output_plot_file =head1 ARGUMENTS