launch_pipeline_ehdn_outlier.sh 829 Bytes
Newer Older
1 2 3 4
#! /bin/sh

### ASDP PIPELINE ###
## Version: 0.0.1
5
## Licence: AGPLv3
6
## Author : Anne-Sophie Denommé-Pichon
7 8
## Description : script to launch the pipeline for STR detection with EHDN outlier

9 10 11 12 13 14 15 16 17 18 19
# $1 : first argument in the command line : a list containing one sample per line, for example samples.list
SAMPLES="$1"

# Check if samples list file is specified
if [ -z "$SAMPLES" ]
then
    echo "List of samples is not specified"
    echo "$(date +"%F_%H-%M-%S"): END"
    exit 1
fi

20 21
# Source configuration file
. "$(dirname "$0")/config.sh"
22

23 24 25 26 27 28
# Parallel allow to parallelize the processing of multiple samples ({}: one line in samples.list ; $SAMPLES: the file name: samples.list)
"$PARALLEL" \
    --jobs "$PARALLEL_JOB_COUNT" \
    --line-buffer \
    "$(dirname "$0")/pipeline_ehdn_outlier.sh" {} "$SAMPLES" \
    < "$SAMPLES"