quorum 0.5.2 → 0.6.0

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.
Files changed (58) hide show
  1. data/.gitignore +3 -5
  2. data/.travis.yml +0 -2
  3. data/Gemfile.lock +2 -2
  4. data/HISTORY.md +12 -0
  5. data/Rakefile +13 -48
  6. data/app/models/quorum/blastn_job.rb +15 -22
  7. data/app/models/quorum/blastp_job.rb +15 -22
  8. data/app/models/quorum/blastx_job.rb +15 -22
  9. data/app/models/quorum/tblastn_job.rb +15 -22
  10. data/app/views/quorum/jobs/form/_blastn_form.html.erb +4 -4
  11. data/app/views/quorum/jobs/form/_blastp_form.html.erb +4 -4
  12. data/app/views/quorum/jobs/form/_blastx_form.html.erb +4 -4
  13. data/app/views/quorum/jobs/form/_tblastn_form.html.erb +4 -4
  14. data/app/views/quorum/jobs/templates/_blast_detailed_report_template.html.erb +6 -17
  15. data/db/migrate/20120918205556_rename_max_score_column.rb +15 -0
  16. data/lib/generators/templates/blast.rb +37 -31
  17. data/lib/quorum/version.rb +1 -1
  18. data/spec/config/quorum_settings.yml +55 -0
  19. data/spec/javascripts/fixtures/quorum_search_form.html +8 -8
  20. data/spec/javascripts/jobs_spec.js +8 -8
  21. data/spec/lib/tasks/travis.rake +120 -0
  22. data/spec/models/blastn_job_spec.rb +41 -22
  23. data/spec/models/blastp_job_spec.rb +41 -22
  24. data/spec/models/blastx_job_spec.rb +41 -22
  25. data/spec/models/job_spec.rb +1 -1
  26. data/spec/models/tblastn_job_spec.rb +41 -22
  27. data/spec/requests/jobs_spec.rb +8 -8
  28. data/spec/templates/blast_db_spec.rb +1 -1
  29. data/spec/templates/blast_spec.rb +1 -1
  30. metadata +7 -32
  31. data/spec/dummy/config/initializers/quorum_initializer.rb +0 -36
  32. data/spec/dummy/config/locales/quorum.en.yml +0 -8
  33. data/spec/dummy/config/quorum_settings.yml +0 -141
  34. data/spec/dummy/db/schema.rb +0 -213
  35. data/spec/dummy/quorum/bin/fetch +0 -115
  36. data/spec/dummy/quorum/bin/search +0 -141
  37. data/spec/dummy/quorum/blastdb/test/contigs.fa +0 -15
  38. data/spec/dummy/quorum/blastdb/test/peptides.fa +0 -4
  39. data/spec/dummy/quorum/blastdb/test.nhd +0 -2
  40. data/spec/dummy/quorum/blastdb/test.nhi +0 -0
  41. data/spec/dummy/quorum/blastdb/test.nhr +0 -0
  42. data/spec/dummy/quorum/blastdb/test.nin +0 -0
  43. data/spec/dummy/quorum/blastdb/test.nog +0 -0
  44. data/spec/dummy/quorum/blastdb/test.nsd +0 -2
  45. data/spec/dummy/quorum/blastdb/test.nsi +0 -0
  46. data/spec/dummy/quorum/blastdb/test.nsq +0 -0
  47. data/spec/dummy/quorum/blastdb/test.phd +0 -2
  48. data/spec/dummy/quorum/blastdb/test.phi +0 -0
  49. data/spec/dummy/quorum/blastdb/test.phr +0 -0
  50. data/spec/dummy/quorum/blastdb/test.pin +0 -0
  51. data/spec/dummy/quorum/blastdb/test.pog +0 -0
  52. data/spec/dummy/quorum/blastdb/test.psd +0 -2
  53. data/spec/dummy/quorum/blastdb/test.psi +0 -0
  54. data/spec/dummy/quorum/blastdb/test.psq +0 -0
  55. data/spec/dummy/quorum/lib/fetch_tools/blast_db.rb +0 -106
  56. data/spec/dummy/quorum/lib/logger.rb +0 -43
  57. data/spec/dummy/quorum/lib/search_tools/blast.rb +0 -452
  58. data/spec/dummy/quorum/lib/trollop.rb +0 -781
