Dear all:
I am wondering that any good output representation for overlapping of multiple GRanges by parallel. my object is grs[[1L]]
as query
but need to remove all background noise features from query (where I set up threshold for doing this task) before proceeding overlap with grs[-1L].
However, I sketched possible steps that might yields result that I expected, but couldn't decide proper and nice output representation I might try for set of overlap-hit index. Possible idea is needed.
Plus, I want to avoid of using nested lapply for parallel overlapping, but how to process one to many overlap mapping in two parallel batches? I tried of using mapply, but it return only fist parallel mapping, while rest were dropped, I don't know why. I hope someone could point me out possible approach to go. Can anyone propose possible ideas, or approach to have more compatible solution for this?
# simulated data
foo <- GRanges( seqnames=Rle(c("chr1", "chr2", "chr3", "chr4"), c(5, 6, 4, 3)), ranges=IRanges(seq(1, by=9, len=18), seq(6, by=9, len=18)), rangeName=letters[seq(1:18)], score=sample(1:25, 18, replace = FALSE)); foo$pvalue <- 10^(score(foo)/-1); bar <- GRanges( seqnames=Rle(c("chr1", "chr2", "chr3","chr4"), c(4, 7, 5, 4)), ranges=IRanges(seq(2, by=11, len=20), seq(8, by=11, len=20)), rangeName=letters[seq(1:20)], score=sample(1:25, 20, replace = FALSE)) bar$pvalue <- 10^(score(bar)/-1); moo <- GRanges( seqnames=Rle(c("chr1", "chr2", "chr3","chr4"), c(8, 7, 6, 4)), ranges=IRanges(seq(4, by=11, len=25), seq(9, by=11, len=25)), rangeName=letters[seq(1:25)], score=sample(1:25, 25, replace = FALSE)) moo$pvalue <- 10^(score(moo)/-1);
How can I improve my solution? what's the better representation for output of multiple GRanges by parallel? I will be grateful if anyone give me possible ideas to get through this issue. Many thanks
Best regards:
JS
I got solution.