|
NAMEBio::Das::Type - A sequence annotation typeSYNOPSISuse Bio::Das; # contact a DAS server using the "elegans" data source my $das = Bio::Das->new('http://www.wormbase.org/db/das' => 'elegans'); # find out what feature types are available my @types = $db->types; # get information on each one for my $t (@types) { my $id = $t->id; my $method = $t->method; my $category = $t->category; my $isreference = $t->reference; my $label = $t->label; my $method_label = $t->method_label; } DESCRIPTIONThe Bio::Das::Type class provides information about the type of an annotation. Each type has a category, which is a general description of the type, a unique ID, which names the type, and an optional method, which describes how the type was derived. A type may also be marked as being a landmark that can be used as a reference sequence.Optionally, types can have human readable labels. There is one label for the type itself, and another for the type's method. OBJECT CREATIONBio::Das::Type objects are created by calling the types() method of a Bio::Das or Bio::Das::Segment object. They are also created implicity when a Bio::Das::Segment::Feature is created.If needed, there is a simple constructor which can be called directly:
OBJECT METHODSThe following methods are public. Most of them use an accessor calling style. Called without an argument, they return the current value of the attribute. Called with an argument, they change the attribute and return its previous value.
LIMITATIONSDue to the requirements of the DAS spec, the reference() method will always return false for types returned by the Bio::Das->types() or Bio::Das::Segment->types() methods. As currently specified, the reference attribute is an attribute of an individual feature, and not of a generic type.AUTHORLincoln 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. SEE ALSOBio::Das, Bio::Das::Segment, Bio::Das::Segment::Feature
Visit the GSP FreeBSD Man Page Interface. |