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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 49567d185fa2c730ba7a3a37eec9ab4ef675f655
4
- data.tar.gz: 1e36fdf1efa937f926624d850b96305c38b65151
3
+ metadata.gz: d0b4182b10716102b7e6393887c19618109dbe62
4
+ data.tar.gz: 2977d73203d236aa0e0596bf0767a027e444e379
5
5
  SHA512:
6
- metadata.gz: 56ee237742544b69ed0b8149098e68d1557e002997291646a7898b168ea46df757c73fdf66929dfbacb8d84b0ef0599c7c24ba9acd858903319dfd451984fcc3
7
- data.tar.gz: 5b7b9e537e0c54f421c47ffb88d2106366ee2f51582ced6ff8b6ef5f74e6520a5dddb54b8b0e75cf773eec7f34ffcb9d967611252fc6320faaf3cd47beb64235
6
+ metadata.gz: 6c9156c8f5fc9269d378841db34dc7e3eb22514be76f66ec1746c69d134a258c928614335bad1e6c282624fa0a4e250bac0fa71261a8aa01ec7508fdfbd6d754
7
+ data.tar.gz: abea750bd179b42e57496703610b52e47b442fab7a594975568c45a0fb9ec4ecb5318b92096fc49851719e4071d4e4e6c38fbd2f2d94fb546cc2b97a4ceb897d
data/lib/cagnut_snpeff.rb CHANGED
@@ -12,5 +12,6 @@ module CagnutSnpeff
12
12
  end
13
13
 
14
14
  require 'cagnut_snpeff/configuration'
15
+ require 'cagnut_snpeff/check_tools'
15
16
  require 'cagnut_snpeff/base'
16
17
  require 'cagnut_snpeff/util'
@@ -1,30 +1,30 @@
1
1
  module CagnutSnpeff
2
2
  module CheckTools
3
- def check_tool tools_path, ref=nil
3
+ def check_tool tools_path, refs=nil
4
4
  super if defined?(super)
5
- check_snpeff tools['snpeff'], refs['snpeff']['db'], refs['snpeff']['config'] if @java
5
+ check_snpeff tools_path['snpeff'], refs['snpeff']['db'], refs['snpeff']['config'] if @java
6
6
  end
7
7
 
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
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
- 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
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
- 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"
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
- CagnutSnpeff.config::Checks::Tools.prepend CagnutSnpeff::CheckTools
30
+ Cagnut::Configuration::Checks::Tools.prepend CagnutSnpeff::CheckTools
@@ -1,3 +1,3 @@
1
1
  module CagnutSnpeff
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-01 00:00:00.000000000 Z
12
+ date: 2016-11-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cagnut_core