1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
| #!/usr/local/bin/perl
use strict;
use warnings;
use Time::localtime;
use Bio::Tools::Run::Alignment::Clustalw;
BEGIN { $ENV{CLUSTALDIR} = 'C:/clustalw/' }
use Bio::Tools::Run::Alignment::Clustalw;
# Build a clustalw alignment factory
my $out_file = "ClustalW_Out";
my @params = ('ktuple' => 2, 'matrix' => 'BLOSUM', 'outfile' => $out_file,);
#my @params = ('ktuple' => 2, 'type' => 'dna', 'outfile' => "CLustalW_Out");
my $factory = Bio::Tools::Run::Alignment::Clustalw->new(@params);
# Pass the factory a list of sequences to be aligned.
my $inputfilename = "Fichier";
my $aln = $factory->align($inputfilename); # $aln is a SimpleAlign object. |