rbbt-sources 3.2.13 → 3.2.14

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 +6 -3
  3. metadata +12 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10addbc1c9530276a6af29fe2926ed8ac6eff0fb068f717c1092d31b7dac532e
4
- data.tar.gz: b3e9c79df78aaf15976f19c8e151c712ea99c1edbc7fae49421e61aa4051b645
3
+ metadata.gz: 476a20bf7be9718acce0355dccc7f88105e168247348de1895491bbf7189b7d2
4
+ data.tar.gz: a434af060363f85fe565f9f394aa0a64acae7bf58bf98859159536c59be51a11
5
5
  SHA512:
6
- metadata.gz: e4b950bff0261074c04e738f7d852ee713e58419358a7a0cfd79de1b6b5254c8a40f7df3107f8e964feca7ae83889efd90db9823d98f611b14426f8ee18208af
7
- data.tar.gz: 8d8db4d53f2b14d7a64e206c6625544b0ee21033e06781b02587297fb96f25c54c0f52e16abacbb1b1e1c3a27bb27d7e5f13189df8e7c8f17c20f0485554cee1
6
+ metadata.gz: e9f09c7a4514edaf3aabd89a5980d6be18d4761d72676da8be74625617f330b36816f66054fc6af5913ed9d94f6427391dec951307be23a2846225e1c840a813
7
+ data.tar.gz: 4b07413c9c8e8c6dd64180a1cdbb86407f81b86db8b14c63ff330a17d766b5604014f34dd3346bc6062029dd3c1dd4c1a2bdcaabb3b8cfa96434ba0170da32d6
@@ -72,10 +72,14 @@ 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
76
  nil
77
77
  end
78
78
 
79
+ CMD.tool :liftOver, Rbbt.software.opt.bin.liftOver
80
+
81
+ Rbbt.set_software_env
82
+
79
83
  def self.hg_build(organism)
80
84
  require 'rbbt/sources/ensembl_ftp'
81
85
  organism = organism.strip
@@ -176,8 +180,7 @@ module Organism
176
180
 
177
181
  Open.write(map_file, Open.read(map_url))
178
182
  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
183
+ CMD.cmd_log(:liftOver, "'#{source_bed}' '#{map_file}' '#{target_bed}' '#{unmapped_file}'")
181
184
  Open.read(target_bed) do |line|
182
185
  chr, position_alt, position, name = line.chomp.split("\t")
183
186
  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.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miguel Vazquez
@@ -178,24 +178,24 @@ required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  - !ruby/object:Gem::Version
179
179
  version: '0'
180
180
  requirements: []
181
- rubygems_version: 3.4.8
181
+ rubygems_version: 3.3.26
182
182
  signing_key:
183
183
  specification_version: 4
184
184
  summary: Data sources for the Ruby Bioinformatics Toolkit (rbbt)
185
185
  test_files:
186
+ - test/rbbt/sources/test_HPRD.rb
187
+ - test/rbbt/sources/test_biomart.rb
188
+ - test/rbbt/sources/test_entrez.rb
186
189
  - test/rbbt/sources/test_go.rb
187
- - test/rbbt/sources/test_pubmed.rb
188
- - test/rbbt/sources/test_pina.rb
189
- - test/rbbt/sources/test_pharmagkb.rb
190
+ - test/rbbt/sources/test_gscholar.rb
191
+ - test/rbbt/sources/test_kegg.rb
192
+ - test/rbbt/sources/test_matador.rb
190
193
  - test/rbbt/sources/test_organism.rb
191
- - test/rbbt/sources/test_synapse.rb
192
- - test/rbbt/sources/test_entrez.rb
194
+ - test/rbbt/sources/test_pharmagkb.rb
195
+ - test/rbbt/sources/test_pina.rb
196
+ - test/rbbt/sources/test_pubmed.rb
193
197
  - test/rbbt/sources/test_stitch.rb
194
- - test/rbbt/sources/test_biomart.rb
195
- - test/rbbt/sources/test_HPRD.rb
196
198
  - test/rbbt/sources/test_string.rb
197
- - test/rbbt/sources/test_kegg.rb
199
+ - test/rbbt/sources/test_synapse.rb
198
200
  - test/rbbt/sources/test_tfacts.rb
199
- - test/rbbt/sources/test_matador.rb
200
- - test/rbbt/sources/test_gscholar.rb
201
201
  - test/test_helper.rb