1 Sep 2003 04:28
Re: ace to msf format?
Jason Stajich <jason <at> cgt.duhs.duke.edu>
2003-09-01 02:28:43 GMT
2003-09-01 02:28:43 GMT
Each Contig is a Bio::Align::AlignI - so in theory you can manipulate
them as if they are Bio::SimpleAlign objects. Robson can clarify if there
are any caveats there.
But you want to do this to have access to each contig in the scaffold:
foreach my $contig ( $scaffold->all_contigs ) {
# process Bio::Assembly::Contig object here
}
Your code below is calling it in scalar context which will just have $aln
being set to the length of the returned array.
-jason
On Mon, 1 Sep 2003, Wes Barris wrote:
> Brian Osborne wrote:
>
> > Wes,
> >
> > I don't think this is possible in Bioperl. To put it more generally, AlignIO
> > can't accommodate Assembly objects currently. AlignIO is the module that
> > takes in a variety of alignment formats and interconverts them, analogous to
> > SeqIO. I'll be corrected if I'm wrong.
> >
> > Brian O.
>
> I am kind of new to this so I could be wrong but isn't an Assembly a group
> of alignments? So, from one assemble, a group of alignments could be
> generated?
(Continue reading)
RSS Feed