A Workflow is composed of multiple Tools.
Public fields
name
(
character(1)
)
Name of workflow.path
(
character(n)
)
Path(s) to workflow results.tools
(
list(n)
)
List of Tools that compose a Workflow.files_tbl
(
tibble(n)
)
Tibble of files fromlist_files_dir
.
Methods
Method new()
Create a new Workflow object.
Usage
Workflow$new(name = NULL, path = NULL, tools = NULL)
Method list_files()
List files in given workflow directory.
Usage
Workflow$list_files(type = c("file", "symlink"))
Arguments
type
(
character(1)
)
File types(s) to return (e.g. any, file, directory, symlink). Seefs::dir_info
.
Method tidy()
Tidy Workflow files.
Method write()
Write tidy tibbles.
Arguments
odir
(
character(1)
)
Directory path to output tidy files.format
(
character(1)
)
Format of output files.id
(
character(1)
)
ID to use for the dataset (e.g.wfrid.123
,prid.456
).dbconn
(
DBIConnection
)
Database connection object (seeDBI::dbConnect
).
Method nemofy()
Parse, filter, tidy and write files.
Usage
Workflow$nemofy(
odir = ".",
format = "tsv",
id = NULL,
dbconn = NULL,
include = NULL,
exclude = NULL
)
Arguments
odir
(
character(1)
)
Directory path to output tidy files.format
(
character(1)
)
Format of output files.id
(
character(1)
)
ID to use for the dataset (e.g.wfrid.123
,prid.456
).dbconn
(
DBIConnection
)
Database connection object (seeDBI::dbConnect
).include
(
character(n)
)
Files to include.exclude
(
character(n)
)
Files to exclude.
Examples
if (FALSE) { # \dontrun{
path <- here::here("nogit/oa_v2")
tools <- list(align = Alignments, sigs = Sigs)
wf1 <- Workflow$new(name = "foo", path = path, tools = tools)
wf1$list_files()
wf1$nemofy(
odir = "nogit/test_data",
format = "parquet",
id = "run1"
)
dbconn <- DBI::dbConnect(
drv = RPostgres::Postgres(),
dbname = "nemo",
user = "orcabus"
)
wf1$nemofy(
format = "db",
id = "runABC",
dbconn = dbconn
)
} # }