Installation and Usage

How to install and run the workflow

Step 1: Create a virtual environment.

Step 1: For cwltool/toil, please install using python 3.6 as done below:

Here we can use either virtualenv or conda. Here we will use virtualenv.

pip3 install virtualenv
python3 -m venv my_project
source my_project/bin/activate

Once you execute the above command you will see your bash prompt something on these lines:

(my_project)[server]$

Step 2: Clone the repository

git clone --recursive https://github.com/msk-access/uncollapsed_bam_generation.git
cd standard_bam_processing
git submodule update --recursive --remote

Step 3: Install requirements using pip

We have already specified the version of cwltool and other packages in the requirements.txt file. Please use this to install.

#python2
pip install -r requirements.txt
#python3
pip3 install -r requirements.txt

To see help for the inputs for cwl workflow you can use: cwltool uncollapsed_bam_generation.cwl --help

To see help for the inputs for cwl workflow you can use: toil-cwl-runner uncollapsed_bam_generation.cwl --help

Once we have successfully installed the requirements we can now run the workflow using cwltool/toil if you have proper input file generated either in json or yaml format. Please look at Inputs Description for more details.

Here we show how to use cwltool to run the workflow on single machine

Step 4: Run the workflow with a given set of input using cwltool on single machine

cwltool uncollapsed_bam_generation.cwl inputs.yaml

Last updated

Was this helpful?