Skip to content

Template repository for creating containers and cwl run files

License

Notifications You must be signed in to change notification settings

bwbioinfo/docker-cwl-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build and Push Docker Image

-docker-cwl

This repository provides a Common Workflow Language (CWL) tool for running the program. The tool is packaged in a Docker container, allowing it to run on any system with Docker or Singularity installed.

Prerequisites

To use this tool, you must have the following software installed on your system:

Installation

To install and run the tool, follow these steps:

  1. Clone this repository to your local machine.

  2. Install Docker, if you haven't already done so.

  3. (optional) Build the Docker image by running the following command from the root of the repository:

    docker build -f docker/Dockerfile -t <tool>-docker-cwl .
    

    OR pull from the built container.

    docker pull ghcr.io/bwbioinfo/<tool>-docker-cwl:latest
    

    Note: this is only needed if you wish to access the container commands directly via docker.

  4. Run the CWL tool by running the following command from the root of the repository:

    cwl-runner <tool>-tool.cwl <tool>-inputs.yml
    

    OR

    cwl-runner --singularity <tool>-tool.cwl <tool>-inputs.yml
    

    This will run the software on the input sequence specified in the <tool>-inputs.yml file.

Usage

To use the tool, you will need to create a YAML file specifying the input sequence and any other parameters you wish to specify. An example YAML file is provided in the example directory of this repository.

The <tool>-tool.cwl file is the main workflow file that describes the steps of the analysis. The <tool>-inputs.yml file is an example input file that specifies the input and any other options you wish to specify. The <tool>-tool.cwl file includes the docker specification. You can also use Singularity via the cwl-runner option --singularity

The output of the analysis will be written to a directory named output in the current working directory.

Contributing

If you wish to contribute to this project, please follow the standard GitHub workflow:

  1. Fork the repository
  2. Create a new branch for your changes
  3. Make your changes and commit them
  4. Push your changes to your fork
  5. Submit a pull request to this repository

License

This project is licensed under the MIT License.

Contact

If you have any questions or feedback, please contact the author via GitHub.

About

Template repository for creating containers and cwl run files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published