Use Benchmarker ############### This documentation provides instructions on how to execute and benchmark workflows generated on the Workflomics platform, using the `Workflomics Benchmarker `_ CLI. If you have not already generated workflows on the Workflomics platform, please refer to the `Workflomics documentation `_ for instructions on generating workflows. In addition, please ensure that you have followed the `installation instructions `_ to install the Workflomics Benchmarker CLI. Running Workflows ***************** To run the Workflomics workflows: 1. Make sure that Docker or Singularity is running on your system. 2. Download workflows that were generated on the `Workflomics website `_` (using the "Download selected" button, see `documentation `_), and unzip them. 3. If you are using the "Workflomics demo example" you can change the content of the *inputs.yml* file to use larger mzML and FASTA data to be able to perform scientific benchmarking more effectively. To use a larger benchmarking dataset (available on `Zenodo `_), update the *inputs.yml* file as follows: .. code-block:: yaml input_1: class: File format: http://edamontology.org/format_3244 path: https://zenodo.org/records/11086176/files/140131.LC2.IT2.XX.P01347_2-C,6_01_5970.mzML?download=1 input_2: class: File format: http://edamontology.org/format_1929 path: https://zenodo.org/records/11086176/files/UP000005640.fasta?download=1 1. Execute the benchmark command in the terminal to run the workflows relying on Docker containers: .. code-block:: bash workflomics benchmark Or to benchmark using Singularity containers, use the following command: .. code-block:: bash workflomics benchmark --singularity .. note:: Replace with the actual path to the directory containing your Workflomics workflows. The benchmarking process will start, and you will see the progress of the workflow executions in the terminal. Once the benchmarking is complete, the results will be saved in a the same directory as the workflows. Computed benchmarks are saved in a file named `benchmarks.json`. In addition, a folder per workflow is created (named `_outputs`), containing the outputs of the workflow executions. Command Line Interface (CLI) ============================ The Workflomics Benchmarker CLI provides a set of commands to benchmark and run workflows generated on the Workflomics platform. This section provides an overview of the available commands and their usage. Get a list of available CLI commands for Workflomics Benchmarker:: $ workflomics benchmark --help $ workflomics run --help Commands for benchmarking workflows:: $ workflomics benchmark # Benchmark workflows in the specified directory. Use '.' for the current directory. $ workflomics benchmark --verbose # Display verbose output during benchmarking. $ workflomics benchmark --singularity # Use Singularity containers for benchmarking instead of Docker. Commands for running workflows without benchmarking:: $ workflomics run # Run workflows in the specified directory without benchmarking. .. note:: Make sure to have Docker or Singularity installed and running on your system before running the Workflomics Benchmarker CLI. The following screenshot shows the command line interface for benchmarking workflows (make): .. figure:: ./screenshots/benchmark-cli-start.png :align: center :alt: Starting the benchmarking process Command line interface for benchmarking workflows, showing the start of the benchmarking process. .. figure:: ./screenshots/benchmark-cli-end.png :align: center :alt: Benchmarking results Command line interface for benchmarking workflows, showing the CLI output signalizing the completion of the benchmarking process. Visualizing Benchmark Results ***************************** After benchmarking, upload your results to the Workflomics platform for interactive visualization: 1. Navigate to the Workflomics Benchmark Upload Page: - `Workflomics Benchmarks Upload `_ 2. Upload your `benchmarks.json` file by following the on-screen instructions. 3. Access interactive visualizations to explore the benchmark results comprehensively. .. figure:: ../user-guide/screenshots/runtime-benchmarks.png :align: center :alt: Benchmark results visualization Web interface for visualizing benchmark results. .. note:: Please ensure that any data you upload is free of sensitive or proprietary information, as it will be accessible to other users for analysis and comparison purposes.