This is a test version of Biostars. For the public version, visit https://www.biostars.org.
iterating over GRangesList

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

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

0 answers

No answers yet.

Log in to answer this question.