rbbt-sources 3.2.13 → 3.2.15

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/rbbt/sources/organism.rb +7 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10addbc1c9530276a6af29fe2926ed8ac6eff0fb068f717c1092d31b7dac532e
4
- data.tar.gz: b3e9c79df78aaf15976f19c8e151c712ea99c1edbc7fae49421e61aa4051b645
3
+ metadata.gz: df44bcf0d03a785f8aa9b36b123491ed49187f710e70a346b645f257701a0ac2
4
+ data.tar.gz: feef523710ea56093cdf4ff2df36d28f57a426a906e13ce3edbe6f71f7272452
5
5
  SHA512:
6
- metadata.gz: e4b950bff0261074c04e738f7d852ee713e58419358a7a0cfd79de1b6b5254c8a40f7df3107f8e964feca7ae83889efd90db9823d98f611b14426f8ee18208af
7
- data.tar.gz: 8d8db4d53f2b14d7a64e206c6625544b0ee21033e06781b02587297fb96f25c54c0f52e16abacbb1b1e1c3a27bb27d7e5f13189df8e7c8f17c20f0485554cee1
6
+ metadata.gz: 3766aa7ce01f4ad44b7f759faa7b2790d4cdd3808a546978a06312f95662aa1ba6dc8d916c8b29d3d8f10699adc21cb80e55a496a2d8c9ec5a39191cdcd415d0
7
+ data.tar.gz: 4882abf0ac721753c7f31e2f85d66e3f537c6b28b4cb62337b76031d1109a89c1cfb7c6409c535a3f49990c6ce4b32a76c476da6c7736361480ea423d0b0a1c9
@@ -72,10 +72,15 @@ module Organism
72
72
  Open.mkdir File.dirname(file) unless File.directory?(file)
73
73
  url = "http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/liftOver"
74
74
  CMD.cmd_log("wget '#{url}' -O '#{file}'")
75
- CMD.cmd("chmod 755 '#{file}'")
75
+ CMD.cmd("chmod 0755 '#{file}'")
76
+ Rbbt.set_software_env
76
77
  nil
77
78
  end
78
79
 
80
+ CMD.tool :liftOver, Rbbt.software.opt.bin.liftOver
81
+
82
+ Rbbt.set_software_env
83
+
79
84
  def self.hg_build(organism)
80
85
  require 'rbbt/sources/ensembl_ftp'
81
86
  organism = organism.strip
@@ -176,8 +181,7 @@ module Organism
176
181
 
177
182
  Open.write(map_file, Open.read(map_url))
178
183
  new_mutations = TmpFile.with_file do |target_bed|
179
- FileUtils.chmod(755, Rbbt.software.opt.bin.liftOver.produce.find)
180
- CMD.cmd("#{Rbbt.software.opt.bin.liftOver.find} '#{source_bed}' '#{map_file}' '#{target_bed}' '#{unmapped_file}'").read
184
+ CMD.cmd_log(:liftOver, "'#{source_bed}' '#{map_file}' '#{target_bed}' '#{unmapped_file}'")
181
185
  Open.read(target_bed) do |line|
182
186
  chr, position_alt, position, name = line.chomp.split("\t")
183
187
  chr.sub! /chr/, ''
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbbt-sources
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.13
4
+ version: 3.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez