Class: Bio::BaseSpace::Coverage

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

Overview

Representation of coverage.

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

#initializeCoverage

Create a new Coverage instance.



23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# File 'lib/basespace/model/coverage.rb', line 23

def initialize
  @swagger_types = {
    'Chrom'         => 'str',
    'BucketSize'    => 'int',
    'MeanCoverage'  => 'list<int>',
    'EndPos'        => 'int',
    'StartPos'      => 'int',
  }
  @attributes = {
    'Chrom'         => nil, # str
    'BucketSize'    => nil, # int Each returned number will represent coverage of this many bases.
    'MeanCoverage'  => nil, # list<Str>
    'EndPos'        => nil, # int End position, possibly adjusted to match zoom boundaries
    'StartPos'      => nil, # int Start position, possibly adjusted to match zoom boundaries
  }
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 the genomic position and bucket size of the object.



41
42
43
# File 'lib/basespace/model/coverage.rb', line 41

def to_s
  return "Chrom #{get_attr('Chrom')}: #{get_attr('StartPos')}-#{get_attr('EndPos')}, BucketSize=#{get_attr('BucketSize')}"
end