Previous topic

bioa.algorithms.reconstruction.min_forest_fork_resolution

Next topic

bioa.algorithms.reconstruction.min_unsplittable_flows_resolution

This Page

bioa.algorithms.reconstruction.least_squares_fork_balance

least_squares_fork_balance(graph, weighted=False)[source]

Balance all forks in the graph by a least squares approach.

Parameters :

graph : DecliquedAmpliconReadGraph

Amplicon read graph with fork vertices added.

weighted : bool (optional, default=False)

Whether or not to calculate weighted least squares or ordinary least squares.

Returns :

balanced_graph : DecliquedAmpliconReadGraph

Amplicon read graph with all forks balanced.

Notes

This function requires cplex to be installed in order to work. http://cplex.com