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.
- checksums.yaml +4 -4
- data/lib/rbbt/sources/organism.rb +7 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df44bcf0d03a785f8aa9b36b123491ed49187f710e70a346b645f257701a0ac2
|
4
|
+
data.tar.gz: feef523710ea56093cdf4ff2df36d28f57a426a906e13ce3edbe6f71f7272452
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
-
|
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/, ''
|