Skip to content
Snippets Groups Projects

Experimental/rishi genbank

8 files
+ 919
120
Compare changes
  • Side-by-side
  • Inline
Files
8
+ 61
0
=head1 LICENSE
Copyright [1999-2016] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
=head1 NAME
Bio::EnsEMBL::IO::Object::Genbank - Generic object for holding Genbank based records
=head1 SYNOPSIS
=head1 Description
=cut
package Bio::EnsEMBL::IO::Object::Genbank;
use strict;
use warnings;
use Carp;
my %writable_object_fields = (
gene => [ "location", "gene", "locus_tag","note" ],
mRNA => [ "location", "gene", "note" ],
misc_RNA => [ "location", "gene", "note", "db_xref" ],
CDS => [ "location", "gene", "protein_id", "note", "db_xref", "translation" ]
);
=head2 fields
Description: Access the fields for a Genbank type record.
Parameter: The type of object which needs to be printed
Returntype: Array of header fields
=cut
sub fields
{
my $self = shift;
my $key = shift;
return %writable_object_fields{$key} ;
}