[Bioperl-l] Difference between Bio::SimpleAlign Object andBio::Align::AlignI Object
Mark A. Jensen
maj at fortinbras.us
Sat Feb 21 23:58:20 UTC 2009
(BTW, the Bio::SimpleAlign object is-a Bio::Align::AlignI object through
inheritance, which suggested to me that that wasn't the real issue. MAJ)
----- Original Message -----
From: "Warren Gallin" <wgallin at ualberta.ca>
To: "BioPerl List" <Bioperl-l at lists.open-bio.org>
Sent: Saturday, February 21, 2009 5:59 PM
Subject: [Bioperl-l] Difference between Bio::SimpleAlign Object
andBio::Align::AlignI Object
> The following code snippet returns a Bio::SimpleAlign Object
>
>
> my $stream = Bio::AlignIO->new(-file => $infile, -format => "fasta");
>
> my $prot_align = $stream -> next_aln;
>
>
> However, later on I want to use $prot_align to align the codons from the
> nucleic acid sequence
>
> my $dna_align = Bio::Align::Utilities -> aa_to_dna_aln($prot_align, \
> %nucseq_hash);
>
>
> gives me the following error message:
>
> Must provide a valid Bio::Align::AlignI object as the first argument to
> aa_to_dna_aln, see the documentation for proper usage and the method
> signature at 090220Make_NA_Align_from_AA_Align.pl line 66
>
> So my question is, how do I create a Bio::Align::AlignI object from the
> Bio::SimpleAlign object?
>
> I suspect that I am missing some subtlety here, but I haven't been able to
> find any documentation that matches these two up.
>
> Warren Gallin
> _______________________________________________
> Bioperl-l mailing list
> Bioperl-l at lists.open-bio.org
> http://lists.open-bio.org/mailman/listinfo/bioperl-l
>
>
More information about the Bioperl-l
mailing list