3 # BioPerl module for Bio::Factory::LocationFactoryI
5 # Cared for by Hilmar Lapp <hlapp at gmx.net>
7 # Copyright Hilmar Lapp
9 # You may distribute this module under the same terms as perl itself
12 # (c) Hilmar Lapp, hlapp at gnf.org, 2002.
13 # (c) GNF, Genomics Institute of the Novartis Research Foundation, 2002.
15 # You may distribute this module under the same terms as perl itself.
16 # Refer to the Perl Artistic License (see the license accompanying this
17 # software package, or see http://www.perl.com/language/misc/Artistic.html)
18 # for the terms under which you may use, modify, and redistribute this module.
20 # THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
21 # WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
22 # MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
25 # POD documentation - main docs before the code
29 Bio::Factory::LocationFactoryI - A factory interface for generating locations from a string
33 # Do not use directly, see Bio::Factory::LocationFactory for example
34 use Bio::Factory::FTLocationFactory;
35 my $locfact = Bio::Factory::FTLocationFactory->new();
36 my $location = $locfact->from_string("1..200");
37 print $location->start(), " ", $location->end(), " ", $location->strand,"\n";
41 An interface for Location Factories which generate Bio::LocationI
42 objects from a string.
48 User feedback is an integral part of the evolution of this and other
49 Bioperl modules. Send your comments and suggestions preferably to
50 the Bioperl mailing list. Your participation is much appreciated.
52 bioperl-l@bioperl.org - General discussion
53 http://bioperl.org/wiki/Mailing_lists - About the mailing lists
57 Report bugs to the Bioperl bug tracking system to help us keep track
58 of the bugs and their resolution. Bug reports can be submitted via the
61 http://bugzilla.open-bio.org/
63 =head1 AUTHOR - Hilmar Lapp
65 Email hlapp at gmx.net
69 The rest of the documentation details each of the object methods.
70 Internal methods are usually preceded with a _
75 # Let the code begin...
78 package Bio
::Factory
::LocationFactoryI
;
82 use base
qw(Bio::Root::RootI);
87 Usage : $loc = $locfactory->from_string("100..200");
88 Function: Parses the given string and returns a Bio::LocationI implementing
89 object representing the location encoded by the string.
91 Different implementations may support different encodings. An
92 example of a commonly used encoding is the Genbank feature table
93 encoding of locations.
95 Returns : A Bio::LocationI implementing object.
102 my ($self,@args) = @_;
104 $self->throw_not_implemented();