comparison variant_effect_predictor/Bio/Factory/SequenceStreamI.pm @ 0:21066c0abaf5 draft

Uploaded
author willmclaren
date Fri, 03 Aug 2012 10:04:48 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:21066c0abaf5
1 # $Id: SequenceStreamI.pm,v 1.3 2002/10/22 07:45:14 lapp Exp $
2 #
3 # BioPerl module for Bio::Factory::SequenceStreamI
4 #
5 # Cared for by Jason Stajich <jason@bioperl.org>
6 #
7 # Copyright Jason Stajich
8 #
9 # You may distribute this module under the same terms as perl itself
10
11 # POD documentation - main docs before the code
12
13 =head1 NAME
14
15 Bio::Factory::SequenceStreamI - Interface describing the basics of a Sequence Stream.
16
17 =head1 SYNOPSIS
18
19 # get a SequenceStreamI object somehow like with SeqIO
20 use Bio::SeqIO;
21 my $in = new Bio::SeqIO(-file => '< fastafile');
22 while( my $seq = $in->next_seq ) {
23 }
24
25 =head1 DESCRIPTION
26
27 This interface is for describing objects which produces
28 Bio::PrimarySeqI objects or processes Bio::PrimarySeqI objects to a
29 data stream.
30
31 =head1 FEEDBACK
32
33 =head2 Mailing Lists
34
35 User feedback is an integral part of the evolution of this and other
36 Bioperl modules. Send your comments and suggestions preferably to
37 the Bioperl mailing list. Your participation is much appreciated.
38
39 bioperl-l@bioperl.org - General discussion
40 http://bioperl.org/MailList.shtml - About the mailing lists
41
42 =head2 Reporting Bugs
43
44 Report bugs to the Bioperl bug tracking system to help us keep track
45 of the bugs and their resolution. Bug reports can be submitted via
46 email or the web:
47
48 bioperl-bugs@bioperl.org
49 http://bugzilla.bioperl.org/
50
51 =head1 AUTHOR - Jason Stajich
52
53 Email jason@bioperl.org
54
55 Describe contact details here
56
57 =head1 CONTRIBUTORS
58
59 Additional contributors names and emails here
60
61 =head1 APPENDIX
62
63 The rest of the documentation details each of the object methods.
64 Internal methods are usually preceded with a _
65
66 =cut
67
68
69 # Let the code begin...
70
71
72 package Bio::Factory::SequenceStreamI;
73 use vars qw(@ISA);
74 use strict;
75 use Bio::Root::RootI;
76
77 @ISA= qw(Bio::Root::RootI);
78
79 =head2 next_seq
80
81 Title : next_seq
82 Usage : $seq = stream->next_seq
83 Function: Reads the next sequence object from the stream and returns it.
84
85 Certain driver modules may encounter entries in the stream that
86 are either misformatted or that use syntax not yet understood
87 by the driver. If such an incident is recoverable, e.g., by
88 dismissing a feature of a feature table or some other non-mandatory
89 part of an entry, the driver will issue a warning. In the case
90 of a non-recoverable situation an exception will be thrown.
91 Do not assume that you can resume parsing the same stream after
92 catching the exception. Note that you can always turn recoverable
93 errors into exceptions by calling $stream->verbose(2).
94 Returns : a Bio::Seq sequence object
95 Args : none
96
97 See L<Bio::Root::RootI>
98
99 =cut
100
101 sub next_seq {
102 shift->throw_not_implemented();
103 }
104
105 =head2 write_seq
106
107 Title : write_seq
108 Usage : $stream->write_seq($seq)
109 Function: writes the $seq object into the stream
110 Returns : 1 for success and 0 for error
111 Args : Bio::Seq object
112
113 =cut
114
115 sub write_seq {
116 shift->throw_not_implemented();
117 }
118
119 =head2 sequence_factory
120
121 Title : sequence_factory
122 Usage : $seqio->sequence_factory($seqfactory)
123 Function: Get the Bio::Factory::SequenceFactoryI
124 Returns : Bio::Factory::SequenceFactoryI
125 Args : none
126
127
128 =cut
129
130 sub sequence_factory{
131 shift->throw_not_implemented();
132 }
133
134 1;