Class: Bio::TwoBit::ReferenceGenome

Inherits:
Bio::TwoBit show all
Defined in:
lib/bio/twobit/reference_genome.rb

Constant Summary

Constants inherited from Bio::TwoBit

VERSION

Instance Attribute Summary

Attributes inherited from Bio::TwoBit

#metadata

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Bio::TwoBit

#bases, #chroms, #clear_cache!, #close, #closed?, #hard_masked_blocks, #info, #masked?, #path, #sequence, #soft_masked_blocks

Constructor Details

#initialize(**kwargs) ⇒ ReferenceGenome

Returns a new instance of ReferenceGenome.



10
11
12
13
# File 'lib/bio/twobit/reference_genome.rb', line 10

def initialize(**kwargs)
  @local_name ||= File.basename(@data_url)
  super(prepare_data, **kwargs)
end

Class Method Details

.open(*args, **kwargs, &block) ⇒ Object

Raises:

  • (ArgumentError)


4
5
6
7
8
# File 'lib/bio/twobit/reference_genome.rb', line 4

def self.open(*args, **kwargs, &block)
  raise ArgumentError, "#{self}#open() does not accept arguments" if args.any?

  super(**kwargs, &block)
end