runRNAsubopt | R Documentation |
This function can run and capture the result of RNAsubopt (ViennaRNA Package) in R by invoking the OS command. The results can be formatted and used as the features of tool "catRAPID", "lncPro", etc. ViennaRNA Package is required (http://www.tbi.univie.ac.at/RNA/index.html).
runRNAsubopt(
seqs,
structureRNA.num = 6,
args.RNAsubopt = NULL,
path.RNAsubopt = "RNAsubopt",
returnSum = FALSE,
verbose = FALSE,
parallel.cores = 2,
cl = NULL
)
seqs |
RNA sequences loaded by function |
structureRNA.num |
integer. Number of random samples of suboptimal structures. Default: |
args.RNAsubopt |
string (in format such as "-N –pfScale 1.07") specifying additional arguments (except "-p" which is already determined by structureRNA.num) for RNAsubopt. This is used when you want to control the behaviour of RNAsubopt. Arguments for RNAsubopt please refer to its manual. Default: |
path.RNAsubopt |
string specifying the location of RNAsubopt program. |
returnSum |
logical. If |
verbose |
logical. Should the relevant information be printed during the calculation? (Only available on UNIX/Linux.) |
parallel.cores |
an integer that indicates the number of cores for parallel computation. Default: |
cl |
parallel cores to be passed to this function. |
This function depends on the program "RNAsubopt" of software "ViennaRNA". (http://www.tbi.univie.ac.at/RNA/index.html)
Parameter path.RNAsubopt
can be simply defined as "RNAsubopt"
as
default when the OS is UNIX/Linux. However, for some OS, such as Windows, users
need to specify the path.RNAsubopt
if the path of "RNAsubopt" haven't been
added in environment variables (e.g. path.RNAsubopt = '"C:/Program Files/ViennaRNA/RNAsubopt.exe"'
).
This function can print the related information when running on Linux OS, such as:
"25 of 100, length: 695 nt"
,
which means around 100 sequences are assigned to this node, and the program is now computing the 25th sequence. The length of this sequence is 695 nt.
This function returns a data frame that contains the raw outputs when returnSum = FALSE
.
Or a list of numeric results of RNAsubopt when returnSum = TRUE
.
Lorenz R, Bernhart SH, Honer zu Siederdissen C, et al. ViennaRNA Package 2.0. Algorithms Mol. Biol. 2011; 6:26
runPredator
data(demoPositiveSeq)
seqsRNA <- demoPositiveSeq$RNA.positive
path.RNAsubopt <- "RNAsubopt" # you need to use your own paths, for example:
# path.RNAsubopt <- '"C:/Program Files (x86)/ViennaRNA Package/RNAsubopt.exe"' # in Windows OS
RNAsubopt_1 <- runRNAsubopt(seqs = seqsRNA, path.RNAsubopt = path.RNAsubopt,
returnSum = FALSE, verbose = TRUE,
parallel.cores = 2)
RNAsubopt_2 <- runRNAsubopt(seqs = seqsRNA, args.RNAsubopt = "--pfScale 1.07",
structureRNA.num = 6,
path.RNAsubopt = path.RNAsubopt,
returnSum = TRUE, parallel.cores = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.