computeRegionOverlap: Compute the fraction of an intron contained in a long read

Description Usage Arguments Value

View source: R/LR_callIR.R

Description

This function computes the proportion of an input genomic interval (eg: an intron or an exon) that is contained in a read.

NB: it takes into account possible gaps and splicing in read alignments.

Usage

1
computeRegionOverlap(align.gr, intron.gr)

Arguments

align.gr

A GRanges object describing a read alignment (eg: extracted from a bam file)

intron.gr

A GRanges object describing a genomic interval to compare to align.gr

Value

The fraction of intron.gr contained in the sequence align.gr


lbroseus/SIRFindeR documentation built on Nov. 30, 2020, 11:06 a.m.