Method: Bio::Meme::Mast#initialize
- Defined in:
- lib/bio/appl/meme/mast.rb
#initialize(mast_location, options = {}) ⇒ Mast
Create a mast instance
m = Mast.new('/usr/local/bin/mast')
Arguments:
-
(required) mast_location: String
- Raises
-
ArgumentError if mast program is not found
- Returns
-
a Bio::Meme::Mast object
96 97 98 99 100 101 102 |
# File 'lib/bio/appl/meme/mast.rb', line 96 def initialize(mast_location, = {}) unless File.exist?(mast_location) raise ArgumentError.new("mast: command not found : #{mast_location}") end @binary = mast_location .empty? ? config(DEFAULT_OPTIONS) : config() end |