Module: Api::Messages::FlowcellIO::ControlLaneExtensions

Included in:
ControlRequest
Defined in:
app/models/api/messages/flowcell_io.rb

Overview

rubocop:todo Style/Documentation

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object


112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
# File 'app/models/api/messages/flowcell_io.rb', line 112

def self.included(base)
  base.class_eval do
    def mx_library
      asset.external_identifier || 'UNKNOWN'
    end

    def manual_qc
      MANUAL_QC_BOOLS[target_asset.try(:qc_state)]
    end

    def lane_samples
      []
    end

    def product_line
      nil
    end

    def spiked_in_buffer
      false
    end

    def spiked_phix_barcode
      nil
    end

    def spiked_phix_percentage
      nil
    end

    def loading_concentration
      nil
    end

    def workflow
      nil
    end

    def external_release
      false
    end

    def controls
      asset.aliquots
    end

    def lane_identifier
      'control_lane'
    end
  end
end