I have installed Active Perl in Windows XP. Through Perl Package Manager I have installed BioPerl repositories. But while trying to execute this BioPerl program:
#!/usr/bin/env perl use Bio::Seq; use Bio::SeqIO; # create a sequence object of some DNA my $seq = Bio::Seq->new(-id => 'testseq', -seq => 'CATGTAGATAG'); # print out some details about it print "seq is ", $seq->length, " bases long\n"; print "revcom seq is ", $seq->revcom->seq, "\n"; # write it to a file in Fasta format my $out = Bio::SeqIO->new(-file => '>testseq.fsa', -format => 'Fasta'); $out->write_seq($seq);
The following error is occurring
Cant locate Bio/Seq.pm in @INC at C:\Perl\bin\Sequence.pl line1. BEGIN failed--compilation aborted at C:\Perl\bin\Sequence.pl line1.
What is the problem here? How can I identify whether BioPerl is installed or not?