libraries/HighThroughputHelper.rb
def vstack_matrix_array(matrix_arr:)
    stacked_mat = nil
    matrix_arr.each {|m| stacked_mat.nil? ? stacked_mat = m : stacked_mat = stacked_mat.vstack(m) }
    return stacked_mat
  end
# Stack each matrix in the array vertically to fill matricies columwise. 
# For example, if you have a list of A, B, C replicates then, A would go into A1, B would go to B1, and C would go to C1.
# Furthermore, the next set of triplicates D would go to A2, E would go to B2, and F would go to C2. However, replicates will not
# be broken up, so a new stacked matrix will be created, which means a new collection will be used to avoid breaking up reps.
Stack each matrix in the array vertically to fill matricies columwise.
For example, if you have a list of A, B, C replicates then, A would go into A1, B would go to B1, and C would go to C1.
Furthermore, the next set of triplicates D would go to A2, E would go to B2, and F would go to C2. However, replicates will not
be broken up, so a new stacked matrix will be created, which means a new collection will be used to avoid breaking up reps.
Stack each matrix in the array vertically to fill matricies columwise . For example if you have a list of A B C replicates then A would go into A1 B would go to B1 and C would go to C1 . Furthermore the next set of triplicates D would go to A2 E would go to B2 and F would go to C2 . However replicates will not be broken up so a new stacked matrix will be created which means a new collection will be used to avoid breaking up reps .
def vstack_matrix_array(matrix_arr:)
    stacked_mat = nil
    matrix_arr.each {|m| stacked_mat.nil? ? stacked_mat = m : stacked_mat = stacked_mat.vstack(m) }
    return stacked_mat
  end
def vstack_matrix_array ( matrix_arr : ) stacked_mat = nil matrix_arr . each { | m | stacked_mat . nil? ? stacked_mat = m : stacked_mat = stacked_mat . vstack ( m ) } return stacked_mat end
Stack each matrix in the array vertically to fill matricies columwise.
Stack each matrix in the array vertically to fill matricies columwise .
matrix_arr