@@ -6,12 +6,12 @@ describe Quorum::BlastxJob do
6
6
  @blastx_job = Quorum::BlastxJob.new()
7
7
  end
8
8
 
9
- it "fails validation with poorly formatted expectation (using error_on)" do
9
+ it "fails validation with poorly formatted expectation" do
10
10
  @blastx_job.expectation = "this is bad"
11
11
  @blastx_job.should have(1).error_on(:expectation)
12
12
  end
13
13
 
14
- it "passes validation with valid expectation values (using error_on)" do
14
+ it "passes validation with valid expectation values" do
15
15
  @blastx_job.expectation = 12
16
16
  @blastx_job.should have(0).errors_on(:expectation)
17
17
  @blastx_job.expectation = 12.1201
@@ -22,49 +22,49 @@ describe Quorum::BlastxJob do
22
22
  @blastx_job.should have(0).errors_on(:expectation)
23
23
  end
24
24
 
25
- it "fails validation with poorly formatted max_score (using error_on)" do
26
- @blastx_job.max_score = 12.34
27
- @blastx_job.should have(1).error_on(:max_score)
28
- @blastx_job.max_score = "not a number"
29
- @blastx_job.should have(1).error_on(:max_score)
25
+ it "fails validation with poorly formatted max_target_seqs" do
26
+ @blastx_job.max_target_seqs = 12.34
27
+ @blastx_job.should have(1).error_on(:max_target_seqs)
28
+ @blastx_job.max_target_seqs = "not a number"
29
+ @blastx_job.should have(1).error_on(:max_target_seqs)
30
30
  end
31
31
 
32
- it "passed validation with valid max_score (using error_on)" do
33
- @blastx_job.max_score = 1235
34
- @blastx_job.should have(0).errors_on(:max_score)
32
+ it "passed validation with valid max_target_seqs" do
33
+ @blastx_job.max_target_seqs = 1235
34
+ @blastx_job.should have(0).errors_on(:max_target_seqs)
35
35
  end
36
36
 
37
- it "fails validation with poorly formatted gap_opening_penalty (using error_on)" do
37
+ it "fails validation with poorly formatted gap_opening_penalty" do
38
38
  @blastx_job.gap_opening_penalty = "not a number"
39
39
  @blastx_job.should have(1).error_on(:gap_opening_penalty)
40
40
  @blastx_job.gap_opening_penalty = 100.10
41
41
  @blastx_job.should have(1).error_on(:gap_opening_penalty)
42
42
  end
43
43
 
44
- it "passed validation with valid gap_opening_penalty (using error_on)" do
45
- @blastx_job.max_score = 13
44
+ it "passed validation with valid gap_opening_penalty" do
45
+ @blastx_job.max_target_seqs = 13
46
46
  @blastx_job.should have(0).errors_on(:gap_opening_penalty)
47
47
  end
48
48
 
49
- it "fails validation with poorly formatted gap_extension_penalty (using error_on)" do
49
+ it "fails validation with poorly formatted gap_extension_penalty" do
50
50
  @blastx_job.gap_extension_penalty = "who are you?"
51
51
  @blastx_job.should have(1).error_on(:gap_extension_penalty)
52
52
  @blastx_job.gap_extension_penalty = 0.3
53
53
  @blastx_job.should have(1).error_on(:gap_extension_penalty)
54
54
  end
55
55
 
56
- it "passed validation with valid gap_extension_penalty (using error_on)" do
57
- @blastx_job.max_score = 456
56
+ it "passed validation with valid gap_extension_penalty" do
57
+ @blastx_job.max_target_seqs = 456
58
58
  @blastx_job.should have(0).errors_on(:gap_extension_penalty)
59
59
  end
60
60
 
61
- it "fails validation without selecting gap_opening_extension with gapped_alignment (using error_on)" do
61
+ it "passes validation without selecting gap_opening_extension with gapped_alignment" do
62
62
  @blastx_job.gapped_alignments = true
63
63
  @blastx_job.gap_opening_extension = ""
64
- @blastx_job.should have(1).error_on(:gap_opening_extension)
64
+ @blastx_job.should have(0).error_on(:gap_opening_extension)
65
65
  end
