Class: FluidigmFile::Finder::Irods

Inherits:
Object
  • Object
show all
Defined in:
app/models/fluidigm_file.rb

Instance Method Summary collapse

Constructor Details

#initialize(barcode) ⇒ Irods


22
23
24
# File 'app/models/fluidigm_file.rb', line 22

def initialize(barcode)
  @data = IrodsReader::DataObj.find('seq', 'dcterms:audience' => configatron.irods_audience, :fluidigm_plate => barcode)
end

Instance Method Details

#content(index = nil) ⇒ Object

Raises:

  • (StandardError)

30
31
32
33
34
# File 'app/models/fluidigm_file.rb', line 30

def content(index = nil)
  raise StandardError, 'Multiple files found' if data.size > 1 && index.nil?

  @data[index || 0].retrive
end

#empty?Boolean


26
27
28
# File 'app/models/fluidigm_file.rb', line 26

def empty?
  @data.empty?
end