Combine two GRanges to a single GRangesList
1
1
Entering edit mode
@sean-davis-490
Last seen 3 months ago
United States

I have two equal-length GRanges objects and want to combine them to a single GRangesList with each element of the GRangesList being one element from each of the GRanges objects.  Any suggestions?

granges grangeslist GenomicRanges • 2.0k views
ADD COMMENT
3
Entering edit mode
@martin-morgan-1513
Last seen 4 months ago
United States

Here's my naive guess splitAsList(c(gr1, gr2), seq_along(gr1)); probably a better way...

ADD COMMENT
0
Entering edit mode

Perfect.  Thanks, Martin.

ADD REPLY

Login before adding your answer.

Traffic: 841 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6