Bio::EnsEMBL RepeatConsensus
Included librariesPackage variablesDescriptionGeneral documentationMethods
Toolbar
WebCvsRaw content
Package variables
No package variables defined.
Included modules
Bio::EnsEMBL::Storable
Bio::EnsEMBL::Utils::Argument qw ( rearrange )
Inherit
Bio::EnsEMBL::Storable
Synopsis
No synopsis!
Description
This object represents an entry in the
repeat_consensus table.
It can contain the consensus sequence for a
repeat such as a particular Alu, or "cag" for a
simple triplet repeat.
Methods
descDescriptionCode
lengthDescriptionCode
nameDescriptionCode
newDescriptionCode
new_fastDescriptionCode
repeat_classDescriptionCode
repeat_consensusDescriptionCode
repeat_typeDescriptionCode
seqDescriptionCode
Methods description
desccode    nextTop
  Arg [1]    : none
Example : $desc = $repeat_consensus->desc()
Description: Getter for the description of this repeat consensus as extracted
from the repeat_class. This method is probably useless.
Returntype : string
Exceptions : none
Caller : general
Status : Medium risk
lengthcodeprevnextTop
  Arg [1]    : int $length (optional)
Example : $length = $repeat_consensus->length()
Description: Getter/Setter for the length of this repeat_consensus
Returntype : int
Exceptions : none
Caller : general
Status : Stable
namecodeprevnextTop
  Arg [1]    : string $name (optional)
Example : $name = $repeat_consensus->name()
Description: Getter/Setter for the name of this repeat_consensus
Returntype : string
Exceptions : none
Caller : general
Status : Stable
newcodeprevnextTop
  Arg [NAME] : string (optional)
The name of this repeat consensus
Arg [LENGTH]: int (optional)
The length of the repeat consensus sequence
Arg [REPEAT_CLASS]: string (optional)
The type of repeat consensus
Arg [REPEAT_CONSENSUS]: string (optional)
The sequence of this repeat consensus
Arg [REPEAT_TYPE]: string
Its like class only more general
Arg [...]: Named arguments to superclass constructor
(see Bio::EnsEMBL::Storable)
Example : $rc = Bio::EnsEMBL::RepeatConsensus->new
(-REPEAT_CONSENSUS => 'AATG'
-NAME => '(AATG)n',
-REPEAT_CLASS => 'Simple_repeat',
-LENGTH => '4',
-DBID => 1023,
-ADAPTOR => $rc_adaptor);
Description: Creates a new Bio::EnsEMBL::RepeatConsensus object
Returntype : Bio::EnsEMBL::RepeatConsensus
Exceptions : none
Caller : RepeatFeatureAdaptors
Status : Stable
new_fastcodeprevnextTop
  Arg [1] : hashref to bless as a new RepeatConsensus 
Description: Creates a new Bio::EnsEMBL::RepeatConsensus object Returntype : Bio::EnsEMBL::RepeatConsensus Exceptions : none Caller : internal Status : Stable
repeat_classcodeprevnextTop
  Arg [1]    : string $class (optional)
The class of
Example : $class = $repeat_consensus->repeat_class()
Description: Getter/Setter for the class of this repeat_consensus
Returntype : string
Exceptions : none
Caller : general
Status : Stable
repeat_consensuscodeprevnextTop
  Arg [1]    : string $consensus_seq (optional)
The sequence of this repeat consensus
Example : $consensus = $repeat_consensus->repeat_consensus();
Description: Getter/Setter for the sequence of this repeat_consensus.
Returntype : string
Exceptions : none
Caller : general
repeat_typecodeprevnextTop
  Arg [1]    : string $type (optional)
The type of the consensus
Example : $type = $repeat_consensus->repeat_type()
Description: Getter/Setter for the type of this repeat_consensus
Returntype : string
Exceptions : none
Caller : general
seqcodeprevnextTop
  Arg [1]    : none
Example : none
Description: Returns the repeat consensus. This method is useless - Use
repeat_consensus() instead.
Returntype : string
Exceptions : none
Caller : general
Status : Stable
Methods code
descdescriptionprevnextTop
sub desc {
  my $self = shift;
  my $class = $self->repeat_class or return;
  return "class=$class";
}
lengthdescriptionprevnextTop
sub length {
  my $self = shift;
  $self->{'length'} = shift if(@_);
  return $self->{'length'};
}
namedescriptionprevnextTop
sub name {
  my $self = shift;
  $self->{'name'} = shift if(@_);
  return $self->{'name'};
}
newdescriptionprevnextTop
sub new {
  my $caller = shift;

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

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

  my ($name, $length, $repeat_class, $repeat_consensus, $repeat_type ) =
    rearrange(['NAME', 'LENGTH', 'REPEAT_CLASS', 'REPEAT_CONSENSUS', 'REPEAT_TYPE'], @_);

  $self->{'name'} = $name;
  $self->{'length'} = $length;
  $self->{'repeat_class'} = $repeat_class;
  $self->{'repeat_consensus'} = $repeat_consensus;
  $self->{'repeat_type'} = $repeat_type;

  return $self;
}
new_fastdescriptionprevnextTop
sub new_fast {
  my $class = shift;
  my $hashref = shift;
  return bless $hashref, $class;
}
repeat_classdescriptionprevnextTop
sub repeat_class {
  my $self = shift;
  $self->{'repeat_class'} = shift if(@_);
  return $self->{'repeat_class'};
}
repeat_consensusdescriptionprevnextTop
sub repeat_consensus {
  my $self = shift;
  $self->{'repeat_consensus'} = shift if(@_);
  return $self->{'repeat_consensus'};
}
repeat_typedescriptionprevnextTop
sub repeat_type {
  my $self = shift;
  $self->{'repeat_type'} = shift if(@_);
  return $self->{'repeat_type'};
}
seqdescriptionprevnextTop
sub seq {
  my( $self ) = @_;
  return $self->repeat_consensus;
}

1;

__END__
}
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>.
NAME - Bio::EnsEMBL::RepeatConsensusTop
AUTHORTop
James Gilbert email jgrg@sanger.ac.uk