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

« back to all changes in this revision

Viewing changes to Bio/Matrix/PSM/SiteMatrix.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: SiteMatrix.pm,v 1.31.4.3 2006/10/02 23:10:22 sendu Exp $
 
1
# $Id: SiteMatrix.pm 11480 2007-06-14 14:16:21Z sendu $
2
2
#---------------------------------------------------------
3
3
 
4
4
=head1 NAME
22
22
  my %param=(-pA=>$a,-pC=>$c,-pG=>$g,-pT=>$t,
23
23
             -lA=>$la, -lC=>$lc,-lG=>$lg,-lT=>$l,
24
24
             -IC=>$ic,-e_val=>$score, -id=>$mid);
25
 
  my $site=new Bio::Matrix::PSM::SiteMatrix(%param);
 
25
  my $site=Bio::Matrix::PSM::SiteMatrix->new(%param);
26
26
  #Or get it from a file:
27
27
  use Bio::Matrix::PSM::IO;
28
 
  my $psmIO= new Bio::Matrix::PSM::IO(-file=>$file, -format=>'transfac');
 
28
  my $psmIO= Bio::Matrix::PSM::IO->new(-file=>$file, -format=>'transfac');
29
29
  while (my $psm=$psmIO->next_psm) {
30
30
    #Now we have a Bio::Matrix::PSM::Psm object, 
31
31
    # see Bio::Matrix::PSM::PsmI for details
153
153
=head2 new
154
154
 
155
155
 Title   : new
156
 
 Usage   : my $site=new Bio::Matrix::PSM::SiteMatrix(-pA=>$a,-pC=>$c,
 
156
 Usage   : my $site=Bio::Matrix::PSM::SiteMatrix->new(-pA=>$a,-pC=>$c,
157
157
                                                     -pG=>$g,-pT=>$t,
158
158
                                                     -IC=>$ic,
159
159
                                                     -e_val=>$score,