Skip to content

Commit

Permalink
Merge branch 'master' of git://github.com/bioperl/bioperl-live
Browse files Browse the repository at this point in the history
  • Loading branch information
lstein committed Aug 30, 2012
2 parents addc1a1 + 5c83c81 commit f558449
Show file tree
Hide file tree
Showing 1,126 changed files with 112,524 additions and 45,750 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -17,3 +17,4 @@ t/LocalDB/SeqFeature_*.t
blib*
*.bak
MYMETA.yml
MYMETA.json
7 changes: 0 additions & 7 deletions .shipit

This file was deleted.

37 changes: 37 additions & 0 deletions .travis.yml
@@ -0,0 +1,37 @@
language: perl
perl:
- "5.16"
- "5.14"
- "5.12"
- "5.10"

env: PERL_CPANM_OPT="--notest --force --skip-satisfied"
install:
#This should solve problem installing Perl's DB_File & GraphViz
- "sudo apt-get install libdb-dev graphviz libgd2-xpm-dev libxml2-dev 2>&1 | tail -n 4"
#These are recommended or required Perl libraries:
- "cpanm GD 2>&1 | tail -n 1"
- "cpanm HTML::TableExtract DBI Data::Stag DB_File 2>&1 | tail -n 1"
- "cpanm DBD::mysql DBD::Pg DBD::SQLite 2>&1 | tail -n 1"
- "cpanm Algorithm::Munkres Array::Compare Convert::Binary::C Error 2>&1 | tail -n 1"
- "cpanm Graph SVG SVG::Graph GraphViz 2>&1 | tail -n 1"
- "cpanm XML::DOM::XPath XML::Parser XML::Parser::PerlSAX 2>&1 | tail -n 1"
- "cpanm XML::SAX XML::SAX::Writer XML::Simple XML::LibXML XML::Twig XML::Writer 2>&1 | tail -n 1"
- "cpanm PostScript::TextBlock Set::Scalar Sort::Naturally YAML | tail -n 1"
- "cpanm Math::Random SOAP::Lite Spreadsheet::ParseExcel | tail -n 1"
- "cpanm Bio::ASN1::EntrezGene | tail -n 1"
- "cpanm Bio::Phylo | tail -n 1"
#This installs BioPerl itself:
- "perl ./Build.PL --accept"

script:
- "./Build test"

#TODO - send emails to bioperl-guts-l
notifications:
email: false

# whitelist branches
branches:
only:
- master
4 changes: 2 additions & 2 deletions BUGS
Expand Up @@ -3,15 +3,15 @@
Known Bugs

Bugs are tracked at this URL:
http://bugzilla.bioperl.org/
https://redmine.open-bio.org/projects/bioperl/

Bioperl 1.6 series
=============

Though a stable release, some bugs and enhancements remain for this series
that will be addressed in future point releases. For a full list please see:

http://bugzilla.bioperl.org/
https://redmine.open-bio.org/projects/bioperl/

Bug Summary (additional info)

Expand Down
2 changes: 1 addition & 1 deletion Bio/Align/AlignI.pm
Expand Up @@ -70,7 +70,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
2 changes: 1 addition & 1 deletion Bio/Align/DNAStatistics.pm
Expand Up @@ -313,7 +313,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
2 changes: 1 addition & 1 deletion Bio/Align/PairwiseStatistics.pm
Expand Up @@ -58,7 +58,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
2 changes: 1 addition & 1 deletion Bio/Align/ProteinStatistics.pm
Expand Up @@ -68,7 +68,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
2 changes: 1 addition & 1 deletion Bio/Align/StatisticsI.pm
Expand Up @@ -51,7 +51,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
56 changes: 54 additions & 2 deletions Bio/Align/Utilities.pm
Expand Up @@ -74,7 +74,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand All @@ -101,7 +101,7 @@ require Exporter;
use base qw(Exporter);

