bio-polymarker_db_batch 0.2.1 → 0.3.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.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/run_pending_polymarker.rb +1 -0
- data/lib/bio-polymarker_db_batch.rb +1 -1
- data/lib/bio-polymarker_db_batch/polymarker_db_batch.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36b22aa90692cd1619c083ae7d5e39ba0a0aca1b
|
4
|
+
data.tar.gz: cf32c6616329af6bd5001bac8cf7e199ab496181
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e1b2134db74e3a5d938def8e705200a4380afe1ef4a6c6f4594d83c17bb7200ccaa48f55ae80778a35b669bd22e9d5bb39b934412e75518ae88410dc522000d9
|
7
|
+
data.tar.gz: 9c84edf81a7116aeeb55732cadbf08e143ee700bd335765ec251dbbd7cff3355b707b384b257db2c14a333f161f0710b9e68862ec8c00cdd3b79e55b377c24c1
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.3.0
|
@@ -28,7 +28,7 @@ class Bio::DB::Polymarker
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def each_running
|
31
|
-
query="SELECT snp_file_id, filename FROM snp_file WHERE status
|
31
|
+
query="SELECT snp_file_id, filename FROM snp_file WHERE status = 'RUNNING');"
|
32
32
|
ret = 0
|
33
33
|
if block_given?
|
34
34
|
ret = execute_query(query){|row| yield row }
|
@@ -39,7 +39,7 @@ class Bio::DB::Polymarker
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def each_snp_in_file(file_id)
|
42
|
-
query="SELECT name, chromosome, sequence FROM snp, snp_file_snp WHERE snp_file_snp.snpList_snpId = snp.snpId AND snp_file_snp.snp_file_snp_file_id = '#{file_id}';"
|
42
|
+
query="SELECT name, chromosome, sequence FROM snp, snp_file_snp WHERE snp_file_snp.snpList_snpId = snp.snpId AND snp_file_snp.snp_file_snp_file_id = '#{file_id}' AND snp.process = 1;"
|
43
43
|
ret = 0
|
44
44
|
puts query
|
45
45
|
if block_given?
|
@@ -77,7 +77,8 @@ class Bio::DB::Polymarker
|
|
77
77
|
pst.execute new_status, snp_file_id
|
78
78
|
con.commit
|
79
79
|
begin
|
80
|
-
|
80
|
+
hashed_id = "#{snp_file_id}:#{snp_file['hash']}"
|
81
|
+
send_email(snp_file['email'],hashed_id, new_status)
|
81
82
|
rescue
|
82
83
|
puts "Error sending email."
|
83
84
|
end
|
@@ -95,7 +96,6 @@ The current status of your request (#{id}) is #{status}
|
|
95
96
|
The latest status and results (when done) are available in: #{options['web_domain']}/status?id=#{id}
|
96
97
|
|
97
98
|
|
98
|
-
#{opts[:body]}
|
99
99
|
END_OF_MESSAGE
|
100
100
|
smtp = Net::SMTP.new options["email_server"], 587
|
101
101
|
smtp.enable_starttls
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bio-polymarker_db_batch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ricardo H. Ramirez-Gonzalez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bio-polyploid-tools
|