Bio::EnsEMBL::Analysis::RunnableDB::LayerAnnotation Layer
Other packages in the module: Bio::EnsEMBL::Analysis::RunnableDB::LayerAnnotation
Package variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Bio::EnsEMBL::Utils::Exception qw ( throw warning )
Synopsis
No synopsis!
Description
No description!
Methods
biotypes
No description
Code
discard
No description
Code
filter_against
No description
Code
filter_object
No description
Code
genes
No description
Code
id
No description
Code
new
No description
Code
Methods description
None available.
Methods code
biotypesdescriptionprevnextTop
sub biotypes {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_biotypes} = $value;
    }
  return $self->{_layer_biotypes};
}
discarddescriptionprevnextTop
sub discard {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_discard} = $value;
    }
  return $self->{_layer_discard};
}
filter_againstdescriptionprevnextTop
sub filter_against {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_filter_against} = $value;
  }
  return $self->{_layer_filter_against};
}
filter_objectdescriptionprevnextTop
sub filter_object {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_filter} = $value;
  }
  return $self->{_layer_filter};
}
genesdescriptionprevnextTop
sub genes {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_genes} = $value;
  }
  return $self->{_layer_genes};
}



1;
}
iddescriptionprevnextTop
sub id {
  my ($self,$value) = @_;
  
  if (defined $value) {
    $self->{_layer_id} = $value;
  }
  return $self->{_layer_id};
}
newdescriptionprevnextTop
sub new {
  my ($class, @args) = @_;

  my $self = bless {}, $class;

  my ($id,
      $discard,
      $genes,
      $filter_object,
      $filter_against, 
      $biotypes) = rearrange
          (['ID','DISCARD','GENES','FILTER_OBJECT','FILTER_AGAINST','BIOTYPES'],@args);

  throw("Layers must have an id") if not defined $id;
  throw("Layers must have a list of biotypes") if not defined $biotypes;
  $discard = 0 if not defined $discard;
  $genes = [] if not defined $genes;
  $filter_against = [] if not defined $filter_against;

  $self->id($id);
  $self->filter_object($filter_object) if defined $filter_object;
  $self->filter_against($filter_against);
  $self->biotypes($biotypes);
  $self->discard($discard);
  $self->genes($genes);

  return $self;
}
General documentation
No general documentation available.