maprate: Parse hisat2 or bowtie2 log file

Description Usage Arguments Value Examples

View source: R/maprate.R

Description

Parse hisat2 log file and extract mapping rate of all samples.

Usage

1
maprate(fp, lab, pair, algnr)

Arguments

fp

file path of bowtie log

lab

character: file name as sample name.

pair

logical: paired end read or nod. The default value is TRUE.

algnr

character: select an alignr from 'hisat2' or 'bowtie2'. The default value is "bowtie2".

Value

data frame of mapping rate and ggplot object

Examples

1
2
3
4
h2.paired.log <- system.file("extdata", "hisat2_log.txt", package = "rskoseq")
label <- c("A","B","C","D")
res1 <- maprate(fp = h2.paired.log, lab = label)
res2 <- maprate(fp = h2.paired.log, pair = T, lab = label, algnr = "hisat2")

shkonishi/rskoseq documentation built on April 18, 2021, 3:50 p.m.