![]() |
![]()
| ![]() |
![]()
NAMEStone::GB_Sequence - Specialized Access to GenBank Records SYNOPSISuse Boulder::Genbank; # No need to use Stone::GB_Sequence directly $gb = Boulder::Genbank->newFh qw(M57939 M28274 L36028); while ($entry = <$gb>) { print "Entry's length is ",$entry->length,"\n"; @cds = $entry->match_features(-type=>'CDS'); @exons = $entry->match_features(-type=>'Exon',-start=>100,-end=>300); } } DESCRIPTIONStone::GB_Sequence provides several specialized access methods to the various fields in a GenBank flat file record. You can return the sequence as a Bio::Seq object, or query the sequence for features that match positional or descriptional criteria that you provide. CONSTRUCTORSThis class is not intended to be created directly, but via a Boulder::Genbank stream. METHODSIn addition to the standard Stone methods and accessors, the following methods are provided. In the synopses, the variable $entry refers to a previously-created Stone::GB_Sequence object. $length = $entry->lengthGet the length of the sequence. $start = $entry->startGet the start position of the sequence, currently always "1". $end = $entry->endGet the end position of the sequence, currently always the same as the length. @feature_list = $entry->features(-pos=>[50,450],-type=>['CDS','Exon'])features() will search the entry feature list for those features that meet certain criteria. The criteria are specified using the -pos and/or -type argument names, as shown below.
$seqObj = $entry->bioSeq;Returns a Bio::Seq object from the Bioperl project. Dies with an error message unless the Bio::Seq module is installed. AUTHORLincoln D. Stein <lstein@cshl.org>. COPYRIGHTCopyright 1997-1999, Cold Spring Harbor Laboratory, Cold Spring Harbor NY. This module can be used and distributed on the same terms as Perl itself. SEE ALSOBoulder, <Boulder:Genbank>, Stone POD ERRORSHey! The above document had some coding errors, which are explained below:
|