File: lavToPsl.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 (58 lines) | stat: -rw-r--r-- 1,395 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
\name{lavToPsl}
\alias{lavToPsl}

\title{
  lavToPsl
}
\description{
  Wrapper function of \command{lavToPsl}: Convert blastz lav to psl format.
  This function doesn't work on Windows platform since Kent utilities only
  support Linux and Unix platforms.
}
\usage{
  lavToPsl(lavs, psls=sub("\\\.lav$", ".psl", lavs, ignore.case = TRUE),
           removeLav=TRUE, binary="lavToPsl")
}

\arguments{
  \item{lavs}{
    \code{character}(n): file names of input \emph{lav} files.
  }
  \item{psls}{
    code{character}(n): file names of output \emph{psl} files. 
    By default, in the same folder of input lav files with same names.
  }
  \item{removeLav}{
    \code{boolean}: When \code{TRUE}, the input \emph{lavs} files will be 
    removed after the conversion.
  }
  \item{binary}{
    \code{character}(1): the name/filename of the binary \command{lavToPsl}
    to call.
  }
}

\value{
  \code{character}(n): the file names of output \emph{psl} files.
}
\references{
  \url{http://hgdownload.cse.ucsc.edu/admin/exe/}
}
\author{
  Ge Tan
}

\seealso{
  \code{\link{lastz}}
}

\examples{
  \dontrun{
  ## This example doesn't run because it requires lav files from previous steps 
  ## and external Kent utilities.
    lavs <- tools::list_files_with_exts(
              dir="/Users/gtan/OneDrive/Project/CSC/CNEr/axt", exts="lav")
    lavToPsl(lavs, removeLav=FALSE, binary="lavToPsl")
  }
}