libraries/HighThroughputHelper.rb
# Generate a matrix of alpha numeric coordinates for a 96 well plate
Generate a matrix of alpha numeric coordinates for a 96 well plate
Generate a matrix of alpha numeric coordinates for a 96 well plate
def alpha_coordinates_96
    abc = ('A'..'H').to_a
    empty_matrix = Array.new(8) { Array.new(12) { EMPTY } }
    alpha_numeric_matrix = empty_matrix.each_with_index.map do |row, r_i|
      row.each_with_index.map do |col, c_i|
        "#{abc[r_i]}#{c_i+1}"
      end
    end
    return alpha_numeric_matrix
  end
def alpha_coordinates_96 abc = ( 'A' .. 'H' ) . to_a empty_matrix = Array . new ( 8 ) { Array . new ( 12 ) { EMPTY } } alpha_numeric_matrix = empty_matrix . each_with_index . map do | row , r_i | row . each_with_index . map do | col , c_i | "#{abc[r_i]}#{c_i+1}" end end return alpha_numeric_matrix end
Generate a matrix of alpha numeric coordinates for a 96 well plate
Generate a matrix of alpha numeric coordinates for a 96 well plate