class Bio::BaseSpace::Coverage
Representation of coverage.
Public Class Methods
new()
click to toggle source
Create a new Coverage
instance.
# 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
Public Instance Methods
to_s()
click to toggle source
Return the genomic position and bucket size of the object.
# 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