getWeights: Get weights from a subject GenomicRanges object

View source: R/gr_helpers.R

getWeightsR Documentation

Get weights from a subject GenomicRanges object

Description

Get weights from a subject GenomicRanges object

Usage

getWeights(subject, weight = 1L)

Arguments

subject

a GRanges, IRanges, GAlignment, GAlignmentPairs or covRle object

weight

a vector (default: 1L, if 1L it is identical to countOverlaps()), if single number (!= 1), it applies for all, if more than one must be equal size of 'reads'. else it must be the string name of a defined meta column in subject "reads", that gives number of times a read was found. GRanges("chr1", 1, "+", score = 5), would mean "score" column tells that this alignment region was found 5 times.

Value

a numeric vector of weights of equal size to subject


JokingHero/ORFik documentation built on Oct. 21, 2024, 11:42 a.m.