-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtests.sh
executable file
·37 lines (26 loc) · 1021 Bytes
/
tests.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
34
35
#!/bin/bash
# set to stop in case of error
set -e
# first argument is cpu number
NCPU_TO_USE=$1
# test if NCPU_TO_USE is set:
if [ -z "${NCPU_TO_USE}" ]; then
echo "NCPU_TO_USE is not set, using 10"
NCPU_TO_USE=10
fi
eval "$(conda shell.bash hook)"
conda activate dante_ltr
echo "Running tests 1, detection of LTRs"
./dante_ltr -s test_data/sample_genome.fasta \
-g test_data/sample_DANTE.gff3 -o tmp/test_output1 -c $NCPU_TO_USE
cat tmp/test_output1_statistics.csv
echo "Running tests 2, create library"
./dante_ltr_to_library -s test_data/sample_genome.fasta \
-g tmp/test_output1.gff3 -o tmp/test_output2 -c $NCPU_TO_USE
echo "Running tests 3, detection of LTRs, allow missing domains"
./dante_ltr -s test_data/sample_genome.fasta \
-g test_data/sample_DANTE.gff3 -o tmp/test_output3 -c $NCPU_TO_USE -M 2
cat tmp/test_output3_statistics.csv
echo "Running tests 4, create library"
./dante_ltr_to_library -s test_data/sample_genome.fasta \
-g tmp/test_output3.gff3 -o tmp/test_output4 -c $NCPU_TO_USE