GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Das::FeatureIterator(3) User Contributed Perl Documentation Das::FeatureIterator(3)

Bio::Das::FeatureIterator - Iterate over a set of Bio::Das::Features

 my $iterator =  $das->features(-dsn => ['http://www.wormbase.org/db/das/elegans',
                                         'http://dev.wormbase.org/db/das/elegans'
                                        ],
                                -segment => ['I:1,10000','II:1,10000'],
                                -category => 'transcription',
                                -iterator => 1,
                              );
 while (my $feature = $iterator=>next_seq) {
   print $feature,"\n";
 }

When the Bio::Das->features() method is called with the -iterator argument, the method will return an iterator over the features returned from the various data sources. Each feature can be returned by calling next_seq() iteratively until the method returns undef.

This is not as neat as it seems, because it works by creating all the features in advance and storing them in memory. For true pipelined access to the features, call features() with a callback subroutine.

Lincoln Stein <lstein@cshl.org>.

Copyright (c) 2001 Cold Spring Harbor Laboratory

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See DISCLAIMER.txt for disclaimers of warranty.

Bio::Das::Request, Bio::Das::HTTP::Fetch, Bio::Das::Segment, Bio::Das::Type, Bio::Das::Stylesheet, Bio::Das::Source, Bio::RangeI
2004-01-02 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.