Can't call method "isa" on unblessed reference at C:/Perl/site/lib/Bio/Tools/Run/Alignment/Clustalw.pm line 85
Appel du sous-programme
Code:
&ClustalW2 ($out_file, \($seq->seq, $sequences_ref{$gene}) );
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
| sub ClustalW2 {
my $fich_fsa = $_[0];
my $seq_array_ref = $_[1];
(my $fich_msf) = $fich_fsa =~ s/\.fsa/\.msf/;
# my $fich_msf_fh = FileHandle->new (">".$fich_msf);
# close $fich_msf_fh;
my @params = (
'gapopen' => 15,
'PAIRGAP' => 0,
'ktuple' => 4,
'type' => 'dna',
'outfile' => $fich_msf,
'format' => 'Fasta',
'outorder' => 'aligned',
);
# and pass the factory a reference to that array
my $factory = Bio::Tools::Run::Alignment::Clustalw->new(@params);
$factory->executable("C:/ClustalW2/clustalw2.exe");
# $factory->executable("C:/ClustalW/clustalw.exe");
my $aln = $factory->align($seq_array_ref);
# création du fichier fasta
my $in_msf = Bio::AlignIO->new(-file => $fich_msf , -format => 'msf');
my $out_fsa = Bio::AlignIO->new(-file => ">".$fich_fsa , -format => 'fasta');
while ( my $aln = $in_msf->next_aln() ) {
$out_fsa->write_aln($aln);
}
} |
ERREUR
Citation:
Can't call method "isa" on unblessed reference at C:/Perl/site/lib/Bio/Tools/Run/Alignment/Clustalw.pm line 854, <GEN0> line 1.
Merci pour votre aide