getWeights | R Documentation |
Get weights from a subject GenomicRanges object
getWeights(subject, weight = 1L)
subject |
a GRanges, IRanges, GAlignment, GAlignmentPairs or covRle object |
weight |
a numeric/integer vector or metacolumn name. (default: 1L, no differential weighting). If weight is name of defined meta column in reads object, it gives the number of times a read was found at that position. GRanges("chr1", 1, "+", score = 5), would mean "score" column tells that this alignment region was found 5 times. if 1L it means each read is weighted equal as 1, this is what among others countOverlaps() presumes, if single number (!= 1), it repeats for all ranges, if vector with length > 1, it must be equal size of the reads object. |
a numeric vector of weights of equal size to subject
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.