genevalidatorapp 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +14 -4
- data/lib/genevalidatorapp/exceptions.rb +16 -6
- data/lib/genevalidatorapp/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 750d842e8248a3e7998399088e76e7feedbbe670b034fb628f187c8b6a4ae540
|
4
|
+
data.tar.gz: de9835d6c0bfb2da7ffb9125d65c4bf829cb64d09e6be26af76109ec781a59c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 457a297ebd41a808d81e9c3122bc2aa407a42ba211a95c1a710aaa32b0e6652dc4ea234ef67aaf09353d31a5b8666b791f1d2400239478bbb104bb48edd455ba
|
7
|
+
data.tar.gz: 1675b6ba5484c879189be7d49f1491b1177216f70cdc4204de1db24b35c335f254fd28af1191a342f6312946734a86de25f4fda16392b44a5ea88b9112d175d3
|
data/.travis.yml
CHANGED
@@ -5,7 +5,17 @@ rvm:
|
|
5
5
|
- "2.4.4"
|
6
6
|
- "2.5.1"
|
7
7
|
before_install:
|
8
|
-
|
9
|
-
-
|
10
|
-
|
11
|
-
|
8
|
+
# Install MAFFT
|
9
|
+
- mkdir dependencies
|
10
|
+
- mkdir dependencies/mafft
|
11
|
+
- curl -L --fail https://mafft.cbrc.jp/alignment/software/mafft-7.397-linux.tgz | tar -xzf - --strip-components=1 -C dependencies/mafft
|
12
|
+
- MAFFT_DIR="$PWD/dependencies/mafft/mafftdir"
|
13
|
+
- MAFFT_BINARIES="${MAFFT_DIR}/libexec"; export MAFFT_BINARIES;
|
14
|
+
# BLAST
|
15
|
+
- mkdir dependencies/blast
|
16
|
+
- curl -L --fail https://ftp.ncbi.nlm.nih.gov/blast/executables/blast+/2.7.1/ncbi-blast-2.7.1+-x64-linux.tar.gz | tar -xzf - --strip-components=1 -C dependencies/blast
|
17
|
+
- BLAST_BIN="$PWD/dependencies/blast/bin"
|
18
|
+
- export PATH=${MAFFT_DIR}/bin:${BLAST_BIN}:$PATH
|
19
|
+
# add GV as a dependency
|
20
|
+
- echo "gem 'genevalidator'" >> Gemfile
|
21
|
+
script: bundle exec rake test
|
@@ -81,9 +81,19 @@ MSG
|
|
81
81
|
end
|
82
82
|
end
|
83
83
|
|
84
|
+
## MAFFT NOT INSTALLED OR NOT COMPATIBLE ##
|
85
|
+
|
86
|
+
# Raised if GV could not locate MAFFT binaries on
|
87
|
+
# user's system.
|
88
|
+
class MAFFT_NOT_INSTALLED < StandardError
|
89
|
+
def to_s
|
90
|
+
'Could not locate MAFFT binaries.'
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
84
94
|
## BLAST NOT INSTALLED OR NOT COMPATIBLE ##
|
85
95
|
|
86
|
-
# Raised if
|
96
|
+
# Raised if GV could not locate NCBI BLAST+ installation on
|
87
97
|
# user's system.
|
88
98
|
class BLAST_NOT_INSTALLED < StandardError
|
89
99
|
def to_s
|
@@ -91,7 +101,7 @@ MSG
|
|
91
101
|
end
|
92
102
|
end
|
93
103
|
|
94
|
-
# Raised if
|
104
|
+
# Raised if GV could not successfully execute 'blastp -version'
|
95
105
|
# on user's system (see #141).
|
96
106
|
class BLAST_NOT_EXECUTABLE < StandardError
|
97
107
|
def to_s
|
@@ -99,8 +109,8 @@ MSG
|
|
99
109
|
end
|
100
110
|
end
|
101
111
|
|
102
|
-
# Raised if
|
103
|
-
# system but not meeting
|
112
|
+
# Raised if GV determined NCBI BLAST+ present on the user's
|
113
|
+
# system but not meeting GV's minimum version requirement.
|
104
114
|
class BLAST_NOT_COMPATIBLE < StandardError
|
105
115
|
def initialize(version)
|
106
116
|
@version = version
|
@@ -111,7 +121,7 @@ MSG
|
|
111
121
|
def to_s
|
112
122
|
<<MSG
|
113
123
|
Your BLAST+ version #{version} is outdated.
|
114
|
-
|
124
|
+
GV needs NCBI BLAST+ version #{MINIMUM_BLAST_VERSION} or higher.
|
115
125
|
MSG
|
116
126
|
end
|
117
127
|
end
|
@@ -167,7 +177,7 @@ Tried: #{cmd}
|
|
167
177
|
Error:
|
168
178
|
#{out.strip}
|
169
179
|
|
170
|
-
Please could you report this to 'https://groups.google.com/forum/#!forum/
|
180
|
+
Please could you report this to 'https://groups.google.com/forum/#!forum/GV'?
|
171
181
|
MSG
|
172
182
|
end
|
173
183
|
end
|