66
66
 
67
- it "fails validation without selecting gap_opening_extension with gapped_alignment (using error_on)" do
67
+ it "fails validation without selecting gap_opening_extension with gapped_alignment" do
68
68
  @blastx_job.gapped_alignments = true
69
69
  @blastx_job.gap_opening_extension = "11, 2"
70
70
  @blastx_job.should have(0).errors_on(:gap_opening_extension)
@@ -100,6 +100,25 @@ describe Quorum::BlastxJob do
100
100
  )
101
101
  end
102
102
 
103
+ it "passes validation if not enqueued and blast_dbs is empty" do
104
+ @blastx_job.queue = false
105
+ @blastx_job.blast_dbs = []
106
+ @blastx_job.should have(0).errors_on(:blast_dbs)
107
+ end
108
+
109
+ it "fails validation if blast_dbs is empty" do
110
+ @blastx_job.queue = true
111
+ @blastx_job.blast_dbs = []
112
+ @blastx_job.should have(1).errors_on(:blast_dbs)
113
+ end
114
+
115
+ # Test for removal of multiple select hidden field value.
116
+ it "fails validation if blast_dbs contains an empty string" do
117
+ @blastx_job.queue = true
118
+ @blastx_job.blast_dbs = ["", "", ""]
119
+ @blastx_job.should have(1).errors_on(:blast_dbs)
120
+ end
121
+
103
122
  it "joins blast_dbs on semicolon after save" do
104
123
  @blastx_job.blast_dbs = ["test_1", "test_2"]
105
124
  @blastx_job.save
@@ -109,10 +128,10 @@ describe Quorum::BlastxJob do
109
128
  it "sets optional params to default values if empty after save" do
110
129
  @blastx_job.save
111
130
  @blastx_job.expectation.should eq("5e-20")
112
- @blastx_job.max_score.should eq(25)
131
+ @blastx_job.max_target_seqs.should eq(25)
113
132
  @blastx_job.min_bit_score.should eq(0)
114
- @blastx_job.gap_opening_penalty.should eq(0)
115
- @blastx_job.gap_extension_penalty.should eq(0)
133
+ @blastx_job.gap_opening_penalty.should be_nil
134
+ @blastx_job.gap_extension_penalty.should be_nil
116
135
  end
117
136
 
118
137
  end
@@ -7,7 +7,7 @@ describe Quorum::Job do
7
7
  ResqueSpec.reset!
8
8
  end
9
9
 
10
- it "fails validation without params (using error_on)" do
10
+ it "fails validation without params" do
11
11
  @job.should have(1).error_on(:sequence)
12
12
  @job.should have(1).error_on(:algorithm)
13
13
  end
@@ -6,12 +6,12 @@ describe Quorum::TblastnJob do
6
6
  @tblastn_job = Quorum::TblastnJob.new()
7
7
  end
8
8
 
9
- it "fails validation with poorly formatted expectation (using error_on)" do
9
+ it "fails validation with poorly formatted expectation" do
10
10
  @tblastn_job.expectation = "this is bad"
11
11
  @tblastn_job.should have(1).error_on(:expectation)
12
12
  end
13
13
 
14
- it "passes validation with valid expectation values (using error_on)" do
14
+ it "passes validation with valid expectation values" do
15
15
  @tblastn_job.expectation = 12
16
16
  @tblastn_job.should have(0).errors_on(:expectation)
17
17
  @tblastn_job.expectation = 12.1201
@@ -22,49 +22,49 @@ describe Quorum::TblastnJob do
22
22
  @tblastn_job.should have(0).errors_on(:expectation)
23
23
  end
24
24
 
25
- it "fails validation with poorly formatted max_score (using error_on)" do
26
- @tblastn_job.max_score = 12.34
27
- @tblastn_job.should have(1).error_on(:max_score)
28
- @tblastn_job.max_score = "not a number"
29
- @tblastn_job.should have(1).error_on(:max_score)
25
+ it "fails validation with poorly formatted max_target_seqs" do
26
+ @tblastn_job.max_target_seqs = 12.34
27
+ @tblastn_job.should have(1).error_on(:max_target_seqs)
28
+ @tblastn_job.max_target_seqs = "not a number"
29
+ @tblastn_job.should have(1).error_on(:max_target_seqs)
30
30
  end
