# NOT RUN {
# see ?to_flow for more examples
# read in a tsv; check and confirm format
ex = file.path(system.file(package = "flowr"), "pipelines")
# read in a flowdef from file
flowdef = as.flowdef(file.path(ex, "sleep_pipe.def"))
# check if this a flowdef
is.flowdef(flowdef)
# use a flowmat, to create a sample flowdef
flowmat = as.flowmat(file.path(ex, "sleep_pipe.tsv"))
to_flowdef(flowmat)
# change the platform
to_flowdef(flowmat, platform = "lsf")
# change the queue name
def = to_flowdef(flowmat,
platform = "lsf",
queue = "long")
plot_flow(def)
# guess submission and dependency types
def2 = to_flowdef(flowmat,
platform = "lsf",
queue = "long",
guess = TRUE)
plot_flow(def2)
# }
Run the code above in your browser using DataLab