Skip to content

Commit

Permalink
bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sahilseth committed Jun 19, 2015
1 parent 3cb3928 commit 858071c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/examples.R
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@


.run_sleep <- function(platform){
.run_sleep <- function(platform, ...){
message("\n\nLets work on a simple example")
exdata = file.path(system.file(package = "flowr"), "extdata")
flow_mat = read_sheet(file.path(exdata, "example1_flow_mat.txt"), id_column = "samplename")
## this has a bunch of samples, so let us subset one of them
flow_mat = subset(flow_mat, samplename == "sample1")
flow_def = read_sheet(file.path(exdata, "example1_flow_def.txt"), id_column = "jobname")
fobj <- to_flow(x = flow_mat, def = flow_def, desc = "example_sleep",
flowname = "example1", platform = platform)
flowname = "example1", platform = platform, ...)
return(fobj)
}


#' @export
run <- function(x="sleep", type = "example", platform = "lsf", execute = FALSE){
run <- function(x="sleep", type = "example", platform = "lsf", execute = FALSE, ...){
library(flowr)
message("")
message("\n\nPerforming initial setup....")
setup()
if(is.character(x))
if(x == "sleep")
fobj <- .run_sleep(platform = platform)
fobj <- .run_sleep(platform = platform, ...)
tmp <- submit_flow(fobj, execute = execute)
return("Done !")
}
Expand Down

0 comments on commit 858071c

Please sign in to comment.