sequenceserver 1.1.0.beta2 → 1.1.0.beta3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sequenceserver might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.travis.yml +16 -5
- data/README.md +3 -0
- data/lib/sequenceserver/api_errors.rb +67 -0
- data/lib/sequenceserver/blast/constants.rb +1 -1
- data/lib/sequenceserver/blast/formatter.rb +4 -2
- data/lib/sequenceserver/blast/job.rb +17 -62
- data/lib/sequenceserver/blast/report.rb +15 -2
- data/lib/sequenceserver/blast.rb +1 -0
- data/lib/sequenceserver/exceptions.rb +2 -3
- data/lib/sequenceserver/job.rb +72 -44
- data/lib/sequenceserver/routes.rb +29 -25
- data/lib/sequenceserver/version.rb +1 -1
- data/lib/sequenceserver.rb +32 -20
- data/public/js/errormodal.js +55 -0
- data/public/js/report.js +6 -2
- data/public/js/sequenceserver.js +0 -12
- data/public/sequenceserver-report.min.js +15 -15
- data/public/sequenceserver-search.min.js +3 -3
- data/sequenceserver.gemspec +2 -1
- data/spec/capybara_spec.rb +120 -21
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhd +8 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhi +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhr +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nin +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nog +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsd +16 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsi +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsq +0 -0
- data/spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.txt +8 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phd +9140 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phi +0 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phr +0 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.pin +0 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.pog +0 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psd +18280 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psi +0 -0
- data/spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psq +0 -0
- data/spec/database/sample/proteins/uniprot/URL +1 -0
- data/spec/nucleotide_query.fa +21 -0
- data/spec/protein_query.fa +21 -0
- data/spec/routes_spec.rb +2 -0
- data/spec/sample_reports/blastn_sample/job.yaml +1 -0
- data/spec/sample_reports/blastn_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/blastp_sample/job.yaml +1 -0
- data/spec/sample_reports/blastp_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/blastx_sample/job.yaml +1 -0
- data/spec/sample_reports/blastx_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/no_hits_sample/job.yaml +1 -0
- data/spec/sample_reports/no_hits_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/tblastn_sample/job.yaml +1 -0
- data/spec/sample_reports/tblastn_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/tblastx_sample/job.yaml +1 -0
- data/spec/sample_reports/tblastx_sample/{rfile → stdout} +0 -0
- data/spec/sample_reports/with_hits_sample/job.yaml +1 -0
- data/spec/sample_reports/with_hits_sample/{rfile → stdout} +0 -0
- data/spec/sequenceserver_spec.rb +1 -1
- data/spec/spec_helper.rb +2 -16
- data/views/layout.erb +0 -45
- metadata +55 -16
- data/lib/sequenceserver/blast/exceptions.rb +0 -27
- data/views/400.erb +0 -29
- data/views/500.erb +0 -41
@@ -0,0 +1 @@
|
|
1
|
+
http://www.uniprot.org/uniprot/?query=taxonomy%3Ainsecta+reviewed%3Ayes&sort=score
|
@@ -0,0 +1,21 @@
|
|
1
|
+
ATGAATACCCTCTGGCTCTCTTTATGGGATTATCCCGGTAAGCTTCCCTTAAACTTCATG
|
2
|
+
GTGTTTGACACGAAGGATGATCTGCAAGCAGCGTATTGGAGAGATCCTTACAGCATACCT
|
3
|
+
CTGGCAGTTATCTTCGAGGACCCCCAACCGATATCACAGCGACTTATATATGAAATTAGG
|
4
|
+
ACGAATCCTTCATACACTTTGCCGCCACCGCCAACCAAATTGTATTCTGCTCCGATCAGT
|
5
|
+
TGTCGAAAGAATAAAACTGGTCACTGGATGGACGACATTTTATCGATAAAAACCGGTGAA
|
6
|
+
TCTTGTCCCGTTAACAATTACTTGCATTCTGGCTTCTTGGCTCTGCAAATGATAACGGAT
|
7
|
+
ATCACAAAGATAAAATTGGAAAATTCTGACGTGACAATACCGGATATTAAACTCATAATG
|
8
|
+
TTTCCTAAAGAGCCGTATACCGCTGACTGGATGCTGGCCTTCAGAGTTGTTATTCCGCTT
|
9
|
+
TACATGGTCTTGGCTCTCTCGCAATTTATCACTTATCTTCTGATCCTAATAGTTGGCGAG
|
10
|
+
AAGGAAAATAAGATTAAAGAGGGAATGAAGATGATGGGCTTAAATGATTCTGTGTTT
|
11
|
+
>SI2.2.0_13722 Si_gnF.scaffold06207[1925625..1928536].pep_1
|
12
|
+
ATGTCCGCGAATCGATTGAACGTGCTGGTGACCCTGATGCTCGCCGTCGCGCTTCTTGTG
|
13
|
+
ACGGAATCAGGAAATGCACAGGTGGATGGCTATCTCCAATTCAACCCAAAGCGATCCGCC
|
14
|
+
GTGAGCTCGCCGCAGAAGTATTGCGGCAAAAAGCTTTCTAATGCTCTACAGATAATCTGT
|
15
|
+
GATGGCGTGTACAATTCCATGTTTAAGAAGAGTGGTCAAGATTTTCCCCCGCAAAATAAG
|
16
|
+
AGACACATAGCACACAGAATAAATGGGAATGAGGAAGAGAGCTTTACTACGTTAAAGTCG
|
17
|
+
AATTTTTTAAACTGGTGTGTTGAAGTTTATCATCGTCACTACAGATTCGTTTTTGTTTCA
|
18
|
+
GAGATGGAAATGGCCGATTACCCGCTCGCCTATGATATTTCCCCGTATCTTCCGCCGTTC
|
19
|
+
CTGTCGCGAGCGAGGGCACGGGGAATGTTAGACGGTCGCTTCGCCGGCAGACGCTACCGA
|
20
|
+
AGGGAGTCGCGGGGCATTCACGAGGAGTGTTGCATCAACGGATGTACGATAAACGAATTG
|
21
|
+
ACCAGCTACTGCGGCCCC
|
@@ -0,0 +1,21 @@
|
|
1
|
+
ATGAATACCCTCTGGCTCTCTTTATGGGATTATCCCGGTAAGCTTCCCTTAAACTTCATG
|
2
|
+
GTGTTTGACACGAAGGATGATCTGCAAGCAGCGTATTGGAGAGATCCTTACAGCATACCT
|
3
|
+
CTGGCAGTTATCTTCGAGGACCCCCAACCGATATCACAGCGACTTATATATGAAATTAGG
|
4
|
+
ACGAATCCTTCATACACTTTGCCGCCACCGCCAACCAAATTGTATTCTGCTCCGATCAGT
|
5
|
+
TGTCGAAAGAATAAAACTGGTCACTGGATGGACGACATTTTATCGATAAAAACCGGTGAA
|
6
|
+
TCTTGTCCCGTTAACAATTACTTGCATTCTGGCTTCTTGGCTCTGCAAATGATAACGGAT
|
7
|
+
ATCACAAAGATAAAATTGGAAAATTCTGACGTGACAATACCGGATATTAAACTCATAATG
|
8
|
+
TTTCCTAAAGAGCCGTATACCGCTGACTGGATGCTGGCCTTCAGAGTTGTTATTCCGCTT
|
9
|
+
TACATGGTCTTGGCTCTCTCGCAATTTATCACTTATCTTCTGATCCTAATAGTTGGCGAG
|
10
|
+
AAGGAAAATAAGATTAAAGAGGGAATGAAGATGATGGGCTTAAATGATTCTGTGTTT
|
11
|
+
>SI2.2.0_13722 Si_gnF.scaffold06207[1925625..1928536].pep_1
|
12
|
+
ATGTCCGCGAATCGATTGAACGTGCTGGTGACCCTGATGCTCGCCGTCGCGCTTCTTGTG
|
13
|
+
ACGGAATCAGGAAATGCACAGGTGGATGGCTATCTCCAATTCAACCCAAAGCGATCCGCC
|
14
|
+
GTGAGCTCGCCGCAGAAGTATTGCGGCAAAAAGCTTTCTAATGCTCTACAGATAATCTGT
|
15
|
+
GATGGCGTGTACAATTCCATGTTTAAGAAGAGTGGTCAAGATTTTCCCCCGCAAAATAAG
|
16
|
+
AGACACATAGCACACAGAATAAATGGGAATGAGGAAGAGAGCTTTACTACGTTAAAGTCG
|
17
|
+
AATTTTTTAAACTGGTGTGTTGAAGTTTATCATCGTCACTACAGATTCGTTTTTGTTTCA
|
18
|
+
GAGATGGAAATGGCCGATTACCCGCTCGCCTATGATATTTCCCCGTATCTTCCGCCGTTC
|
19
|
+
CTGTCGCGAGCGAGGGCACGGGGAATGTTAGACGGTCGCTTCGCCGGCAGACGCTACCGA
|
20
|
+
AGGGAGTCGCGGGGCATTCACGAGGAGTGTTGCATCAACGGATGTACGATAAACGAATTG
|
21
|
+
ACCAGCTACTGCGGCCCC
|
data/spec/routes_spec.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/spec/sequenceserver_spec.rb
CHANGED
@@ -83,7 +83,7 @@ module SequenceServer
|
|
83
83
|
it 'has a list of databases after startup' do
|
84
84
|
SequenceServer.init()
|
85
85
|
# assuming database_dir is set to spec/database/sample
|
86
|
-
Database.all.length.should ==
|
86
|
+
Database.all.length.should == 4
|
87
87
|
Database.all.should_not be_empty
|
88
88
|
end
|
89
89
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,18 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
|
1
|
+
require 'simplecov'
|
2
|
+
SimpleCov.start
|
3
3
|
|
4
4
|
require 'sequenceserver'
|
5
|
-
require 'rack/test'
|
6
|
-
require 'rspec'
|
7
|
-
|
8
|
-
begin
|
9
|
-
require 'capybara/rspec'
|
10
|
-
require 'selenium-webdriver'
|
11
|
-
|
12
|
-
RSpec.configure do |config|
|
13
|
-
config.include Capybara::DSL
|
14
|
-
end
|
15
|
-
|
16
|
-
$capybara_available = true
|
17
|
-
rescue
|
18
|
-
end
|
data/views/layout.erb
CHANGED
@@ -102,51 +102,6 @@
|
|
102
102
|
</div> <!-- /container -->
|
103
103
|
</div>
|
104
104
|
|
105
|
-
<div
|
106
|
-
id="error"
|
107
|
-
class="modal fade"
|
108
|
-
tabindex="-1">
|
109
|
-
</div> <!-- error -->
|
110
|
-
|
111
|
-
<div
|
112
|
-
class="modal fade" id="error-no-response">
|
113
|
-
<div
|
114
|
-
class="modal-dialog">
|
115
|
-
<div
|
116
|
-
class="modal-content">
|
117
|
-
<div
|
118
|
-
class="modal-header">
|
119
|
-
<h3>Server didn't respond</h3>
|
120
|
-
</div>
|
121
|
-
|
122
|
-
<div
|
123
|
-
class="modal-body">
|
124
|
-
<p>
|
125
|
-
Could be a temporary network issue, or the service might be
|
126
|
-
configured to "time out" long requests.
|
127
|
-
</p>
|
128
|
-
|
129
|
-
<p>
|
130
|
-
Please try again
|
131
|
-
later, or report to the admin or <a
|
132
|
-
href="https://groups.google.com/forum/?fromgroups#!forum/sequenceserver">SequenceServer
|
133
|
-
Google Group</a> (if you are the admin) if problem persists.
|
134
|
-
</p>
|
135
|
-
</div>
|
136
|
-
|
137
|
-
<div
|
138
|
-
class="modal-footer">
|
139
|
-
<button
|
140
|
-
type="button"
|
141
|
-
class="btn btn-danger"
|
142
|
-
data-dismiss="modal">
|
143
|
-
Okay
|
144
|
-
</button>
|
145
|
-
</div>
|
146
|
-
</div>
|
147
|
-
</div>
|
148
|
-
</div> <!-- error-no-response -->
|
149
|
-
|
150
105
|
<div
|
151
106
|
class="modal fade" id="help"
|
152
107
|
tabindex="-1">
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sequenceserver
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.0.
|
4
|
+
version: 1.1.0.beta3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anurag Priyam
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2018-
|
14
|
+
date: 2018-04-12 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: sinatra
|
@@ -173,6 +173,26 @@ dependencies:
|
|
173
173
|
- - ">="
|
174
174
|
- !ruby/object:Gem::Version
|
175
175
|
version: 1.0.0
|
176
|
+
- !ruby/object:Gem::Dependency
|
177
|
+
name: sauce_whisk
|
178
|
+
requirement: !ruby/object:Gem::Requirement
|
179
|
+
requirements:
|
180
|
+
- - "~>"
|
181
|
+
- !ruby/object:Gem::Version
|
182
|
+
version: '0.0'
|
183
|
+
- - ">="
|
184
|
+
- !ruby/object:Gem::Version
|
185
|
+
version: 0.0.19
|
186
|
+
type: :development
|
187
|
+
prerelease: false
|
188
|
+
version_requirements: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - "~>"
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0.0'
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: 0.0.19
|
176
196
|
- !ruby/object:Gem::Dependency
|
177
197
|
name: selenium-webdriver
|
178
198
|
requirement: !ruby/object:Gem::Requirement
|
@@ -199,20 +219,20 @@ dependencies:
|
|
199
219
|
requirements:
|
200
220
|
- - "~>"
|
201
221
|
- !ruby/object:Gem::Version
|
202
|
-
version: '0
|
222
|
+
version: '1.0'
|
203
223
|
- - ">="
|
204
224
|
- !ruby/object:Gem::Version
|
205
|
-
version: 0.
|
225
|
+
version: 1.0.8
|
206
226
|
type: :development
|
207
227
|
prerelease: false
|
208
228
|
version_requirements: !ruby/object:Gem::Requirement
|
209
229
|
requirements:
|
210
230
|
- - "~>"
|
211
231
|
- !ruby/object:Gem::Version
|
212
|
-
version: '0
|
232
|
+
version: '1.0'
|
213
233
|
- - ">="
|
214
234
|
- !ruby/object:Gem::Version
|
215
|
-
version: 0.
|
235
|
+
version: 1.0.8
|
216
236
|
description: |
|
217
237
|
SequenceServer lets you rapidly set up a BLAST+ server with an intuitive user
|
218
238
|
interface for use locally or over the web.
|
@@ -244,9 +264,9 @@ files:
|
|
244
264
|
- config.ru
|
245
265
|
- docker/Dockerfile
|
246
266
|
- lib/sequenceserver.rb
|
267
|
+
- lib/sequenceserver/api_errors.rb
|
247
268
|
- lib/sequenceserver/blast.rb
|
248
269
|
- lib/sequenceserver/blast/constants.rb
|
249
|
-
- lib/sequenceserver/blast/exceptions.rb
|
250
270
|
- lib/sequenceserver/blast/formatter.rb
|
251
271
|
- lib/sequenceserver/blast/hit.rb
|
252
272
|
- lib/sequenceserver/blast/hsp.rb
|
@@ -292,6 +312,7 @@ files:
|
|
292
312
|
- public/js/alignment_exporter.js
|
293
313
|
- public/js/alignmentsoverview.js
|
294
314
|
- public/js/circos.js
|
315
|
+
- public/js/errormodal.js
|
295
316
|
- public/js/exporter.js
|
296
317
|
- public/js/grapher.js
|
297
318
|
- public/js/kablammo.js
|
@@ -3674,6 +3695,15 @@ files:
|
|
3674
3695
|
- spec/database/funky_sequences/funky_na_sequences.fa.nsd
|
3675
3696
|
- spec/database/funky_sequences/funky_na_sequences.fa.nsi
|
3676
3697
|
- spec/database/funky_sequences/funky_na_sequences.fa.nsq
|
3698
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhd
|
3699
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhi
|
3700
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nhr
|
3701
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nin
|
3702
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nog
|
3703
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsd
|
3704
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsi
|
3705
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.fasta.nsq
|
3706
|
+
- spec/database/sample/genome/Solenopsis_invicta/Solenopsis_invicta_gnG_subset.txt
|
3677
3707
|
- spec/database/sample/links.rb
|
3678
3708
|
- spec/database/sample/proteins/Solenopsis_invicta/Sinvicta2-2-3.prot.subset.fasta
|
3679
3709
|
- spec/database/sample/proteins/Solenopsis_invicta/Sinvicta2-2-3.prot.subset.fasta.phd
|
@@ -3684,6 +3714,15 @@ files:
|
|
3684
3714
|
- spec/database/sample/proteins/Solenopsis_invicta/Sinvicta2-2-3.prot.subset.fasta.psd
|
3685
3715
|
- spec/database/sample/proteins/Solenopsis_invicta/Sinvicta2-2-3.prot.subset.fasta.psi
|
3686
3716
|
- spec/database/sample/proteins/Solenopsis_invicta/Sinvicta2-2-3.prot.subset.fasta.psq
|
3717
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phd
|
3718
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phi
|
3719
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.phr
|
3720
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.pin
|
3721
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.pog
|
3722
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psd
|
3723
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psi
|
3724
|
+
- spec/database/sample/proteins/uniprot/2018-04-Swiss-Prot_insecta.fasta.psq
|
3725
|
+
- spec/database/sample/proteins/uniprot/URL
|
3687
3726
|
- spec/database/sample/si_uniprot_idmap.yml
|
3688
3727
|
- spec/database/sample/transcripts/Solenopsis_invicta/Sinvicta2-2-3.cdna.subset.fasta
|
3689
3728
|
- spec/database/sample/transcripts/Solenopsis_invicta/Sinvicta2-2-3.cdna.subset.fasta.nhd
|
@@ -3702,27 +3741,27 @@ files:
|
|
3702
3741
|
- spec/database_spec.rb
|
3703
3742
|
- spec/doctor_spec.disabled.rb
|
3704
3743
|
- spec/empty_config.yml
|
3744
|
+
- spec/nucleotide_query.fa
|
3745
|
+
- spec/protein_query.fa
|
3705
3746
|
- spec/routes_spec.rb
|
3706
3747
|
- spec/sample.conf
|
3707
3748
|
- spec/sample_reports/blastn_sample/job.yaml
|
3708
|
-
- spec/sample_reports/blastn_sample/
|
3749
|
+
- spec/sample_reports/blastn_sample/stdout
|
3709
3750
|
- spec/sample_reports/blastp_sample/job.yaml
|
3710
|
-
- spec/sample_reports/blastp_sample/
|
3751
|
+
- spec/sample_reports/blastp_sample/stdout
|
3711
3752
|
- spec/sample_reports/blastx_sample/job.yaml
|
3712
|
-
- spec/sample_reports/blastx_sample/
|
3753
|
+
- spec/sample_reports/blastx_sample/stdout
|
3713
3754
|
- spec/sample_reports/no_hits_sample/job.yaml
|
3714
|
-
- spec/sample_reports/no_hits_sample/
|
3755
|
+
- spec/sample_reports/no_hits_sample/stdout
|
3715
3756
|
- spec/sample_reports/tblastn_sample/job.yaml
|
3716
|
-
- spec/sample_reports/tblastn_sample/
|
3757
|
+
- spec/sample_reports/tblastn_sample/stdout
|
3717
3758
|
- spec/sample_reports/tblastx_sample/job.yaml
|
3718
|
-
- spec/sample_reports/tblastx_sample/
|
3759
|
+
- spec/sample_reports/tblastx_sample/stdout
|
3719
3760
|
- spec/sample_reports/with_hits_sample/job.yaml
|
3720
|
-
- spec/sample_reports/with_hits_sample/
|
3761
|
+
- spec/sample_reports/with_hits_sample/stdout
|
3721
3762
|
- spec/sequence_spec.rb
|
3722
3763
|
- spec/sequenceserver_spec.rb
|
3723
3764
|
- spec/spec_helper.rb
|
3724
|
-
- views/400.erb
|
3725
|
-
- views/500.erb
|
3726
3765
|
- views/_options.erb
|
3727
3766
|
- views/layout.erb
|
3728
3767
|
- views/report.erb
|
@@ -1,27 +0,0 @@
|
|
1
|
-
module SequenceServer
|
2
|
-
module BLAST
|
3
|
-
# To signal error in query sequence or options.
|
4
|
-
#
|
5
|
-
# ArgumentError is raised when BLAST+'s exit status is 1; see [1].
|
6
|
-
class ArgumentError < ArgumentError
|
7
|
-
end
|
8
|
-
|
9
|
-
# To signal internal errors.
|
10
|
-
#
|
11
|
-
# RuntimeError is raised when BLAST+'s exits status is one of 2, 3, 4, or
|
12
|
-
# 255; see [1]. These are rare, infrastructure errors, used internally,
|
13
|
-
# and of concern only to the admins/developers.
|
14
|
-
class RuntimeError < RuntimeError
|
15
|
-
def initialize(status, message)
|
16
|
-
@status = status
|
17
|
-
@message = message
|
18
|
-
end
|
19
|
-
|
20
|
-
attr_reader :status, :message
|
21
|
-
|
22
|
-
def to_s
|
23
|
-
"#{status}, #{message}"
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
data/views/400.erb
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
<div
|
2
|
-
class="modal-dialog">
|
3
|
-
<div
|
4
|
-
class="modal-content">
|
5
|
-
<div
|
6
|
-
class="modal-header">
|
7
|
-
<h3>
|
8
|
-
Oops! Request Failed
|
9
|
-
</h3>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div
|
13
|
-
class="modal-body">
|
14
|
-
<p>
|
15
|
-
<%= error.message %>
|
16
|
-
</p>
|
17
|
-
</div>
|
18
|
-
|
19
|
-
<div
|
20
|
-
class="modal-footer">
|
21
|
-
<button
|
22
|
-
type="button"
|
23
|
-
class="btn btn-default btn-danger"
|
24
|
-
data-dismiss="modal">
|
25
|
-
Close
|
26
|
-
</button>
|
27
|
-
</div>
|
28
|
-
</div>
|
29
|
-
</div>
|
data/views/500.erb
DELETED
@@ -1,41 +0,0 @@
|
|
1
|
-
<div
|
2
|
-
class="modal-dialog modal-lg">
|
3
|
-
<div
|
4
|
-
class="modal-content">
|
5
|
-
<div
|
6
|
-
class="modal-header">
|
7
|
-
<h3>
|
8
|
-
Sorry BLAST failed
|
9
|
-
</h3>
|
10
|
-
</div>
|
11
|
-
|
12
|
-
<div
|
13
|
-
class="modal-body">
|
14
|
-
<p>
|
15
|
-
Sorry BLAST failed - please try again. If this message persists, there is
|
16
|
-
a problem with the server. In this case, please report the bug on our <a
|
17
|
-
href="https://groups.google.com/forum/?fromgroups#!forum/sequenceserver">
|
18
|
-
issue tracker</a>?
|
19
|
-
|
20
|
-
<pre class="pre-scrollable">
|
21
|
-
<%=
|
22
|
-
["#{error.class} - #{error.message}:", *error.backtrace].map do |line|
|
23
|
-
ERB::Util.h line
|
24
|
-
end.join("\n")
|
25
|
-
%>
|
26
|
-
</pre>
|
27
|
-
|
28
|
-
</p>
|
29
|
-
</div>
|
30
|
-
|
31
|
-
<div
|
32
|
-
class="modal-footer">
|
33
|
-
<button
|
34
|
-
type="button"
|
35
|
-
class="btn btn-danger"
|
36
|
-
data-dismiss="modal">
|
37
|
-
Done
|
38
|
-
</button>
|
39
|
-
</div>
|
40
|
-
</div>
|
41
|
-
</div>
|