Bio::EnsEMBL::Pipeline::Tools::Pmatch PmatchFeature
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::Analysis::PmatchFeature
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Bio::EnsEMBL::Utils::Exception qw ( verbose throw warning info )
Inherit
Unavailable
Synopsis
Description
Methods
analysis
No description
Code
cdna_id
No description
Code
chr_name
No description
Code
coverage
No description
Code
end
No description
Code
new
No description
Code
protein_id
No description
Code
score
No description
Code
start
No description
Code
Methods description
None available.
Methods code
analysisdescriptionprevnextTop
sub analysis {
   my ($self,$value) = @_;

   if(!$self->{_analysis}){
     $self->{_analysis} = undef;
   }
   if ($value) {
     unless($value->isa('Bio::EnsEMBL::Analysis')) {
       throw("Analysis is not a Bio::EnsEMBL::Analysis object "
		    . "but a $value object");
     }

     $self->{_analysis} = $value;
   } 

   return $self->{_analysis};
}


1;
}
cdna_iddescriptionprevnextTop
sub cdna_id {
  my ($self,$arg) = @_;

  if (defined($arg)) {
    $self->{_cdna_id} = $arg;
  }

  return $self->{_cdna_id};
}
chr_namedescriptionprevnextTop
sub chr_name {
  my ($self,$arg) = @_;

  if (defined($arg)) {
    $self->{_chr_name} = $arg;
  }
  return $self->{_chr_name};
}
coveragedescriptionprevnextTop
sub coverage {
  my ($self,$arg) = @_;

  if (defined($arg)) {

    if ($arg < 0 || $arg > 100) {
      throw("Coverage must be betwee 0 and 100.  Trying to set it to $arg");
    }
    
    $self->{_coverage} = $arg;
  }

  return $self->{_coverage};
}
enddescriptionprevnextTop
sub end {
  my ($self,$arg) = @_;

  if (defined($arg)) {
    $self->{_end} = $arg;
  }
  return $self->{_end};
}
newdescriptionprevnextTop
sub new {
  my($class,@args) = @_;

  my $self = bless {},$class;
  my ($protein_id,$cdna_id,$chr_name,$start,$end,$coverage,$analysis) = rearrange([qw(PROTEIN_ID 
                       CDNA_ID                                                               CHR_NAME
										 START
										 END
										 COVERAGE
										 ANALYSIS	      
										)],@args);
  
  
  $self->protein_id($protein_id);
  $self->chr_name($chr_name);
  $self->start($start);
  $self->end($end);
  $self->cdna_id($cdna_id);
  $self->coverage($coverage);
  $self->analysis($analysis);
  return $self;
}
protein_iddescriptionprevnextTop
sub protein_id {
  my ($self,$arg) = @_;

  if (defined($arg)) {
    $self->{_protein_id} = $arg;
  }

  return $self->{_protein_id};
}
scoredescriptionprevnextTop
sub score {
   my ($self) = @_ ; 
  return $self->{_coverage};
}
startdescriptionprevnextTop
sub start {
  my ($self,$arg) = @_;

  if (defined($arg)) {
    $self->{_start} = $arg;
  }
  return $self->{_start};
}
General documentation
CONTACTTop
ensembl-dev@ebi.ac.uk
APPENDIXTop