On Mon, Nov 29, 2010 at 9:00 PM, Dario Strbenac <[email protected]>wrote:

> Hello,
>
> I have a GRangesList and some of the GRanges elements of it are replicates
> that I'd like to pool together. I can't get the c() to work with GRanges
> that are in a GRangesList.
>
> > summary(IPlist)
>     Length       Class        Mode
>          8 GRangesList          S4
> > tmp <- do.call(c, IPlist[1:2])
> Error in do.call(c, IPlist[1:2]) : second argument must be a list
>
> Is there a smarter way of achieving my use case than using c() ? I've got
> GenomicRanges 1.2.1.
>
> Note that it also doesn't work if I have a standard list of GRanges.
>
> > tmpList <- as.list(IPlist)
> > tmp <- do.call(c, tmpList[1:2])
> > length(tmp)
> [1] 2
>
>
I think a do.call method would make sense for Sequence. Steve's work around
is fine. You could also just call unlist() in this case and likely get what
you want.


> Thanks,
>       Dario.
>
> --------------------------------------
> Dario Strbenac
> Research Assistant
> Cancer Epigenetics
> Garvan Institute of Medical Research
> Darlinghurst NSW 2010
> Australia
>
> _______________________________________________
> Bioc-sig-sequencing mailing list
> [email protected]
> https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing
>

        [[alternative HTML version deleted]]

_______________________________________________
Bioc-sig-sequencing mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/bioc-sig-sequencing

Reply via email to