View source: R/create_processing_env.R
create.processing.env | R Documentation |
This function creates a new environment called run.env
to store all user-set variables with the option to save as an RDA file for easy reading-in to a future session.
run.env
base.dir |
character; path to working directory. It is helpful to make this explicit (rather than using '.') for generating SGE_Array commands. |
raw.seq.dirs |
character; path to raw FASTQs directory or a named vector of paths to raw FASTQs directories. If a vector, |
interactive |
logical; TRUE = run command interactively, no swarm computing possible, FALSE = generate SGE_Batch or SGE_Array commands to submit manually. Default is FALSE |
job.queue |
character; the queue to that jobs will be sent to, for generating SGE commands. Default is NULL. |
jobs.dir |
character; path to write command files to for submission to the scheduler from the appropriate machine, e.g., "/home/micro/stagamak/Jobs". Default is ".". |
max.cores |
integer; maximum cores to take advantage of (when utilizing swarm processing this number will be divided by max.concurrent jobs to determine the per-job number of cores). Default is 1. |
max.concurrent.jobs |
integer; maximum concurrent jobs to run. If |
link.dir |
character; path to directory wherein you want to make symlinks to raw FASTQs. If set to NULL, will use the |
store.dir |
character; path to directory where all output will be stored. If set to NULL, will use the |
temp.dir |
character; path to a directory where output will first be written before moving to the permanent output directory, if NULL, output is written directly to |
max.memory |
character; maximum memory to set for jobs submitted to SGE_Batch or SGE_Array. Must take the form of e.g. "10G" or "50G" Setting to NULL means this parameter is not specified in the command. Default is NULL. |
qsub.options |
character; further qsub arguments you want included in the SGE_Batch or SGE_Array commands, e.g., get email at end of job with "'-m ae -M yourname@example.com'". This argument must be in double and single quotes like example to be parsed correctly. Setting to NULL means this parameter i snot specified in the command. Default is NULL. |
save.env.dir |
character; if not NULL, will create and save this environment in the provided directory (if directory does not already exist, it will be created in |
samples |
character; a vector of sample names. Can be left NULL and |
bin.path |
character; the path to the Rscript and other tool executables you want to use when generating commands. If NULL, will just include e.g. 'Rscript -e ...' or 'humann ...' in the commands, no specific path, which will call the Rscript first in your PATH. If not, NULL, will append that path to the tool command, e.g. 'PATH/TO/Rscript -e ...' or 'PATH/TO/humann ...' |
... |
additional variables you want to set here |
An object of class environment
of length 0.
assign
, new.env
, call_match
, symlink.raw.fastqs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.