dimitris852 has asked for the wisdom of the Perl Monks concerning the following question:
hello everybody, i just installed perl, bioperl and clustalw. I have near one year from the last time i worked with perl. Too many errors not leeting me use bioperl modules stopped me back then fromm keeping up with perl.No i m here again and i want your help. i have a quite easy task for a monk, but for a newbie like me its a bit tricky.All i have to do is a multile allingnment of a protein fasta file using clustalw.
#!/usr/bin/perl use warnings; use strict; use Bio::AlignIO; use Bio::SeqIO; use Bio::Tools::Run::Alignment::Clustalw; my $file = shift or die; # Get filename from command prompt. my $factory = Bio::Tools::Run::Alignment::Clustalw->new(-matrix => 'BL +OSUM'); my $ktuple = 3; $factory->ktuple($ktuple); my $inseq = Bio::SeqIO->new( -file => "<$file", -format => $format ); my $seq; my @seq_array; while ($seq = $inseq->next_seq) { push(@seq_array, $seq); } # Now we do the actual alignment. my $seq_array_ref = \@seq_array; my $aln = $factory->align($seq_array_ref);
Cant see if this code actually Works,beacause of this anoynig message :Can't locate Bio/Tools/Run/Alignment/Clustalw.pm in @INC (you may need to install the Bio::Tools::Run::Alignment::Clustalw module) (@INC contains: C:/Perl64/site/lib C:/Perl64/lib .) at c3.pl line 8. BEGIN failed--compilation aborted at c3.pl line 8.
Any help will be much apreciated!Its extremely important to finish my task by any means as soon as possible
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Clustalw and bioperl
by 1nickt (Canon) on Mar 12, 2016 at 02:43 UTC | |
by dimitris852 (Acolyte) on Mar 12, 2016 at 12:25 UTC | |
by FreeBeerReekingMonk (Deacon) on Mar 12, 2016 at 14:13 UTC | |
by 1nickt (Canon) on Mar 12, 2016 at 15:17 UTC |