Code Monkey home page Code Monkey logo

vre_cwl_executor's Introduction

VRE CWL Tool Executor

Requirements

sudo apt update
sudo apt install python3
sudo apt install git

In order to install the Python dependencies you need pip and venv modules.

sudo apt install python3-pip python3-venv

Installation

Directly from GitHub:

cd $HOME
git clone https://github.com/inab/vre_cwl_executor.git
cd vre_cwl_executor

Create the Python environment:

python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip wheel
pip install -r requirements.txt

Run the Wrapper

./VRE_RUNNER --config tests/basic/config.json --in_metadata tests/basic/in_metadata.json --out_metadata out_metadata.json --log_file VRE_RUNNER.log

License

  • © 2020-2022 Barcelona Supercomputing Center (BSC), ES

Licensed under the Apache License Version 2.0, see the file LICENSE for details.

vre_cwl_executor's People

Contributors

jmfernandez avatar lrodrin avatar mr-c avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vre_cwl_executor's Issues

Is docker a real dependency?

According to the README docker is a dependency of the wrapper. Moreover, VRE_RUNNER checks whether it is installed. However, disabling this check and running the executor works fine so I suspect docker is not really a dependency.

  • Is it only required to run the basic test in /tests/basic? If so, I suggest we stop considering it a dependency.

Management of singularity containers

When cwltool is run with the singularity option, and the container is a docker container, a .sif file is created, which must be saved in a temporary folder. Therefore, this folder must be created and validated if the container already exists in it.

When an input is a list of files, the creation of RO-Crate fails

Is a new use case that to add, a data entity must be created to the RO-Crate for each item in input_files that it is a list:

# Add inputs provenance data to RO-crate
for in_id, in_value in input_files.items():
in_localPath = os.path.join(self.parent_dir, in_value) # TODO change hasPart for input
if os.path.isfile(in_localPath):
properties = {
'name': in_id,
'url': in_localPath
}
wf_crate.add_file(source=in_localPath, properties=properties)
elif os.path.isdir(in_localPath):
logger.error("FIXME: input directory / dataset handling in RO-Crate")
else:
pass # TODO raise Exception

Availability of cwltool

The VRE_RUNNER bash script does two things that seem contradictory:

  1. Checks if cwltool is available: type -a "$prog" >/dev/null in line 17
  2. Activates virtual environment: source "$BASEDIR"/venv/bin/activate in line 26

These two steps are contradictory because for cwltool to be available it has to be installed globally or the virtual environment has to be activated first. I don't think we want cwltool to be installed globally so I would suggest that we revamp the script so that it first activates de environment and it then checks whether cwltool is installed.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.