ensembl-pipeline Environment
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Root
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Bio::EnsEMBL::Utils::Exception qw ( throw warning verbose )
Inherit
Bio::EnsEMBL::Root
Synopsis
No synopsis!
Description
No description!
Methods
DESTROY
No description
Code
add_to_perl5lib
No description
Code
change_blastdb
No description
Code
new
No description
Code
old_blastdb
No description
Code
old_perl5lib
No description
Code
return_environment
No description
Code
Methods description
None available.
Methods code
DESTROYdescriptionprevnextTop
sub DESTROY {
  my ($self) = @_;
  $self->return_environment;
}

1;
}
add_to_perl5libdescriptionprevnextTop
sub add_to_perl5lib {
  my ($self, $addition) = @_;
  my $perl5lib = $ENV{'PERL5LIB'};
  $self->old_perl5lib($perl5lib);
  $addition .= ':'.$perl5lib;
  $ENV{'PERL5LIB'} = $addition;
  return $addition;
}
change_blastdbdescriptionprevnextTop
sub change_blastdb {
  my ($self, $blastdb) = @_;
  $self->old_blastdb($ENV{'BLASTDB'});
  $ENV{'BLASTDB'} = $blastdb;
  return $blastdb;
}


# methods for resetting PERL5LIB and BLASTDB to original state 
# after running test
}
newdescriptionprevnextTop
sub new {
  my ($class) = @_;
  my $self = bless {}, $class;
  return $self;
}


#containers
# store info about "old" PERL5LIB to "return_environment" later
}
old_blastdbdescriptionprevnextTop
sub old_blastdb {
  my $self = shift;
  $self->{'old_blastdb'} = shift if(@_);
  return $self->{'old_blastdb'};
}

# methods to alter PERL5LIB and BLASTDB
}
old_perl5libdescriptionprevnextTop
sub old_perl5lib {
  my $self = shift;
  $self->{'old_perl5lib'} = shift if(@_);
  return $self->{'old_perl5lib'};
}

# store info about "old" BLASTDB for "return_environment" later
}
return_environmentdescriptionprevnextTop
sub return_environment {
  my ($self) = @_;

  $ENV{'PERL5LIB'} = $self->old_perl5lib;
  $ENV{'BLASTDB'} = $self->old_blastdb;
}
General documentation
No general documentation available.