Class: Bio::TwoBit::ReferenceGenome
- Inherits:
-
Bio::TwoBit
- Object
- Bio::TwoBit
- Bio::TwoBit::ReferenceGenome
- Defined in:
- lib/bio/twobit/reference_genome.rb
Constant Summary
Constants inherited from Bio::TwoBit
Instance Attribute Summary
Attributes inherited from Bio::TwoBit
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(**kwargs) ⇒ ReferenceGenome
constructor
A new instance of ReferenceGenome.
Methods inherited from Bio::TwoBit
#bases, #chroms, #clear_cache!, #close, #closed?, const_missing, #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
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 |