~ubuntu-branches/ubuntu/trusty/bioperl/trusty-proposed

« back to all changes in this revision

Viewing changes to Bio/Ontology/TermFactory.pm

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# $Id: TermFactory.pm,v 1.7.4.1 2006/10/02 23:10:22 sendu Exp $
 
1
# $Id: TermFactory.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#
3
3
# BioPerl module for Bio::Ontology::TermFactory
4
4
#
34
34
    use Bio::Ontology::TermFactory;
35
35
 
36
36
    # the default type is Bio::Ontology::Term
37
 
    my $factory = new Bio::Ontology::TermFactory(
 
37
    my $factory = Bio::Ontology::TermFactory->new(
38
38
                        -type => 'Bio::Ontology::GOterm');
39
39
    my $term = $factory->create_object(-name => 'peroxisome',
40
40
                                       -ontology => 'Gene Ontology',
90
90
=head2 new
91
91
 
92
92
 Title   : new
93
 
 Usage   : my $obj = new Bio::Ontology::TermFactory();
 
93
 Usage   : my $obj = Bio::Ontology::TermFactory->new();
94
94
 Function: Builds a new Bio::Ontology::TermFactory object 
95
95
 Returns : Bio::Ontology::TermFactory
96
96
 Args    : -type => string, name of a Bio::Ontology::TermI derived class.