Multiple unions

后端 未结 5 820
南笙
南笙 2021-01-04 08:00

I am trying to do unions on several lists (these are actually GRanges objects not integer lists but the priciple is the same), basically one big union.

x<         


        
5条回答
  •  旧巷少年郎
    2021-01-04 08:38

    A not necessarily memory efficient paradigm that will work with GRanges is

    Reduce(union, list(x, y, z))
    

    The argument might also be a GRangesList(x, y, z) for appropriate values of x etc.

提交回复
热议问题