R/zz-examples.R

Defines functions .run_sleep

# nocov start



## depreciated

.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, flow_mat$samplename == "sample1")
	flowdef = read_sheet(file.path(exdata, "example1_flow_def.txt"), id_column = "jobname")
	flowdef = to_flowdef(flowdef) ## check for consistency
	fobj <- to_flow(x = flow_mat, def = flowdef,
									flowname = "ex_sleep", platform = platform, submit = FALSE, ...)
	invisible(fobj)
}

# nocov end

Try the flowr package in your browser

Any scripts or data that you put into this service are public.

flowr documentation built on March 3, 2021, 1:12 a.m.