~ubuntu-branches/ubuntu/saucy/bioperl/saucy-proposed

« back to all changes in this revision

Viewing changes to Bio/Tree/RandomFactory.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: RandomFactory.pm,v 1.18.4.1 2006/10/02 23:10:37 sendu Exp $
 
1
# $Id: RandomFactory.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#
3
3
# BioPerl module for Bio::Tree::RandomFactory
4
4
#
18
18
 
19
19
  use Bio::Tree::RandomFactory
20
20
  my @taxonnames;
21
 
  my $factory = new Bio::Tree::RandomFactory( -taxa => \@taxonnames,
 
21
  my $factory = Bio::Tree::RandomFactory->new( -taxa => \@taxonnames,
22
22
                                              -maxcount => 10);
23
23
 
24
24
  # or for anonymous samples
25
25
 
26
 
  my $factory = new Bio::Tree::RandomFactory( -num_taxa => 6,
 
26
  my $factory = Bio::Tree::RandomFactory->new( -num_taxa => 6,
27
27
                                              -maxcount => 50);
28
28
 
29
29
 
109
109
=head2 new
110
110
 
111
111
 Title   : new
112
 
 Usage   : my $factory = new Bio::Tree::RandomFactory(-samples => \@samples,
 
112
 Usage   : my $factory = Bio::Tree::RandomFactory->new(-samples => \@samples,
113
113
                                                      -maxcount=> $N);
114
114
 Function: Initializes a Bio::Tree::RandomFactory object
115
115
 Returns : Bio::Tree::RandomFactory