Bio::EnsEMBL ProteinFeature
SummaryIncluded librariesPackage variablesSynopsisDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Summary
Bio::EnsEMBL::ProteinFeature
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::FeaturePair
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Inherit
Bio::EnsEMBL::FeaturePair
Synopsis
  my $feature = Bio::EnsEMBL::ProteinFeature->new(
-start => $start,
-end => $end,
-hstart => $hit_start,
-hend => $hit_end,
-hname => $hit_name
);
Description
ProteinFeature objects represent domains or other features of interest
on a peptide sequence.
Methods
idescDescriptionCode
interpro_acDescriptionCode
newDescriptionCode
strandDescriptionCode
translation_id
No description
Code
Methods description
idesc(2)code    nextTop
  Arg [1]    : (optional) string The interpro description
Example : print $protein_feature->idesc();
Description: Getter/Setter for the interpro description of this protein
feature.
Returntype : string
Exceptions : none
Caller : general
Status : Stable
interpro_accodeprevnextTop
  Arg [1]    : (optional) string The interpro accession
Example : print $protein_feature->interpro_ac();
Description: Getter/Setter for the interpro accession of this protein
feature.
Returntype : string
Exceptions : none
Caller : general
Status : Stable
newcodeprevnextTop
  Arg [IDESC]       : (optional) string An interpro description
Arg [INTERPRO_AC] : (optional) string An interpro accession
Arg [...] : named arguments to FeaturePair superclass
Example : $pf = Bio::EnsEMBL::ProteinFeature->new(-IDESC => $idesc,
-INTERPRO_AC => $iac,
@fp_args);
Description: Instantiates a Bio::EnsEMBL::ProteinFeature
Returntype : Bio::EnsEMBL::FeaturePair
Exceptions : none
Caller : general
Status : Stable
strandcodeprevnextTop
  Arg [1]    : Ignored
Description: Overwrites Bio::EnsEMBL::Feature->strand to not allow
: the strand to be set.
Returntype : int
Status : Stable
Methods code
idescdescriptionprevnextTop
sub idesc {
  my $self = shift;
  $self->{'idesc'} = shift if(@_);
  return $self->{'idesc'};
}
interpro_acdescriptionprevnextTop
sub interpro_ac {
  my $self = shift;
  $self->{'interpro_ac'} = shift if(@_);
  return $self->{'interpro_ac'};
}
newdescriptionprevnextTop
sub new {
  my $caller = shift;

  my $class = ref($caller) || $caller;

  my ($idesc, $interpro_ac, $translation_id) = rearrange(['IDESC', 'INTERPRO_AC', 'TRANSLATION_ID'], @_);

  my $self = $class->SUPER::new(@_);

  #the strand of protein features is always 0
$self->{'strand'} = 0; $self->{'idesc'} = $idesc || ''; $self->{'interpro_ac'} = $interpro_ac || ''; $self->{'translation_id'} = $translation_id || ''; return $self;
}
stranddescriptionprevnextTop
sub strand {
  my $self = shift;
  return $self->{'strand'};
}
translation_iddescriptionprevnextTop
sub translation_id {
  my $self = shift;
  $self->{'translation_id'} = shift if(@_);
  return $self->{'translation_id'};
}

1;
}
General documentation
LICENSETop
  Copyright (c) 1999-2009 The European Bioinformatics Institute and
Genome Research Limited. All rights reserved.
This software is distributed under a modified Apache license. For license details, please see /info/about/code_licence.html
CONTACTTop
  Please email comments or questions to the public Ensembl
developers list at <ensembl-dev@ebi.ac.uk>.
Questions may also be sent to the Ensembl help desk at <helpdesk@ensembl.org>.