struckma / vre_segmentation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

VRE Sample Tool

A simple example tool that is ready to run a workflow

Requirements

  • Install the dependencies used by the Wrapper.
sudo apt update
sudo apt install git
sudo apt install docker-ce

Remember to add your username to the docker group.

sudo usermod -a -G docker $USER

Installation

Directly from GitHub:

cd $HOME

git clone https://github.com/lrodrin/vre_sample_tool.git

cd vre_sample_tool

Create the Python environment

python3 -m venv $HOME/vre_sample_tool/venv
source venv/bin/activate
pip install -r requirements.txt

Configuration

Add your ${USER} in tests/basic/config.json:

"arguments": [
  {
      "name": "execution",
      "value": "/home/${USER}/vre_sample_tool/tests/basic/run000"
  }
],
"output_files": [
  {
      "name": "bam_file",
      "required": true,
      "allow_multiple": false,
      "file": {
          "file_path": "/home/${USER}/vre_sample_tool/tests/basic/run000/A.bam"
      }
   }
]

and tests/basic/in_metadata.json:

{
    "_id": "unique_file_id_5e14abe0a37012.29503907",
    "file_path": "/home/${USER}/vre_sample_tool/tests/basic/NA12878.bam"
},
{
    "_id": "unique_file_id_5e14abe0a37012.29503908",
    "file_path": "/home/${USER}/vre_sample_tool/tests/basic/hg38.fa"
{

and /test/basic/input_basic_example.yml:

  input_reads: 
    class: File
    location: /home/{USER}/vre_sample_tool/tests/basic/NA12878.bam
  biospecimen_name: "hg38"
  output_basename: "mytest"
  indexed_reference_fasta:
    class: File 
    location: /home/{USER}/vre_sample_tool/tests/basic/hg38.fa

Run the example

./tests/basic/test_VRE_CWL_RUNNER.sh

About

License:MIT License


Languages

Language:Python 73.3%Language:Shell 18.5%Language:Common Workflow Language 8.2%