DatomaJob

class datoma.DatomaJob(tool=None, task=None, import_json=None)[source]

A class used to represent a job executed on Datoma’s infrastructure

__init__(tool=None, task=None, import_json=None)[source]

Initializes a DatomaJob object.

Parameters:
  • tool (str, optional) – Name of the tool.

  • task (str, optional) – Name of the task.

  • import_json (str, optional) – Path to a JSON file with the job information, defaults to None. If None, the job will be created from scratch.

Methods

__init__([tool, task, import_json])

Initializes a DatomaJob object.

set_params(params_dictionary)

Sets the parameters of the job.

set_input(input_dictionary[, preserve_name])

Sets the input of the job.

download([output_path])

Downloads the output files of the job.

list_outputs([regex, job_list])

Lists the output files of the job filtered (if specified) by a regex.

submit([job_name, get_credits, resources])

Submits the job to Datoma's infrastructure.

export_json([path])

Exports the job information to a JSON file.

query_input_keys()

Queries the input and parameter keys for the tool : task.

To see usage examples of the DatomaJob module, refer to Submitting a job.