Class: Bio::BaseSpace::CoverageMetadata

Inherits:
Model
  • Object
show all
Defined in:
lib/basespace/model/coverage_metadata.rb

Overview

Models coverage metadata.

Instance Attribute Summary

Attributes inherited from Model

#attributes, #swagger_types

Instance Method Summary collapse

Methods inherited from Model

#get_attr, #method_missing, #set_attr

Constructor Details

#initializeCoverageMetadata

Create a new CoeverageMetadata instance.



23
24
25
26
27
28
29
30
31
32
# File 'lib/basespace/model/coverage_metadata.rb', line 23

def initialize
  @swagger_types = {
    'MaxCoverage'          => 'int',
    'CoverageGranularity'  => 'int',
  }
  @attributes = {
    'MaxCoverage'          => nil, # int Maximum coverage value of any base, on a per-base level, for the entire chromosome. Useful for scaling
    'CoverageGranularity'  => nil, # int Supported granularity of queries
  }
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Bio::BaseSpace::Model

Instance Method Details

#to_sObject

Return a string denoting the maximum coverage and coverage granularity.



35
36
37
# File 'lib/basespace/model/coverage_metadata.rb', line 35

def to_s
  return "CoverageMeta: max=#{get_attr('MaxCoverage')} gran=#{get_attr('CoverageGranularity')}"
end