X-Git-Url: https://git.donarmstrong.com/?p=rsem.git;a=blobdiff_plain;f=rsem-run-ebseq;h=47f767859a51f97c070f6c134c216159e5da2b79;hp=9693eeea13e550f63879514173a346c328dbc66d;hb=refs%2Fheads%2Fdebian;hpb=f054dfb3f9bb35d4043534ea88e1f5fa8e7eb2ea diff --git a/rsem-run-ebseq b/rsem-run-ebseq index 9693eee..47f7678 100755 --- a/rsem-run-ebseq +++ b/rsem-run-ebseq @@ -2,12 +2,16 @@ use Getopt::Long; use Pod::Usage; -use FindBin; -use lib $FindBin::Bin; -use strict; +use FindBin; +use lib $FindBin::RealBin; use rsem_perl_utils; +use Env qw(@PATH); +@PATH = ("$FindBin::RealBin/EBSeq", @PATH); + +use strict; + my $ngvF = ""; my $help = 0; @@ -18,7 +22,6 @@ pod2usage(-verbose => 2) if ($help == 1); pod2usage(-msg => "Invalid number of arguments!", -exitval => 2, -verbose => 2) if (scalar(@ARGV) != 3); pod2usage(-msg => "ngvector file cannot be named as #! # is reserved for other purpose!", -exitval => 2, -verbose => 2) if ($ngvF eq "#"); -my $dir = "$FindBin::Bin/"; my $command = ""; my @conditions = split(/,/, $ARGV[1]); @@ -28,7 +31,7 @@ pod2usage(-msg => "At least 2 conditions are required for differential expressio if ($ngvF eq "") { $ngvF = "#"; } $" = " "; -$command = $dir."EBSeq/rsem-for-ebseq-find-DE ".$dir."EBSeq $ngvF $ARGV[0] $ARGV[2] @conditions"; +$command = "rsem-for-ebseq-find-DE $FindBin::RealBin/EBSeq $ngvF $ARGV[0] $ARGV[2] @conditions"; &runCommand($command) __END__