[Bioperl-l] Re: [Bioperl-guts-l] (no subject)
Jason Stajich
jason@cgt.mc.duke.edu
Tue, 22 Oct 2002 19:16:20 -0400 (EDT)
On Tue, 22 Oct 2002, Sally Li wrote:
>
> Hi, there,
>
> I have trouble with aligment format change. My codes is
>
>
>
> use Bio::AlignIO;
> use Bio::SimpleAlign;
>
> #my $inputFileName="/export/people/tang/perlproj1/fordan/pepp.fasta";
> my $inputFileName="./pepp.fasta";
> my $in=Bio::AlignIO->newFh(-file=>$inputFileName, '-format'=>'fasta');
> my $out=Bio::AlignIO->newFh( -file=>">outAln", '-format'=>'clustalw');
>
You have to get the alignments out from the reader.
my $aln;
while( defined($aln = <$in>) ) {
print $out $aln
}
>
> The error msgs like:
>
> Can't call method "isa" without a package or object reference at /usr/local/lib/perl5/site_perl/5.8.0/Bio/AlignIO/clustalw.pm line 180.
>
> The bioperl works fine for other objs.
>
>
>
> Any help is appreciated.
>
>
>
> Sally.
>
>
>
>
>
>
> ---------------------------------
> Do you Yahoo!?
> Y! Web Hosting - Let the expert host your web site
--
Jason Stajich
Duke University
jason at cgt.mc.duke.edu