[BioC] how to unlist a list of GappedAlignments objects

Yue Li gorillayue at gmail.com
Tue May 8 04:01:23 CEST 2012


Hi Steve,

That works wonderfully! Thank you so much!

Yue

On 2012-05-07, at 9:21 PM, Steve Lianoglou wrote:

> 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