[Bioc-sig-seq] mapply with GRangesList
Dario Strbenac
D.Strbenac at garvan.org.au
Thu Mar 24 04:00:17 CET 2011
Ah, neat. I was using as.list(grl) as my workaround, which is obviously slower.
> The workaround is along the lines of
>
> lapply(seq_len(length(grl)),
> function(i, x, y, ...) print(x[[i]]),
> grl, 1:2)
>
> Since the mapply method is for List (Sequence in
> release), another work-around is:
>
> mapply(function(x, y) { print(x) print(y) }, grl,
> IntegerList(1, 2), simplify=FALSE)
--------------------------------------
Dario Strbenac
Research Assistant
Cancer Epigenetics
Garvan Institute of Medical Research
Darlinghurst NSW 2010
Australia
More information about the Bioc-sig-sequencing
mailing list