[BioC] how to unlist a list of GappedAlignments objects

Steve Lianoglou mailinglist.honeypot at gmail.com
Tue May 8 03:21:50 CEST 2012


Hi,

On Mon, May 7, 2012 at 7:27 PM, Yue Li <gorillayue at gmail.com> wrote:
> Dear R experts,
>
> I wonder if anyone knows how to unlist a list of GappedAlignments objects.
>
> Simply using unlist does not work b/c each GappedAlignments element of the list is compound.
>
> A brute-force way is to run a for loop and use 'append' to append each element to a GappedAlignments object. But this way is painfully slow.

Does something like this work?:

R> unlisted <- do.call(c, your.gapped.alignment.list)

-steve

-- 
Steve Lianoglou
Graduate Student: Computational Systems Biology
 | Memorial Sloan-Kettering Cancer Center
 | Weill Medical College of Cornell University
Contact Info: http://cbio.mskcc.org/~lianos/contact



More information about the Bioconductor mailing list