Skip to content

Commit 4cfb4f6

Browse files
committed
Adds a field test and data
1 parent 6902ece commit 4cfb4f6

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

tests/alstructure_field_tests.sh

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/bin/bash
2+
3+
# Copyright 2019 Francisco Pina Martins <[email protected]>
4+
# This file is part of structure_threader.
5+
# structure_threader is free software: you can redistribute it and/or modify
6+
# it under the terms of the GNU General Public License as published by
7+
# the Free Software Foundation, either version 3 of the License, or
8+
# (at your option) any later version.
9+
10+
# structure_threader is distributed in the hope that it will be useful,
11+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
12+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13+
# GNU General Public License for more details.
14+
15+
# You should have received a copy of the GNU General Public License
16+
# along with structure_threader. If not, see <http://www.gnu.org/licenses/>.
17+
18+
set -e
19+
20+
LightGreen='\033[1;32m'
21+
NoColor='\033[0m'
22+
23+
echo "Runnig ALStructure 'field test'. This will simulate a full wrapped run on small test data."
24+
25+
git_dir=$(pwd)
26+
str_bin=$(which alstructure_wrapper.R)
27+
structure_threader_exec=$(which structure_threader)
28+
29+
tar xvfJ ${git_dir}/tests/smalldata/BigTestData.bed.tar.xz -C ${git_dir}/tests/smalldata/
30+
${structure_threader_exec} run -i ${git_dir}/tests/smalldata/BigTestData.bed -o ~/results_als -als ${str_bin} -K 4 -t 4 --ind ${git_dir}/tests/smalldata/indfile.txt
31+
32+
echo -e "${LightGreen}ALStructure 'Field test' ran successfully. Yay!${NoColor}"
57.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)