Description Usage Arguments Details Value See Also Examples
A function used to set system parameters for the SELEX package. These parameters are stored as global options, which are checked at runtime. They can be permanently set in a .Rprofile file, or changed temporarily by the user by invoking selex.config
. It is important to set java.parameters
before loading the SELEX library. See ‘Details’ for more information.
1 | selex.config(workingDir=NULL, verbose=NULL, maxThreadNumber=NULL)
|
workingDir |
Physical location on disk for the current working directory. The full system path must be specified. |
verbose |
Print more output to terminal. Useful for debugging. |
maxThreadNumber |
The maximum number of threads to be used while K-mer counting. If unspecified, 4 threads will be used. |
The working directory is used to store the output of all analyses performed by the selex package. If a certain calculation has already been performed in the given working directory, the previously computed values are returned. If the specified path does not exist, selex.config
will attempt to create it. By default, a temporary directory is used.
It is important to set the Java memory options before loading the SELEX library to allocate enough memory to the JVM. You can allocate memory by calling options
and setting java.parameters
. -Xmx
must prefix the memory value; the code below allocates 1500 MB of RAM:
options(java.parameters="-Xmx1500M")
If the memory option is unspecified, the default JVM memory setting will be used.
Not applicable
1 2 3 4 5 6 7 | ## Initialize SELEX
#options(java.parameters="-Xmx1500M")
#library(SELEX)
## Set working directory and verbose to true
workDir = file.path(".", "SELEX_workspace")
selex.config(workingDir=workDir,verbose=TRUE, maxThreadNumber=4)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.