Class: SegFile

Inherits:
HashTable show all
Includes:
IntervalList
Defined in:
lib/seg.rb

Defined Under Namespace

Classes: Segment

Instance Attribute Summary

Attributes inherited from HashTable

#header, #types

Instance Method Summary collapse

Methods included from IntervalList

#add_interval, #flatten, #interval_set, #nearest, #overlap, #present

Methods inherited from HashTable

#<<, #[], #concat, #each, #formatted_header, header_off, header_on, #idx, #idx_keys, #inspect, line_class, line_type, #output, #preamble, #sample, #select!, #sort_by!, #sum, #update_index, #use_header?, use_header?, #wrap

Methods included from HashTableAux

#load_file

Methods included from Printer

#print, #write

Constructor Details

#initialize(obj = nil, opts = {}) ⇒ SegFile

Returns a new instance of SegFile.



6
7
8
9
10
11
12
# File 'lib/seg.rb', line 6

def initialize obj=nil, opts={}
  opts = opts.merge(:header => { :sample_name => :str, :chromosome => :str,
                                 :start => :int, :stop => :int, 
                                 :num_probes => :int, :segment_mean => :float }, 
                    :skip_header => :true, :idx => :sample_name)
  super obj, opts
end