getWeights: Get weights from a subject GenomicRanges object

Description Usage Arguments Value

View source: R/gr_helpers.R

Description

Get weights from a subject GenomicRanges object

Usage

1
getWeights(subject, weight = 1L)

Arguments

subject

a GRanges, IRanges or GAlignment 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


ORFik documentation built on March 27, 2021, 6 p.m.