protk 1.1.5 → 1.1.7
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 +5 -0
- data/lib/protk/manage_db_rakefile.rake +2 -1
- data/lib/protk/setup_rakefile.rake +6 -3
- metadata +1 -1
data/lib/protk/constants.rb
CHANGED
@@ -216,6 +216,11 @@ class Constants
|
|
216
216
|
|
217
217
|
@protk_dir="#{Dir.home}/.protk"
|
218
218
|
|
219
|
+
if ( ENV['PROTK_INSTALL_DIR']!=nil )
|
220
|
+
p "Using protk install dir from shell"
|
221
|
+
@protk_dir=ENV['PROTK_INSTALL_DIR']
|
222
|
+
end
|
223
|
+
|
219
224
|
|
220
225
|
default_config_yml = YAML.load_file "#{File.dirname(__FILE__)}/data/default_config.yml"
|
221
226
|
throw "Unable to read the config file at #{File.dirname(__FILE__)}/data/default_config.yml" unless default_config_yml!=nil
|
@@ -445,8 +445,9 @@ end
|
|
445
445
|
# Indexing #
|
446
446
|
###################
|
447
447
|
if dbspec[:make_blast_index]
|
448
|
-
blast_index_files=FileList.new([".phr"].collect {|ext| "#{db_filename}#{ext}" })
|
448
|
+
# blast_index_files=FileList.new([".phr"].collect {|ext| "#{db_filename}#{ext}" })
|
449
449
|
# task :make_blast_index => blast_index_files do
|
450
|
+
blast_index_files=["#{db_filename}.phr"]
|
450
451
|
blast_index_files.each do |indfile|
|
451
452
|
file indfile => db_filename do
|
452
453
|
cmd="cd #{dbdir}; #{$genv.makeblastdb} -in #{db_filename} -parse_seqids -dbtype prot"
|
@@ -101,7 +101,7 @@ file perl_locallib_installed_file => [@build_dir,"#{@download_dir}/#{perl_local
|
|
101
101
|
sh %{cp #{@download_dir}/#{perl_locallib_packagefile} #{@build_dir}}
|
102
102
|
perl_dir = "#{env.protk_dir}/perl5"
|
103
103
|
|
104
|
-
sh %{cd #{@build_dir}; gunzip local-lib-#{perl_locallib_version}.tar.gz }
|
104
|
+
sh %{cd #{@build_dir}; gunzip -f local-lib-#{perl_locallib_version}.tar.gz }
|
105
105
|
sh %{cd #{@build_dir}; tar -xf local-lib-#{perl_locallib_version}.tar }
|
106
106
|
sh "cd #{@build_dir}/local-lib-#{perl_locallib_version}; perl Makefile.PL --bootstrap=#{perl_dir}; make install" do |ok,res|
|
107
107
|
# clean_build_dir if ok
|
@@ -330,8 +330,11 @@ file protk_galaxy_envfile do
|
|
330
330
|
sh %{cp #{this_dir}/data/galaxyenv.sh #{protk_galaxy_envfile}}
|
331
331
|
end
|
332
332
|
|
333
|
-
task :
|
333
|
+
task :galaxyenv => protk_galaxy_envfile
|
334
334
|
|
335
|
-
task :all => [:tpp,:omssa,:blast,:msgfplus,:pwiz,:openms,:
|
335
|
+
task :all => [:tpp,:omssa,:blast,:msgfplus,:pwiz,:openms,:galaxyenv]
|
336
336
|
|
337
|
+
# Special task when installing via toolshed
|
338
|
+
#
|
339
|
+
task :galaxy => [:tpp,:omssa,:blast,:pwiz,:galaxyenv]
|
337
340
|
|