Description Usage Arguments Value Author(s) Examples
This calculates the score for a PSL alignment, based on C code from Jim Kent, see comment in pslScore.R. This has been optimised, breaking the problem into smaller chunks.
1 | pslScore(psl, isMrna = !pslIsProtein(psl[1, ]))
|
psl |
a PSL object |
isMrna |
logical: protein scores are 3x size of mrna/nucleotide scores. |
vector psl alignment score
Mark Cowley, 12 April 2006
1 2 3 4 5 6 7 8 9 | f <- file.path(system.file(package="blat"), "examples", "test.psl")
psl <- import.psl(f, score=FALSE)
psl$score <- pslScore(psl, FALSE)
head(psl)
# or the simpler appraoch
f <- file.path(system.file(package="blat"), "examples", "test.psl")
psl <- import.psl(f, score=TRUE)
head(psl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.