Class: PhiXesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/phi_xes_controller.rb

Overview

PhiX is a short DNA fragment of known sequence which gets added into lanes of sequencing to provide a control. PhiX arrives on site in bulk where it is tagged with a fixed i7 tag, or fixed i5 and i7 tags.

This controller handles the rendering of the two forms for creating the LibraryTube and the SpikedBuffer. Actual creation is handled by the respective controllers. PhiX::Stock and PhiX::SpikedBuffer act as factories

Instance Method Summary collapse

Methods inherited from ApplicationController

#block_api_access, #clean_params_from_check, #evil_parameter_hack!, #extract_header_info, #set_cache_disabled!

Instance Method Details

#showObject


18
19
20
21
22
# File 'app/controllers/phi_xes_controller.rb', line 18

def show
  @stock = PhiX::Stock.new(number: 1, tags: PhiX.default_tag_option)
  @spiked_buffer = PhiX::SpikedBuffer.new(number: 1)
  @tag_option_names = PhiX.tag_option_names
end