Method: Core::Parser.parse_CSV

Defined in:
lib/bio-band/core/parser/parser.rb

.parse_CSV(csv_file) ⇒ Object

Parse an CSV file and create an Instances object



18
19
20
21
22
23
24
25
# File 'lib/bio-band/core/parser/parser.rb', line 18

def Parser.parse_CSV(csv_file) 
  java_import 'java.io.File'
  loader = CSVLoader.new
  file = File.new csv_file 
  loader.setSource(file)
  data_instance = loader.getDataSet
  return data_instance
end