Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

ace::model(3pm) [debian man page]

Ace::Model(3pm) 					User Contributed Perl Documentation					   Ace::Model(3pm)

NAME
Ace::Model - Get information about AceDB models SYNOPSIS
use Ace; my $db = Ace->connect(-path=>'/usr/local/acedb/elegans'); my $model = $db->model('Author'); print $model; $name = $model->name; @tags = $model->tags; print "Paper is a valid tag" if $model->valid_tag('Paper'); DESCRIPTION
This class is provided for access to AceDB class models. It provides the model in human-readable form, and does some limited but useful parsing on your behalf. Ace::Model objects are obtained either by calling an Ace database handle's model() method to retrieve the model of a named class, or by calling an Ace::Object's model() method to retrieve the object's particular model. METHODS
new() $model = Ace::Model->new($model_data); This is a constructor intended only for use by Ace and Ace::Object classes. It constructs a new Ace::Model object from the raw string data in models.wrm. name() $name = $model->name; This returns the class name for the model. tags() @tags = $model->tags; This returns a list of all the valid tags in the model. valid_tag() $boolean = $model->valid_tag($tag); This returns true if the given tag is part of the model. path() @path = $model->path($tag) Returns the path to the indicated tag, returning a list of intermediate tags. For example, in the C elegans ?Locus model, the path for 'Compelementation_data" will return the list ('Type','Gene'). asString() print $model->asString; asString() returns the human-readable representation of the model with comments stripped out. Internally this method is called to automatically convert the model into a string when appropriate. You need only to start performing string operations on the model object in order to convert it into a string automatically: print "Paper is unique" if $model=~/Paper ?Paper UNIQUE/; SEE ALSO
Ace AUTHOR
Lincoln Stein <lstein@w3.org> with extensive help from Jean Thierry-Mieg <mieg@kaa.crbm.cnrs-mop.fr> Copyright (c) 1997-1998, Lincoln D. Stein This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2003-06-01 Ace::Model(3pm)

Check Out this Related Man Page

Ace::Graphics::Glyph::anchored_arrow(3pm)		User Contributed Perl Documentation		 Ace::Graphics::Glyph::anchored_arrow(3pm)

NAME
Ace::Graphics::Glyph::anchored_arrow - The "anchored_arrow" glyph SYNOPSIS
See L<Ace::Graphics::Panel> and L<Ace::Graphics::Glyph>. DESCRIPTION
This glyph draws an arrowhead which is anchored at one or both ends (has a vertical base) or has one or more arrowheads. The arrowheads indicate that the feature does not end at the edge of the picture, but continues. For example: |-----------------------------| both ends in picture <----------------------| left end off picture |----------------------------> right end off picture <------------------------------------> both ends off picture OPTIONS In addition to the standard options, this glyph recognizes the following: Option Description Default -tick draw a scale 0 -rel_coords use relative coordinates false for scale The argument for b<-tick> is an integer between 0 and 2 and has the same interpretation as the b<-tick> option in Ace::Graphics::Glyph::arrow. If b<-rel_coords> is set to a true value, then the scale drawn on the glyph will be in relative (1-based) coordinates relative to the beginning of the glyph. BUGS
Please report them. SEE ALSO
Ace::Sequence, Ace::Sequence::Feature, Ace::Graphics::Panel, Ace::Graphics::Track, Ace::Graphics::Glyph::anchored_arrow, Ace::Graphics::Glyph::arrow, Ace::Graphics::Glyph::box, Ace::Graphics::Glyph::primers, Ace::Graphics::Glyph::segments, Ace::Graphics::Glyph::toomany, Ace::Graphics::Glyph::transcript, AUTHOR
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. perl v5.14.2 2001-06-04 Ace::Graphics::Glyph::anchored_arrow(3pm)
Man Page