31
31
 
32
- it "passed validation with valid max_score (using error_on)" do
33
- @tblastn_job.max_score = 1235
34
- @tblastn_job.should have(0).errors_on(:max_score)
32
+ it "passed validation with valid max_target_seqs" do
33
+ @tblastn_job.max_target_seqs = 1235
34
+ @tblastn_job.should have(0).errors_on(:max_target_seqs)
35
35
  end
36
36
 
37
- it "fails validation with poorly formatted gap_opening_penalty (using error_on)" do
37
+ it "fails validation with poorly formatted gap_opening_penalty" do
38
38
  @tblastn_job.gap_opening_penalty = "not a number"
39
39
  @tblastn_job.should have(1).error_on(:gap_opening_penalty)
40
40
  @tblastn_job.gap_opening_penalty = 100.10
41
41
  @tblastn_job.should have(1).error_on(:gap_opening_penalty)
42
42
  end
43
43
 
44
- it "passed validation with valid gap_opening_penalty (using error_on)" do
45
- @tblastn_job.max_score = 13
44
+ it "passed validation with valid gap_opening_penalty" do
45
+ @tblastn_job.max_target_seqs = 13
46
46
  @tblastn_job.should have(0).errors_on(:gap_opening_penalty)
47
47
  end
48
48
 
49
- it "fails validation with poorly formatted gap_extension_penalty (using error_on)" do
49
+ it "fails validation with poorly formatted gap_extension_penalty" do
50
50
  @tblastn_job.gap_extension_penalty = "who are you?"
51
51
  @tblastn_job.should have(1).error_on(:gap_extension_penalty)
52
52
  @tblastn_job.gap_extension_penalty = 0.3
53
53
  @tblastn_job.should have(1).error_on(:gap_extension_penalty)
54
54
  end
55
55
 
56
- it "passed validation with valid gap_extension_penalty (using error_on)" do
57
- @tblastn_job.max_score = 456
56
+ it "passed validation with valid gap_extension_penalty" do
57
+ @tblastn_job.max_target_seqs = 456
58
58
  @tblastn_job.should have(0).errors_on(:gap_extension_penalty)
59
59
  end
60
60
 
61
- it "fails validation without selecting gap_opening_extension with gapped_alignment (using error_on)" do
61
+ it "passes validation without selecting gap_opening_extension with gapped_alignment" do
62
62
  @tblastn_job.gapped_alignments = true
63
63
  @tblastn_job.gap_opening_extension = ""
64
- @tblastn_job.should have(1).error_on(:gap_opening_extension)
64
+ @tblastn_job.should have(0).error_on(:gap_opening_extension)
65
65
  end
66
66
 
67
- it "fails validation without selecting gap_opening_extension with gapped_alignment (using error_on)" do
67
+ it "fails validation without selecting gap_opening_extension with gapped_alignment" do
68
68
  @tblastn_job.gapped_alignments = true
69
69
  @tblastn_job.gap_opening_extension = "11, 2"
70
70
  @tblastn_job.should have(0).errors_on(:gap_opening_extension)
@@ -100,6 +100,25 @@ describe Quorum::TblastnJob do
100
100
  )
101
101
  end
102
102
 
103
+ it "passes validation if not enqueued and blast_dbs is empty" do
104
+ @tblastn_job.queue = false
105
+ @tblastn_job.blast_dbs = []
106
+ @tblastn_job.should have(0).errors_on(:blast_dbs)
107
+ end
108
+
109
+ it "fails validation if blast_dbs is empty" do
110
+ @tblastn_job.queue = true
111
+ @tblastn_job.blast_dbs = []
112
+ @tblastn_job.should have(1).errors_on(:blast_dbs)
113
+ end
114
+
115
+ # Test for removal of multiple select hidden field value.
116
+ it "fails validation if blast_dbs contains an empty string" do
117
+ @tblastn_job.queue = true
118
+ @tblastn_job.blast_dbs = ["", "", ""]
119
+ @tblastn_job.should have(1).errors_on(:blast_dbs)
120
+ end
121
+
103
122
  it "joins blast_dbs on semicolon after save" do
