Description Usage Arguments Details Value Author(s)
Locates an external executable.
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 | # The generic internal function used
findExternal(mustExist=TRUE, command, path=NULL, version=NULL, versionPattern=NULL,
expectedStatus=c(0L, 1L), force=FALSE, verbose=FALSE, ...)
# Programming environments
findJava(...)
findPerl(...)
findPython(...)
# fastq-dump
findFastqDump(..., commandName="fastq-dump",
versionPattern=".*fastq-dump[ ]*:[ ]*([0-9.]+)", verbose=FALSE)
# FastQC
findFastQC(mustExist=TRUE, ..., verbose=FALSE)
# BWA
findBWA(...)
# Bowtie and TopHat
findBowtie2(..., command=c("bowtie2", "bowtie2-build", "bowtie2-inspect",
"bowtie2-align", "bowtie2-align-l", "bowtie2-align-s"))
findTopHat(..., command="tophat", path=NULL)
findTopHat1(..., command="tophat", version=c(1, 2))
findTopHat2(..., command="tophat2", version=c(2, 3))
# GATK
findGATK(mustExist=TRUE, ..., verbose=FALSE)
# Picard
findPicard(mustExist=TRUE, ..., verbose=FALSE)
# Samtools
findSamtools(...)
# CNVkit
findCNVkit(..., command="cnvkit.py")
# HTSeq
findHTSeq(..., command=c("htseq-count", "htseq-qa"))
|
mustExist |
If |
command |
A |
version |
If non- |
versionPattern |
(A named |
expectedStatus |
An |
force |
If |
verbose |
See |
... |
Additional arguments passed to |
The executable is searched using (in order):
Sys.which(command)
Returns the pathname (or the path) of the external executable.
If not found, NULL
is returned, unless if mustExist=TRUE
in case an error is thrown.
If versionPattern
is specified, then the inferred version
is returned as attribute 'version'.
Henrik Bengtsson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.