@EXPORT = qw();
@EXPORT_OK = qw(aa_to_dna_aln bootstrap_replicates cat);
@EXPORT_OK = qw(aa_to_dna_aln bootstrap_replicates cat bootstrap_replicates_codons);
%EXPORT_TAGS = (all =>[@EXPORT, @EXPORT_OK]);
BEGIN {
use constant CODONSIZE => 3;
Expand Down Expand Up @@ -226,6 +226,58 @@ sub bootstrap_replicates {
return \@alns;
}

=head2 bootstrap_replicates_codons
Title : bootstrap_replicates_codons
Usage : my $alns = &bootstrap_replicates_codons($aln,100);
Function: Generate a pseudo-replicate of the data by randomly
sampling, with replacement, the columns from a codon alignment for
the non-parametric bootstrap. The alignment is assumed to start on
the first position of a codon.
Returns : Arrayref of L<Bio::SimpleAlign> objects
Args : L<Bio::SimpleAlign> object
Number of replicates to generate
=cut

sub bootstrap_replicates_codons {
my ($aln,$count) = @_;
$count ||= 1;
my $alen = $aln->length;
my $ncodon = int($alen/3);
my (@seqs,@nm);
$aln->set_displayname_flat(1);
for my $s ( $aln->each_seq ) {
push @seqs, $s->seq();
push @nm, $s->id;
}
my (@alns,$i);
while( $count-- > 0 ) {
my @newseqs;
for($i =0; $i < $ncodon; $i++ ) {
my $index = int(rand($ncodon));
my $seqpos = $index * 3;
my $c = 0;
for ( @seqs ) {
$newseqs[$c++] .= substr($_,$seqpos,3);
}
}
my $newaln = Bio::SimpleAlign->new();
my $i = 0;
for my $s ( @newseqs ) {
(my $tmp = $s) =~ s{[$Bio::LocatableSeq::GAP_SYMBOLS]+}{}g;
$newaln->add_seq( Bio::LocatableSeq->new
(-start => 1,
-end => length($tmp),
-display_id => $nm[$i++],
-seq => $s));
}
push @alns, $newaln;
}
return \@alns;
}


=head2 cat
Title : cat
Expand Down
19 changes: 17 additions & 2 deletions Bio/AlignIO.pm
Expand Up @@ -254,7 +254,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Peter Schattner
Expand Down Expand Up @@ -375,14 +375,29 @@ sub fh {
return $s;
}


=head2 format
Title : format
Usage : $format = $stream->format()
Function: Get the alignment format
Returns : alignment format
Args : none
=cut

# format() method inherited from Bio::Root::IO


# _initialize is where the heavy stuff will happen when new is called

sub _initialize {
my($self,@args) = @_;
my ($flat,$alphabet) = $self->_rearrange([qw(DISPLAYNAME_FLAT ALPHABET)],
my ($flat,$alphabet,$width) = $self->_rearrange([qw(DISPLAYNAME_FLAT ALPHABET WIDTH)],
@args);
$self->force_displayname_flat($flat) if defined $flat;
$self->alphabet($alphabet);
$self->width($width) if defined $width;
$self->_initialize_io(@args);
1;
}
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/Handler/GenericAlignHandler.pm
Expand Up @@ -562,7 +562,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Chris Fields
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/arp.pm
Expand Up @@ -77,7 +77,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/bl2seq.pm
Expand Up @@ -87,7 +87,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Peter Schattner
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/clustalw.pm
Expand Up @@ -54,7 +54,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Peter Schattner
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/emboss.pm
Expand Up @@ -59,7 +59,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
6 changes: 3 additions & 3 deletions Bio/AlignIO/fasta.pm
Expand Up @@ -41,7 +41,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS
Expand Down Expand Up @@ -227,8 +227,8 @@ sub write_aln {

sub _get_len {
my ($self,$seq) = @_;
my $chars = $Bio::LocatableSeq::RESIDUE_SYMBOLS;
$seq =~ s{[^$chars]+}{}gi;
my $chars = $Bio::LocatableSeq::GAP_SYMBOLS.$Bio::LocatableSeq::FRAMESHIFT_SYMBOLS;
$seq =~ s{[$chars]+}{}gi;
return CORE::length($seq);
}

Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/largemultifasta.pm
Expand Up @@ -53,7 +53,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Albert Vilella, Heikki Lehvaslaiho
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/maf.pm
Expand Up @@ -64,7 +64,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Allen Day
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/mase.pm
Expand Up @@ -46,7 +46,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Peter Schattner
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/mega.pm
Expand Up @@ -59,7 +59,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
of the bugs and their resolution. Bug reports can be submitted the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Jason Stajich
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/meme.pm
Expand Up @@ -59,7 +59,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Benjamin Berman
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/metafasta.pm
Expand Up @@ -58,7 +58,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHOR - Heikki Lehvaslaiho
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/msf.pm
Expand Up @@ -45,7 +45,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Peter Schattner
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/nexml.pm
Expand Up @@ -38,7 +38,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/nexus.pm
Expand Up @@ -49,7 +49,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Heikki Lehvaslaiho
Expand Down
2 changes: 1 addition & 1 deletion Bio/AlignIO/pfam.pm
Expand Up @@ -46,7 +46,7 @@ Report bugs to the Bioperl bug tracking system to help us keep track
the bugs and their resolution. Bug reports can be submitted via the
web:
http://bugzilla.open-bio.org/
https://redmine.open-bio.org/projects/bioperl/
=head1 AUTHORS - Peter Schattner
Expand Down

0 comments on commit f558449

Please sign in to comment.