protk 1.1.11 → 1.1.12
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.
- data/lib/protk/constants.rb +11 -0
- data/lib/protk/setup_rakefile.rake +2 -2
- metadata +1 -1
data/lib/protk/constants.rb
CHANGED
@@ -232,6 +232,16 @@ class Constants
|
|
232
232
|
else
|
233
233
|
@env=default_config_yml
|
234
234
|
end
|
235
|
+
|
236
|
+
protk_roots = ["tpp","omssa","blast","pwiz","msgfplus","openms"]
|
237
|
+
|
238
|
+
protk_roots.each do |r|
|
239
|
+
env_value = ENV["PROTK_#{r.upcase}_ROOT"]
|
240
|
+
if ( env_value!=nil)
|
241
|
+
p "Using #{r} root #{env_value}"
|
242
|
+
@env["#{r}_root"]=env_value
|
243
|
+
end
|
244
|
+
end
|
235
245
|
|
236
246
|
throw "No data found in config file" unless @env!=nil
|
237
247
|
@info_level=default_config_yml['message_level']
|
@@ -240,6 +250,7 @@ class Constants
|
|
240
250
|
|
241
251
|
end
|
242
252
|
|
253
|
+
|
243
254
|
def update_user_config(dict)
|
244
255
|
user_config_yml = YAML.load_file "#{self.protk_dir}/config.yml" if File.exist? "#{self.protk_dir}/config.yml"
|
245
256
|
|
@@ -274,7 +274,7 @@ def platform_bunzip
|
|
274
274
|
'bunzip2'
|
275
275
|
end
|
276
276
|
|
277
|
-
pwiz_version="
|
277
|
+
pwiz_version="3_0_4388"
|
278
278
|
pwiz_packagefile="pwiz-bin-#{pwiz_platform}-release-#{pwiz_version}.tar.bz2"
|
279
279
|
pwiz_url="https://dl.dropbox.com/u/226794/#{pwiz_packagefile}"
|
280
280
|
pwiz_installed_file="#{env.idconvert}"
|
@@ -286,7 +286,7 @@ file pwiz_installed_file => [@build_dir,"#{@download_dir}/#{pwiz_packagefile}"]
|
|
286
286
|
sh %{cd #{@build_dir}; #{platform_bunzip} -f #{pwiz_packagefile}}
|
287
287
|
sh %{cd #{@build_dir}; tar -xvf #{pwiz_packagefile.chomp('.bz2')}}
|
288
288
|
sh %{mkdir -p #{env.pwiz_root}}
|
289
|
-
sh %{cd #{@build_dir}; cp idconvert msconvert #{env.pwiz_root}/}
|
289
|
+
sh %{cd #{@build_dir}; cp chainsaw idconvert msaccess mscat msdiff msistats peakaboo pepsum txt2mzml idcat msbenchmark msconvert msdir mspicture pepcat sldout unimod_2.xsd license #{env.pwiz_root}/}
|
290
290
|
end
|
291
291
|
|
292
292
|
task :pwiz => pwiz_installed_file
|