Method: Matrix#to_barcode_ruby

Defined in:
lib/rbbt/matrix.rb

#to_barcode_ruby(factor = 2) ⇒ Object



153
154
155
156
157
158
159
160
161
162
163
# File 'lib/rbbt/matrix.rb', line 153

def to_barcode_ruby(factor = 2)
  name = data_file =~ /:>/ ? File.basename(data_file) : data_file

  file = Persist.persist(data_file, :tsv, :prefix => "Barcode #{factor}", :dir => Matrix.matrix_dir.barcode, :no_load => true) do |filename|
    barcode_ruby(filename, factor)
  end
  subsets = self.subsets
  matrix = Matrix.new file, labels, value_type, "Ensembl Gene ID", organism
  matrix.subsets = subsets
  matrix
end