module Machine: Biokepi_run_environment.Machine
The Biokepi_run_environment.Machine
provides an API to interact with the
computing environment, it is used by all the programs in Biokepi.Tools
(and hence by the Biokepi.EDSL
through the Biokepi.EDSL.Compile.To_workflow
compiler). It is used to:
Ketrew
build-processes
(YARN, LSF, etc.);Biokepi.Machine.t
instance to run the workflows.
The Biokepi.Setup
module provides an extensive set of defaults to
simplify this.module Tool:sig
..end
module Make_fun:sig
..end
Biokepi_run_environment.Machine
) for resources.
type
t = {
|
name : |
|
host : |
|
pyensembl_cache_dir : |
|
get_reference_genome : |
|
toolkit : |
|
run_program : |
|
work_dir : |
|
max_processors : |
val create : host:Common.KEDSL.Host.t ->
?pyensembl_cache_dir:string ->
get_reference_genome:(string -> Reference_genome.t) ->
toolkit:Tool.Kit.t ->
run_program:Make_fun.t ->
work_dir:string ->
max_processors:int -> string -> t
val name : t -> string
val as_host : ?with_shell:string ->
t -> Common.KEDSL.Host.t
val get_pyensembl_cache_dir : t -> string option
val get_reference_genome : t -> string -> Reference_genome.t
val get_tool : t ->
Tool.Definition.t ->
Tool.Kit.tool
val run_program : t ->
Make_fun.t
val max_processors : t -> int
Machine.t
(i.e. usually the “number-of-threads” paramters of most tools)val quick_run_program : t ->
Make_fun.t
val run_stream_processor : ?self_ids:string list ->
t ->
Make_fun.t
val run_download_program : t ->
Make_fun.t
val run_big_program : t ->
?processors:int ->
?self_ids:string list -> Make_fun.t
val work_dir : t -> string