Method: HTS::Faidx#initialize
- Defined in:
- lib/hts/faidx.rb
#initialize(file_name) ⇒ Faidx
Returns a new instance of Faidx.
21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/hts/faidx.rb', line 21 def initialize(file_name) if block_given? = "HTS::Faidx.new() dose not take block; Please use HTS::Faidx.open() instead" raise end @file_name = file_name @fai = LibHTS.fai_load(@file_name) raise Errno::ENOENT, "Failed to open #{@file_name}" if @fai.null? end |