Description Usage Arguments Value Note Author(s) References See Also Examples
Wrapper function of lastal
to do the pairwise whole genome alignment.
This function doesn't work on Windows platform.
1 2 3 4 5 6 |
db |
|
queryFn |
|
outputFn |
|
distance |
It can be "far", "medium" or "near". It decides the score matrix used in lastz aligner. See '?scoringMatrix' for more details. |
binary |
|
mc.cores |
|
echoCommand |
|
A character
(1) vector of ouput maf file names.
lastal
aligner must be installed on the machine to use this function.
Ge Tan
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
assemblyDir <- "/Users/gtan/OneDrive/Project/CSC/CNEr/2bit"
## Build the lastdb index
system2(command="lastdb", args=c("-c", file.path(assemblyDir, "danRer10"),
file.path(assemblyDir, "danRer10.fa")))
## Run lastal aligner
lastal(db=file.path(assemblyDir, "danRer10"),
queryFn=file.path(assemblyDir, "hg38.fa"),
outputFn=file.path(axtDir, "danRer10.hg38.maf"),
distance="far", binary="lastal", mc.cores=4L)
## maf to psl
psls <- file.path(axtDir, "danRer10.hg38.psl")
system2(command="maf-convert",
args=c("psl", file.path(axtDir, "danRer10.hg38.maf"),
">", psls))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.