104
123
  @tblastn_job.blast_dbs = ["test_1", "test_2"]
105
124
  @tblastn_job.save
@@ -109,10 +128,10 @@ describe Quorum::TblastnJob do
109
128
  it "sets optional params to default values if empty after save" do
110
129
  @tblastn_job.save
111
130
  @tblastn_job.expectation.should eq("5e-20")
112
- @tblastn_job.max_score.should eq(25)
131
+ @tblastn_job.max_target_seqs.should eq(25)
113
132
  @tblastn_job.min_bit_score.should eq(0)
114
- @tblastn_job.gap_opening_penalty.should eq(0)
115
- @tblastn_job.gap_extension_penalty.should eq(0)
133
+ @tblastn_job.gap_opening_penalty.should be_nil
134
+ @tblastn_job.gap_extension_penalty.should be_nil
116
135
  end
117
136
 
118
137
  end
@@ -68,40 +68,40 @@ describe "Jobs" do
68
68
  # Blastn
69
69
  check "job_blastn_job_attributes_queue"
70
70
  select "tmp", :from => "job_blastn_job_attributes_blast_dbs"
71
- check "job_blastn_job_attributes_filter"
71
+ select "Yes", :from => "job_blastn_job_attributes_filter"
72
72
  fill_in "job_blastn_job_attributes_expectation", :with => "5e-20"
73
73
  fill_in "job_blastn_job_attributes_min_bit_score", :with => "0"
74
- fill_in "job_blastn_job_attributes_max_score", :with => "25"
74
+ fill_in "job_blastn_job_attributes_max_target_seqs", :with => "25"
75
75
  select "Yes", :from => "job_blastn_job_attributes_gapped_alignments"
76
76
  select "11, 2", :from => "job_blastn_job_attributes_gap_opening_extension"
77
77
 
78
78
  # Blastx
79
79
  check "job_blastx_job_attributes_queue"
80
80
  select "tmp", :from => "job_blastx_job_attributes_blast_dbs"
81
- check "job_blastx_job_attributes_filter"
81
+ select "Yes", :from => "job_blastx_job_attributes_filter"
82
82
  fill_in "job_blastx_job_attributes_expectation", :with => "5e-20"
83
83
  fill_in "job_blastx_job_attributes_min_bit_score", :with => "0"
84
- fill_in "job_blastx_job_attributes_max_score", :with => "25"
84
+ fill_in "job_blastx_job_attributes_max_target_seqs", :with => "25"
85
85
  select "Yes", :from => "job_blastx_job_attributes_gapped_alignments"
86
86
  select "10, 2", :from => "job_blastx_job_attributes_gap_opening_extension"
87
87
 
88
88
  # Tblastn
89
89
  check "job_tblastn_job_attributes_queue"
90
90
  select "tmp", :from => "job_tblastn_job_attributes_blast_dbs"
91
- check "job_tblastn_job_attributes_filter"
91
+ select "Yes", :from => "job_tblastn_job_attributes_filter"
92
92
  fill_in "job_tblastn_job_attributes_expectation", :with => "5e-20"
93
93
  fill_in "job_tblastn_job_attributes_min_bit_score", :with => "0"
94
- fill_in "job_tblastn_job_attributes_max_score", :with => "25"
94
+ fill_in "job_tblastn_job_attributes_max_target_seqs", :with => "25"
95
95
  select "Yes", :from => "job_tblastn_job_attributes_gapped_alignments"
96
96
  select "9, 2", :from => "job_tblastn_job_attributes_gap_opening_extension"
97
97
 
98
98
  # Blastp
99
99
  check "job_blastp_job_attributes_queue"
100
100
  select "tmp", :from => "job_blastp_job_attributes_blast_dbs"
101
- check "job_blastp_job_attributes_filter"
101
+ select "No", :from => "job_blastp_job_attributes_filter"
102
102
  fill_in "job_blastp_job_attributes_expectation", :with => "5e-20"
103
103
  fill_in "job_blastp_job_attributes_min_bit_score", :with => "0"
