Bio::EnsEMBL::Analysis::Tools::Pmatch ProteinHit
Included librariesPackage variablesGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::Root::Object
Inherit
Bio::Root::Object
Synopsis
No synopsis!
Description
No description!
Methods
add_ContigHitDescriptionCode
each_ContigHitDescriptionCode
get_ContigHitDescriptionCode
idDescriptionCode
newDescriptionCode
Methods description
add_ContigHitcode    nextTop
 Title   : add_ContigHit
Usage :
Function: adds a ContigHit into $self->{_contig_hits}
Example :
Returns :
Args :
each_ContigHitcodeprevnextTop
 Title   : each_ContigHit
Usage :
Function: returns all entries in $self->{_contig_hits}
Example :
Returns :
Args :
get_ContigHitcodeprevnextTop
 Title   : get_ContigHit
Usage :
Function: returns entries for a particular contig in $self->{_contig_hits}
Example :
Returns :
Args :
idcodeprevnextTop
 Title   : id
Usage :
Function: get/set for contig id
Example :
Returns :
Args :
newcodeprevnextTop
 Title   : new
Usage :
Function:
Example :
Returns :
Args : constructor
Methods code
add_ContigHitdescriptionprevnextTop
sub add_ContigHit {
  my ($self,$hit) = @_;
  $self->throw('No contig hit') unless defined $hit;
  $self->throw('$contig is not a Bio::EnsEMBL::Analysis::Tools::Pmatch::ContigHit') unless $hit->isa("Bio::EnsEMBL::Analysis::Tools::Pmatch::ContigHit");
  $self->{_contig_hits}{$hit->id()} = $hit;
}
each_ContigHitdescriptionprevnextTop
sub each_ContigHit {
  my ($self) = @_;
  return values %{$self->{_contig_hits}};
}
get_ContigHitdescriptionprevnextTop
sub get_ContigHit {
  my ($self,$contig) = @_;
  return ($self->{_contig_hits}{$contig}) if defined $contig;
  return undef;
}

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

  my ($id) = $self->_rearrange(['ID'], @args);

  $self->throw("No id") unless defined $id;
  $self->id($id);
  
  return $self;
}
General documentation
No general documentation available.