plotReads: plotReads.R

Description Usage Arguments Value Examples

View source: R/plotReads.R

Description

A function that plots results exon combination of target gene (plots results of countReads function).

Usage

1
plotReads(coor, reads, gene, alnsFile)

Arguments

coor

A data frame that contains exon coordinates of different genes.

reads

A data frame containing rows of reads. If a value = 1, then that row of read is mapped to that column of exon. If a value = 0, then that row of read is not mapped to that column of exon.

gene

A string of characters representing Ensembl gene ID of the gene of interest.

alnsFile

The file that store the long-read RNA alignments generated by Minimap2.

Value

A ggplot graph that represent the long-read RNAs exon combinations

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
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]]
r <- results[[2]]
plotReads(coor = coor,
          reads = r,
          gene = "ENSG00000108788.11",
          alns = alignments)

## End(Not run)

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