104
- fill_in "job_blastp_job_attributes_max_score", :with => "25"
104
+ fill_in "job_blastp_job_attributes_max_target_seqs", :with => "25"
105
105
  select "Yes", :from => "job_blastp_job_attributes_gapped_alignments"
106
106
  select "13, 1", :from => "job_blastp_job_attributes_gap_opening_extension"
107
107
 
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require File.expand_path("../../dummy/quorum/lib/fetch_tools/blast_db", __FILE__)
2
+ require 'generators/templates/blast_db'
3
3
 
4
4
  describe "Quorum::FetchTools::BlastDb" do
5
5
  describe "#execute_blast_db_cmd" do
@@ -1,5 +1,5 @@
1
1
  require 'spec_helper'
2
- require File.expand_path("../../dummy/quorum/lib/search_tools/blast", __FILE__)
2
+ require 'generators/templates/blast'
3
3
 
4
4
  describe "Quorum::SearchTools::Blast" do
5
5
  describe "#execute_blast non empty report" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quorum
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000 Z
12
+ date: 2012-09-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -281,6 +281,7 @@ files:
281
281
  - db/migrate/20120109232446_add_hit_display_id_to_blast_reports.rb
282
282
  - db/migrate/20120807202555_add_gaps_to_blast_reports.rb
283
283
  - db/migrate/20120910175911_change_hsp_group_column_type.rb
284
+ - db/migrate/20120918205556_rename_max_score_column.rb
284
285
  - lib/generators/quorum/images_generator.rb
285
286
  - lib/generators/quorum/install_generator.rb
286
287
  - lib/generators/quorum/styles_generator.rb
@@ -307,6 +308,7 @@ files:
307
308
  - lib/workers/quorum.rb
308
309
  - quorum.gemspec
309
310
  - script/rails
311
+ - spec/config/quorum_settings.yml
310
312
  - spec/data/fake_seq.txt
311
313
  - spec/data/nucl_prot_seqs.txt
312
314
  - spec/data/nucl_seqs.txt
@@ -338,46 +340,18 @@ files:
338
340
  - spec/dummy/config/initializers/backtrace_silencers.rb
339
341
  - spec/dummy/config/initializers/inflections.rb
340
342
  - spec/dummy/config/initializers/mime_types.rb
341
- - spec/dummy/config/initializers/quorum_initializer.rb
342
343
  - spec/dummy/config/initializers/resque.rb
343
344
  - spec/dummy/config/initializers/secret_token.rb
344
345
  - spec/dummy/config/initializers/session_store.rb
345
346
  - spec/dummy/config/initializers/wrap_parameters.rb
346
347
  - spec/dummy/config/locales/en.yml
347
- - spec/dummy/config/locales/quorum.en.yml
348
- - spec/dummy/config/quorum_settings.yml
349
348
  - spec/dummy/config/routes.rb
350
- - spec/dummy/db/schema.rb
351
349
  - spec/dummy/lib/assets/.gitkeep
352
350
  - spec/dummy/log/.gitkeep
353
351
  - spec/dummy/public/404.html
354
352
  - spec/dummy/public/422.html
355
353
  - spec/dummy/public/500.html
356
354
  - spec/dummy/public/favicon.ico
357
- - spec/dummy/quorum/bin/fetch
358
- - spec/dummy/quorum/bin/search
359
- - spec/dummy/quorum/blastdb/test.nhd
360
- - spec/dummy/quorum/blastdb/test.nhi
361
- - spec/dummy/quorum/blastdb/test.nhr
362
- - spec/dummy/quorum/blastdb/test.nin
363
- - spec/dummy/quorum/blastdb/test.nog
364
- - spec/dummy/quorum/blastdb/test.nsd
365
- - spec/dummy/quorum/blastdb/test.nsi
366
- - spec/dummy/quorum/blastdb/test.nsq
367
- - spec/dummy/quorum/blastdb/test.phd
368
- - spec/dummy/quorum/blastdb/test.phi
369
- - spec/dummy/quorum/blastdb/test.phr
370
- - spec/dummy/quorum/blastdb/test.pin
371
- - spec/dummy/quorum/blastdb/test.pog
372
- - spec/dummy/quorum/blastdb/test.psd
373
- - spec/dummy/quorum/blastdb/test.psi
374
- - spec/dummy/quorum/blastdb/test.psq
375
- - spec/dummy/quorum/blastdb/test/contigs.fa
376
- - spec/dummy/quorum/blastdb/test/peptides.fa
377
- - spec/dummy/quorum/lib/fetch_tools/blast_db.rb
378
- - spec/dummy/quorum/lib/logger.rb
379
- - spec/dummy/quorum/lib/search_tools/blast.rb
380
- - spec/dummy/quorum/lib/trollop.rb
381
355
  - spec/dummy/script/rails
