Method: Matrix#to_barcode
- Defined in:
- lib/rbbt/matrix.rb
#to_barcode(factor = 2) ⇒ Object
165 166 167 168 169 170 171 172 173 174 175 |
# File 'lib/rbbt/matrix.rb', line 165 def (factor = 2) name = data_file =~ /:>/ ? File.basename(data_file) : data_file file = Persist.persist(data_file, :tsv, :prefix => "Barcode R #{factor}", :dir => Matrix.matrix_dir., :no_load => true) do |filename| (filename, factor) end subsets = self.subsets matrix = Matrix.new file, labels, value_type, "Ensembl Gene ID", organism matrix.subsets = subsets matrix end |