These documents are For the HEAD of the CVS repository on July 19, 2007
Api docs for previous releases
Modware::Feature
GAP
Modware::Feature::GAP - Modware representation of a GAP
|
No package variables defined. |
do not create a Modware::Feature::GAP object directly, it is for use by the Modware::Feature object
|
Methods description
Title : _init
Note : sets attributes specific to Contig features
Usage : called internally by new
Function :
Returns : nothing
Args : none
Title : gap_type
Usage : print $gap->gap_type()
Function : returns type of gap
Returns : string
Args : string ( optional )
Title : insert
Function : calls SUPER::insert but then inserts the location
:
Returns : nothing
Args : none
Methods code
sub _init
{ my ($self, @args) = @_;
$self->type('gap');
$self->source( "Sequencing Center" ) if (!$self->source());
}
sub gap_type
{ my ($self, $obj) = @_;
#
# fetches gap_type from database (_get_gap_type) if gap_type is not yet defined
# and the user is not attempting to set the gap_type options
#
exists $self->{gap_type} || scalar @_ > 1 || $self->gap_type( $self->_get_featureprop( 'gap type' ) );
if(scalar @_ > 1) {
$self->{gap_type} = $obj;
}
return $self->{gap_type};
}
sub insert
{ my ($self, @args) = @_;
$self->SUPER::insert();
$self->_insert_or_update_featureprop( 'gap type', $self->gap_type() );
}
sub new
{ my ($type, @args) = @_;
$self = $type->SUPER::new( @args );
my @arglist = qw(
GAP_TYPE
);
my (
$gap_type
) = $self->_rearrange( [@arglist], @args );
$self->gap_type( $gap_type );
return $self;
}
sub update
{ my ($self, @args) = @_;
$self->SUPER::update();
$self->_insert_or_update_featureprop( 'gap type', $self->gap_type() );
}
General documentation
Copyright © 2006, Northwestern University
All rights reserved.
|
|