cagnut_snpeff 0.3.0 → 0.3.1
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/lib/cagnut_snpeff.rb +1 -0
- data/lib/cagnut_snpeff/check_tools.rb +19 -19
- data/lib/cagnut_snpeff/version.rb +1 -1
- 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: d0b4182b10716102b7e6393887c19618109dbe62
|
4
|
+
data.tar.gz: 2977d73203d236aa0e0596bf0767a027e444e379
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c9156c8f5fc9269d378841db34dc7e3eb22514be76f66ec1746c69d134a258c928614335bad1e6c282624fa0a4e250bac0fa71261a8aa01ec7508fdfbd6d754
|
7
|
+
data.tar.gz: abea750bd179b42e57496703610b52e47b442fab7a594975568c45a0fb9ec4ecb5318b92096fc49851719e4071d4e4e6c38fbd2f2d94fb546cc2b97a4ceb897d
|
data/lib/cagnut_snpeff.rb
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
module CagnutSnpeff
|
2
2
|
module CheckTools
|
3
|
-
def check_tool tools_path,
|
3
|
+
def check_tool tools_path, refs=nil
|
4
4
|
super if defined?(super)
|
5
|
-
check_snpeff
|
5
|
+
check_snpeff tools_path['snpeff'], refs['snpeff']['db'], refs['snpeff']['config'] if @java
|
6
6
|
end
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
8
|
+
def check_snpeff path, db_version, config_path
|
9
|
+
check_tool_ver 'snpEff' do
|
10
|
+
`#{@java} -jar #{path} -version 2>&1` if path
|
11
|
+
end
|
12
12
|
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
13
|
+
if db_version.nil?
|
14
|
+
@check_completed = false
|
15
|
+
puts "\tNot Set Snpeff DB in config.yml"
|
16
|
+
else
|
17
|
+
puts "\tSnpeff DB: #{db_version}"
|
18
|
+
end
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
end
|
20
|
+
if config_path
|
21
|
+
path = File.exist?(config_path) ? config_path : 'Not Found' if config_path
|
22
|
+
puts "\tSnpeff config file: #{path}"
|
23
|
+
else
|
24
|
+
puts "\tSnpeff config Not Found"
|
26
25
|
end
|
26
|
+
end
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
-
|
30
|
+
Cagnut::Configuration::Checks::Tools.prepend CagnutSnpeff::CheckTools
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cagnut_snpeff
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shi-Gang Wang
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cagnut_core
|