-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathrun_example.sh
executable file
·33 lines (27 loc) · 1.03 KB
/
run_example.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#----------------------------------------------------------------------#
# This file is a part of ShapeMapper, and is licensed under the terms #
# of the MIT license. Copyright 2018 Steven Busan. #
#----------------------------------------------------------------------#
# Run simple ShapeMapper pipeline on a small subset of example data
set -e # exit on first error (if any)
# Find the parent folder of this script,
# resolving (possibly nested) symlinks
SOURCE="${BASH_SOURCE[0]}"
while [ -h "$SOURCE" ]; do
BASE_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
SOURCE="$(readlink "$SOURCE")"
[[ $SOURCE != /* ]] && SOURCE="$BASE_DIR/$SOURCE"
done
BASE_DIR="$( cd -P "$( dirname "$SOURCE" )" && pwd )"
export PATH=${BASE_DIR}:${PATH}
cd ${BASE_DIR}
shapemapper \
--name "example-results" \
--target example_data/TPP.fa \
--amplicon \
--overwrite \
--min-depth 1000 \
--modified --folder example_data/TPPplus \
--untreated --folder example_data/TPPminus \
--denatured --folder example_data/TPPdenat