Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bio::chado::schema::util(3pm) [debian man page]

Bio::Chado::Schema::Util(3pm)				User Contributed Perl Documentation			     Bio::Chado::Schema::Util(3pm)

NAME
Bio::Chado::Schema::Util - utility functions shared by Bio::Chado::Schema objects SYNOPSIS
sub create_organismprops { my ($self, $props, $opts) = @_; # process opts $opts ||= {}; $opts->{cv_name} = 'organism_property' unless defined $opts->{cv_name}; return Bio::Chado::Schema::Util->create_props ( properties => $props, options => $opts, row => $self, prop_relation_name => 'organismprops', ); } DESCRIPTION
Helper functions used by several schema classes. Important Note: This package is located in the Schema.pm file as secondary package and it haven't a file for itself. Nevertheless, the use will be the same. PACKAGE METHODS
create_properties Usage: *::Util->create_properties( row => $self, properties => { baz => 2, foo => 'bar' }, options => { cv_name => autocreate => 0, ...}, prop_relation_name => 'organismprops', ); Desc : Chado has a number of <thing>prop tables with a similar structure. This utility function is used by a number of modules to create properties in these kinds of tables. Args : row => the DBIC row object to create properties for, prop_relation_name => the DBIC relation name for the properties table to operate on, e.g. 'featureprops', properties => hashref of { propname => value, ...}, options => options hashref as: { autocreate => 0, (optional) boolean, if passed, automatically create cv, cvterm, and dbxref rows if one cannot be found for the given featureprop name. Default false. cv_name => cv.name to use for the given featureprops. Defaults to 'feature_property', db_name => db.name to use for autocreated dbxrefs, default 'null', allow_duplicate_values => default false. If true, allow duplicate instances of the same cvterm and value in the properties of the feature. Duplicate values will have different ranks. dbxref_accession_prefix => optional, default 'autocreated:', definitions => optional hashref of: { cvterm_name => definition, } to load into the cvterm table when autocreating cvterms } Ret : hashref of { propname => new row object in property table } AUTHOR
Robert Buels, <rmb32@cornell.edu> Naama Menda, <naama.menda@gmail.com> COPYRIGHT &; LICENSE Copyright 2009 Boyce Thompson Institute for Plant Research This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-11-08 Bio::Chado::Schema::Util(3pm)

Check Out this Related Man Page

DBIx::Class::Helpers::Util(3pm) 			User Contributed Perl Documentation			   DBIx::Class::Helpers::Util(3pm)

NAME
DBIx::Class::Helpers::Util - Helper utilities for DBIx::Class components VERSION
version 2.013002 SYNOPSIS
my ($namespace, $class) = get_namespace_parts('MyApp:Schema::Person'); is $namespace, 'MyApp::Schema'; is $class, 'Person'; if (is_load_namespaces('MyApp::Schema::Result::Person')) { print 'correctly structured project'; } if (is_not_load_namespaces('MyApp::Schema::Person')) { print 'incorrectly structured project'; } if (assert_similar_namespaces('MyApp::Schema::Person', 'FooApp::Schema::People')) { print 'both projects are structured similarly'; } if (assert_similar_namespaces('MyApp::Schema::Result::Person', 'FooApp::Schema::Result::People')) { print 'both projects are structured similarly'; } DESCRIPTION
A collection of various helper utilities for DBIx::Class stuff. Probably only useful for components. METHODS
get_namespace_parts Returns the namespace and class name of a package. See "SYNOPSIS" for example. is_load_namespaces Returns true if a package is structured in a way that would work for load_namespaces. See "SYNOPSIS" for example. is_not_load_namespaces Returns true if a package is structured in a way that would not work for load_namespaces. See "SYNOPSIS" for example. assert_similar_namespaces Dies if both packages are structured in the same way. The same means both are load_namespaces or both are not. See "SYNOPSIS" for example. AUTHOR
Arthur Axel "fREW" Schmidt <frioux+cpan@gmail.com> COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Arthur Axel "fREW" Schmidt. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-18 DBIx::Class::Helpers::Util(3pm)
Man Page