lib/neurohmmerapp.rb in neurohmmerapp-0.0.6 vs lib/neurohmmerapp.rb in neurohmmerapp-0.0.7
- old
+ new
@@ -34,12 +34,10 @@
def init(config = {})
@config = Config.new(config)
init_binaries
init_dirs
-
- load_extension
check_num_threads
check_max_characters
self
end
@@ -105,20 +103,9 @@
def init_binaries
config[:bin] = init_bins if config[:bin]
assert_blast_installed_and_compatible
assert_mafft_installed
- end
-
- def load_extension
- return unless config[:require]
- config[:require] = File.expand_path config[:require]
- unless File.exist?(config[:require]) && File.file?(config[:require])
- fail EXTENSION_FILE_NOT_FOUND, config[:require]
- end
-
- logger.debug("Loading extension: #{config[:require]}")
- require config[:require]
end
def check_num_threads
num_threads = Integer(config[:num_threads])
fail NUM_THREADS_INCORRECT unless num_threads > 0