iterating over GRangesList
0
0
Entering edit mode
2.1 years ago
Paulina • 0

I am looping over a GRangesList but it takes ages to process. Can anyone help me optimize the code please?

groupMat <- lapply(1:length(subCvgList), function(f) { grCluster = subCvgList[f] lapply(1:length(regionTiles), function(x) { idx <- findOverlaps(allRegionTilesGR[x], grCluster) sum(grCluster$score[subjectHits(idx)]) }) }) %>% do.call(cbind, .)

Ranges GRangesList GRanges Genomic • 373 views
ADD COMMENT
0
Entering edit mode

Please describe what you're doing. Add example data.

ADD REPLY

Login before adding your answer.

Traffic: 2013 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