Previous topic

bioa.algorithms.reconstruction.amplicon_frequency_matrix_strategy_from_graph

Next topic

Input/Ouput

This Page

bioa.algorithms.reconstruction.update_freq_matrix_from_lp_output

update_freq_matrix_from_lp_output(freq_matrix, filename, rounding=False)[source]

Updates the frequency matrix from the output of a balancing scheme.

Parameters :

read_matrix : Numpy matrix

Numpy matrix or list of lists of actual reads for each amplicon. This will be used to construct the frequency matrix.

filename : str

Path to the file that contains the least squares output from a solver.

rounding : bool (optional, default=False)

Whether or not to round the results for each read frequency.

Returns :

updated_frequency_matrix : Numpy matrix

The frequency matrix with updated counts.

Notes

This should be deprecated in order to use to use a newer direct solver based approach.