readCoverage: Calculates coverage of long-reads RNA

Description Usage Arguments Value Examples

View source: R/readCoverage.R

Description

A function that calculates the coverage of long-read RNA

Usage

1
readCoverage(coor, alns)

Arguments

coor

A data frame containing exon coordinates of target gene.

alns

A GAlignment object of long-read RNA alignments generated by Minimap2.

Value

A data frame that stores the coverage of the reads

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
alignments <- system.file("extdata", "mlx_reads.sorted.bam",
package = "LSplicing")
referenceCoord <- system.file("extdata", "example_refCoord.gff3",
package = "LSplicing")

## Not run: 
results <- countReads(alignments, referenceCoord)
coor <- results[[1]]
coor <- coor[coor$gene_id == "ENSG00000108788.11", ]
readCoverage(coor = coor,
             alns = alignments)

## End(Not run)

leetina4/LSplicing documentation built on Dec. 8, 2019, 1:34 p.m.