#!/bin/bash

## VIASH START
## VIASH END

# Exit on error
set -eo pipefail

# Unset parameters
[[ "$par_tags" == "false" ]] && unset par_tags

# Execute bedtools bamtofastq with the provided arguments
bedtools bamtofastq \
    ${par_tags:+-tags} \
    ${par_fastq2:+-fq2 "$par_fastq2"} \
    -i "$par_input" \
    -fq "$par_fastq"
    

