batch {sevenbridges} | R Documentation |
batch function for task batch execution
batch(input = NULL, criteria = NULL, type = c("ITEM", "CRITERIA"))
input |
character, ID of the input on which you wish to batch on. You would usually batch on the input containing a list of files. If left out, default batching criteria defined in the app is used. |
criteria |
a character vector, for example.
|
type |
Criteria on which to batch on - can be in two formats."ITEM" and "CRITERIA". If you wish to batch per item in the input (usually a file) using "ITEM". If you wish a more complex criteria, specify the "CRITERIA" on which you wish to group inputs on. Please check examples. |
a list of 'batch_input' and 'batch_by' used for task batch
batch(input = "fastq") # by ITEM batch(input = "fastq", c("metadata.sample_id", "metadata.library_id")) # shorthand for this batch(input = "fastq", c("metadata.sample_id", "metadata.library_id"), type = "CRITERIA")