Skip to content

Commit

Permalink
This commit was manufactured by cvs2svn to create tag
Browse files Browse the repository at this point in the history
'prerelease-06'.

svn path=/bioperl-live/tags/prerelease-06/; revision=1143
  • Loading branch information
nobody committed Jan 27, 2000
1 parent b7af73a commit a46f612
Show file tree
Hide file tree
Showing 47 changed files with 2,494 additions and 9,107 deletions.
121 changes: 3 additions & 118 deletions Bio/AnnSeq.pm
Expand Up @@ -74,7 +74,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
bioperl-bugs@bio.perl.org bioperl-bugs@bio.perl.org
http://bio.perl.org/bioperl-bugs/ http://bio.perl.org/bioperl-bugs/
=head1 AUTHOR - Ewan Birney, inspired by Ian Korf objects =head1 AUTHOR - Ewan Birney, inspired by Ian Korf's objects
Email birney@sanger.ac.uk Email birney@sanger.ac.uk
Expand Down Expand Up @@ -111,8 +111,6 @@ sub _initialize {
my($ann); my($ann);
my $make = $self->SUPER::_initialize; my $make = $self->SUPER::_initialize;
$self->{'_as_feat'} = []; $self->{'_as_feat'} = [];
$self->{'date'} = [];
$self->{'secondary_accession'} = [];
$ann = new Bio::Annotation; $ann = new Bio::Annotation;
$self->annotation($ann); $self->annotation($ann);


Expand Down Expand Up @@ -308,28 +306,6 @@ sub species {
} }
} }


=head2 sub_species
Title : sub_species
Usage :
Function: Gets or sets the sub_species
Example : $sub_species = $self->sub_species();
Returns : Bio::Species object
Args : Bio::Species object or none;
=cut

sub sub_species {
my ($self, $sub_species) = @_;

if ($sub_species) {
$self->{'sub_species'} = $sub_species;
} else {
return $self->{'sub_species'}
}
}

=head1 EMBL/GenBank/DDBJ methods =head1 EMBL/GenBank/DDBJ methods
These methods are here to support the EMBL/GenBank/DDBJ format. These methods are here to support the EMBL/GenBank/DDBJ format.
Expand Down Expand Up @@ -364,63 +340,6 @@ sub division{


} }


=head2 molecule
Title : molecule
Usage : $obj->molecule($newval)
Function:
Returns : type of molecule (DNA, mRNA)
Args : newvalue (optional)
=cut

sub molecule{
my $obj = shift;
if( @_ ) {
my $value = shift;
$obj->{'molecule'} = $value;
}
return $obj->{'molecule'};

}

=head2 add_date
Title : add_date
Usage : $self->add_domment($ref)
Function: adds a date
Example :
Returns :
Args :
=cut

sub add_date{
my ($self) = shift;
foreach my $dt ( @_ ) {
push(@{$self->{'date'}},$dt);
}
}

=head2 each_Comment
Title : each_date
Usage : foreach $dt ( $self->each_date() )
Function: gets an array of dates
Example :
Returns :
Args :
=cut

sub each_date{
my ($self) = @_;
return @{$self->{'date'}};
}

=head2 accession =head2 accession
Title : accession Title : accession
Expand All @@ -444,42 +363,6 @@ sub accession{


} }


=head2 add_secondary_accession
Title : add_secondary_accession
Usage : $self->add_domment($ref)
Function: adds a secondary_accession
Example :
Returns :
Args :
=cut

sub add_secondary_accession{
my ($self) = shift;
foreach my $dt ( @_ ) {
push(@{$self->{'secondary_accession'}},$dt);
}
}

=head2 each_Comment
Title : each_secondary_accession
Usage : foreach $dt ( $self->each_secondary_accession() )
Function: gets an array of secondary_accessions
Example :
Returns :
Args :
=cut

sub each_secondary_accession{
my ($self) = @_;
return @{$self->{'secondary_accession'}};
}

=head2 sv =head2 sv
Title : sv Title : sv
Expand Down Expand Up @@ -530,3 +413,5 @@ sub keywords{








4 changes: 2 additions & 2 deletions Bio/AnnSeqIO.pm
Expand Up @@ -21,8 +21,8 @@ Bio::AnnSeqIO - Handler for AnnSeqIO Formats
$in = Bio::AnnSeqIO->new(-file => "inputfilename" , -format => 'Fasta'); $in = Bio::AnnSeqIO->new(-file => "inputfilename" , -format => 'Fasta');
$out = Bio::AnnSeqIO->new(-file => ">outputfilename" , -format => 'EMBL'); $out = Bio::AnnSeqIO->new(-file => ">outputfilename" , -format => 'EMBL');
while ($seq = $in->next_annseq() ) { while $seq ( $in->next_annseq() ) {
$out->write_annseq($seq); $out->write_annseq($out);
} }
=head1 DESCRIPTION =head1 DESCRIPTION
Expand Down

0 comments on commit a46f612

Please sign in to comment.