Description Usage Arguments Value Author(s) See Also Examples
Add metadata to to overlapping peaks after calling findOverlapsOfPeaks.
1 | addMetadata(ol, colNames = NULL, FUN = c, ...)
|
ol |
An object of overlappingPeaks, which is output of findOverlapsOfPeaks. |
colNames |
Names of metadata column to be added. If it is NULL, addMetadata will guess what to add. |
FUN |
A function to be called |
... |
Arguments to the function call. |
return value is An object of overlappingPeaks.
Jianhong Ou
See Also as findOverlapsOfPeaks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | peaks1 <- GRanges(seqnames=c(6,6,6,6,5),
IRanges(start=c(1543200,1557200,1563000,1569800,167889600),
end=c(1555199,1560599,1565199,1573799,167893599),
names=c("p1","p2","p3","p4","p5")),
strand="+",
score=1:5, id=letters[1:5])
peaks2 <- GRanges(seqnames=c(6,6,6,6,5),
IRanges(start=c(1549800,1554400,1565000,1569400,167888600),
end=c(1550599,1560799,1565399,1571199,167888999),
names=c("f1","f2","f3","f4","f5")),
strand="+",
score=6:10, id=LETTERS[1:5])
ol <- findOverlapsOfPeaks(peaks1, peaks2)
addMetadata(ol)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.