382
356
  - spec/javascripts/fixtures/formatted_sequence.html
383
357
  - spec/javascripts/fixtures/quorum_search_form.html
@@ -392,6 +366,7 @@ files:
392
366
  - spec/javascripts/support/jasmine.yml
393
367
  - spec/javascripts/support/jasmine_config.rb
394
368
  - spec/javascripts/support/jasmine_runner.rb
369
+ - spec/lib/tasks/travis.rake
395
370
  - spec/models/blastn_job_report_spec.rb
396
371
  - spec/models/blastn_job_spec.rb
397
372
  - spec/models/blastp_job_report_spec.rb
@@ -427,7 +402,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
427
402
  version: '0'
428
403
  segments:
429
404
  - 0
430
- hash: 731925169058267446
405
+ hash: -238619027488195291
431
406
  required_rubygems_version: !ruby/object:Gem::Requirement
432
407
  none: false
433
408
  requirements:
@@ -436,7 +411,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
436
411
  version: '0'
437
412
  segments:
438
413
  - 0
439
- hash: 731925169058267446
414
+ hash: -238619027488195291
440
415
  requirements: []
441
416
  rubyforge_project:
442
417
  rubygems_version: 1.8.24
@@ -1,36 +0,0 @@
1
- ## Quorum Settings ##
2
- #
3
- # DO NOT edit this file directly. To configure Quorum edit
4
- # config/quorum_settings.yml.
5
-
6
- ## Load Quorum Setttings ##
7
- settings = YAML.load_file(
8
- "#{::Rails.root.to_s}/config/quorum_settings.yml"
9
- )[::Rails.env.to_s]
10
-
11
- ## Sub %{RAILS_ROOT} ##
12
- settings.keys.each do |k|
13
- settings[k.to_s].each_value do |v|
14
- if v.kind_of?(String)
15
- v.to_s.gsub!('%{RAILS_ROOT}', ::Rails.root.to_s)
16
- end
17
- end
18
- end
19
-
20
- blast = settings['blast']
21
-
22
- ## Quorum Blast Settings ##
23
- Quorum.blast_remote = blast['remote']
24
- Quorum.blast_ssh_host = blast['ssh_host']
25
- Quorum.blast_ssh_user = blast['ssh_user']
26
- Quorum.blast_ssh_options = blast['ssh_options']
27
- Quorum.blast_bin = blast['bin']
28
- Quorum.blast_log_dir = blast['log_dir']
29
- Quorum.blast_tmp_dir = blast['tmp_dir']
30
- Quorum.blast_db = blast['blast_db']
31
- Quorum.tblastn = blast['tblastn']
32
- Quorum.blastp = blast['blastp']
33
- Quorum.blastn = blast['blastn']
34
- Quorum.blastx = blast['blastx']
35
- Quorum.blast_threads = blast['blast_threads']
36
-
@@ -1,8 +0,0 @@
1
- en:
2
- quorum:
3
- jobs:
4
- errors:
5
- notices:
6
- data_not_found: "The data you requested is unavailable. Please check your URL and try again."
7
- alerts:
8
-
@@ -1,141 +0,0 @@
1
- # Quorum Settings
2
- #
3
- # ==> General
4
- # Quorum initializer safely substitutes %{RAILS_ROOT} with ::Rails.root.to_s.
5
- #
6
- # ==> NCBI BLAST+ Settings
7
- # blast:
8
- # remote: true to execute script on remote machine via
9
- # Net::SSH. false to execute locally via Kernel#system.
10
- # See Net::SSH for more information.
11
- # http://net-ssh.github.com/ssh/v2/api/index.html
12
- #
13
- # ssh_host: Net::SSH.start() host.
14
- #
15
- # ssh_user: Net::SSH.start() user.
16
- #
17
- # ssh_options: Net::SSH.start() optional params.
18
- # See http://net-ssh.github.com/ssh/v2/api/classes/Net/SSH.html#M000002
19
- # for a complete list of options.
20
- # Example Usage:
21
- # ssh_options:
22
- # password: "secret password"
23
- # port: 8888
24
- #
25
- # bin: Absolute path to quorum/bin.
26
- #
27
- # log_dir: Absolute path to log file directory.
28
- #
29
- # tmp_dir: Absolute path to tmp file directory.
30
- #
31
- # blast_db: Absolute path to NCBI Blast database directory.
32
- # Execute the rake task below to build your Blast DB.
33
- # rake quorum:blastdb:build
34
- #
35
- # blastn: Collection of Blast DBs under the parent blast_db
36
- # to use with blastn.
37
- # Example Usage:
38
- # blastn:
39
- # "Display name": blastn_database_name
40
- # "A really cool genome": really_cool_genome
41
- #
42
- # blastx: Collection of Blast DBs under the parent blast_db
43
- # to use with blastx.
44
- # Example Usage:
45
- # blastx:
46
- # "Display name": blastx_database_name
47
- # "A really cool genome": really_cool_genome
48
- #
49
- # tblastn: Collection of Blast DBs under the parent blast_db
50
- # to use with tblastn.
51
- # Example Usage:
52
- # tblastn:
53
- # "Display name": tblastn_database_name
54
- # "A really cool genome": really_cool_genome
55
- #
56
- # blastp: Collection of Blast DBs under the parent blast_db
57
- # to use with blastp.
58
- # Example Usage:
59
- # blastp:
60
- # "Display name": blastp_database_name
61
- # "A really cool genome": really_cool_genome
62
- #
63
- # blast_threads: Number of Blast threads. >= 1
64
- # Defaults to 1.
65
-
66
- development:
67
- blast:
68
- remote: false
69
- ssh_host:
70
- ssh_user:
71
- ssh_options:
72
- # Example:
73
- # password: "secret password"
74
- # port: 8888
75
- bin: "%{RAILS_ROOT}/quorum/bin"
76
- log_dir: "%{RAILS_ROOT}/quorum/log"
77
- tmp_dir: "%{RAILS_ROOT}/quorum/tmp"
78
- blast_db: "%{RAILS_ROOT}/quorum/blastdb"
79
- blastn:
80
- "tmp": test
81
- blastx:
82
- "tmp": test
83
- tblastn:
84
- "tmp": test
85
- blastp:
86
- "tmp": test
87
- blast_threads: 4
88
-
89
- test:
90
- blast:
91
- remote: false
92
- ssh_host:
93
- ssh_user:
94
- ssh_options:
95
- # Example:
96
- # password: "secret password"
97
- # port: 8888
98
- bin: "%{RAILS_ROOT}/quorum/bin"
99
- log_dir: "%{RAILS_ROOT}/quorum/log"
100
- tmp_dir: "%{RAILS_ROOT}/quorum/tmp"
101
- blast_db: "%{RAILS_ROOT}/quorum/blastdb"
102
- blastn:
103
- "tmp": test
104
- blastx:
105
- "tmp": test
106
- tblastn:
107
- "tmp": test
108
- blastp:
109
- "tmp": test
110
- blast_threads:
111
-
112
- production:
113
- blast:
114
- remote: true
115
- ssh_host:
116
- ssh_user:
117
- ssh_options:
118
- # Example:
119
- # password: "secret password"
120
- # port: 8888
121
- bin:
122
- log_dir:
123
- tmp_dir:
124
- blast_db:
125
- blastn:
126
- # Example:
127
- # "Display name": blastn_database_name
128
- # "A really cool genome": really_cool_genome
129
- blastx:
130
- # Example:
131
- # "Display name": blastx_database_name
132
- # "A really cool genome": really_cool_genome
133
- tblastn:
134
- # Example:
135
- # "Display name": tblastn_database_name
136
- # "A really cool genome": really_cool_genome
137
- blastp:
138
- # Example:
139
- # "Display name": blastp_database_name
140
- # "A really cool genome": really_cool_genome
141
- blast_threads: