[Bioc-sig-seq] rdapply(): Going from RangedData to RangedData (not to list)

Ivan Gregoretti ivangreg at gmail.com
Wed Apr 28 15:42:34 CEST 2010


Please consider adding this example to the online help. It will be
much appreciated by ChIP-seqers.

Thank you,

Ivan

Ivan Gregoretti, PhD
National Institute of Diabetes and Digestive and Kidney Diseases
National Institutes of Health



On Tue, Apr 27, 2010 at 6:08 PM, Michael Lawrence
<lawrence.michael at gene.com> wrote:
> Your reducer function could be something like:
>
> function(rds) do.call(c, rds)
>
> On Tue, Apr 27, 2010 at 11:32 AM, Ivan Gregoretti <ivangreg at gmail.com>
> wrote:
>>
>> Hello listers,
>>
>> Can anybody show how to consolidate the list output of rdapply to
>> RangedData?
>>
>>
>>
>> rdapply accepts a RangedData objects and outputs a list. That may be
>> inconvenient and that is why there is the
>> reducerFun argument to help you undo that list.
>>
>> The vignette shows an example where a list of numbers is coerced into
>> a vector of numbers. It is done quite simply with
>>
>> reducerFun = unlist,
>> reducerParams = list(use.names = FALSE)
>>
>> Well, that is simple if, like in the example, the elements of the
>> lists are just integers. What if the elements of the list are
>> RangedData?
>>
>> Can anybody show an example? I tried and failed.
>>
>> Thank you
>>
>> Ivan
>>
>> Ivan Gregoretti, PhD
>> National Institute of Diabetes and Digestive and Kidney Diseases
>> National Institutes of Health
>>
>> _______________________________________________
>> Bioc-sig-sequencing mailing list
>> Bioc-sig-sequencing at r-project.org
>> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>
>



More information about the Bioc-sig-sequencing mailing list