File: reverseCigar.Rd

package info (click to toggle)
r-bioc-cner 1.26.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 18,216 kB
  • sloc: ansic: 23,458; makefile: 6
file content (39 lines) | stat: -rw-r--r-- 640 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
\name{reverseCigar}
\alias{reverseCigar}

\title{reverseCigar function}

\description{
  This function reverses the cigar string, i.e., 
  20M15I10D will be reversed to 10D15I20M.}

\usage{
  reverseCigar(cigar, ops=CIGAR_OPS)
}

\arguments{
  \item{cigar}{
    A character vector of cigar strings.
  }
  \item{ops}{
    A character vector of the extended CIGAR operations. 
    By default, CIGAR_OPS is used.
  }
}

\value{
  A character vector contains the reversed cigar strings.
}

\author{
  Ge Tan
}

\seealso{
  \code{\link[GenomicAlignments]{cigar-utils}}
}

\examples{
  cigar = c("20M15I10D", "10D15I20M")
  reverseCigar(cigar)
}