wwood / finishm

genome improvement and finishing without further sequencing effort
MIT License
5 stars 2 forks source link

Cyclic bubbler #26

Closed timbalam closed 9 years ago

timbalam commented 9 years ago

Improvements to bubble algorithm.

Bubbles with cyclic paths are allowed. If a path with a cycle is found, it is added to bubble known problems and not to queue, preventing it from being re-yielded. Once a bubble converges, the each_path method will yield paths that contain less than a specified number of cycles (but never a cycle through the converged node).

Algorithm forbids cycles in linear mode, and allows bubble cycles through previously seen path nodes.

wwood commented 9 years ago

Hey on the face of it this looks great, but I'm super busy at the moment. I'll merge soon, just wanted to make sure you weren't feeling under-appreciated.

On 6 March 2015 at 00:08, timbalam notifications@github.com wrote:

Improvements to bubble algorithm.

Bubbles with cyclic paths are allowed. If a path with a cycle is found, it is added to bubble known problems and not to queue, preventing it from being re-yielded. Once a bubble converges, the each_path method will yield paths that contain less than a specified number of cycles (but never a cycle through the converged node).

Algorithm forbids cycles in linear mode, and allows bubble cycles through

previously seen path nodes.

You can view, comment on, or merge this pull request online at:

https://github.com/wwood/finishm/pull/26 Commit Summary

  • Minor edits.
  • Started to add circuit resolution.
  • Fixed a couple of bugs.
  • Added new bubble test. Gets weird error,
  • Added new bubble test. Gets weird error,
  • Fixed weird error. New test breaks bubble algorithm.
  • Implemented new convergence algorithm. each_path returns duplicate paths. Attempted fix failed.
  • Found error in new convergence algorithm.
  • New algorithm passes more tests, so is correct!!!
  • each path now should yield all paths once. bubble shorthand returns bubble path shorthands in sorted order instead of yield order.
  • Start to add cycles.
  • Fixing some issues with reference trails.
  • Use reference trail priority for yielding paths using each_path.
  • Updated circuit tests to reflect circular paths can be resolved.

File Changes

Patch Links:

— Reply to this email directly or view it on GitHub https://github.com/wwood/finishm/pull/26.

Ben Woodcroft http://ecogenomic.org/users/ben-woodcroft http://www.ecogenomic.org/

timbalam commented 9 years ago

Totally ok. :)

On 9/03/2015 2:01 PM, Ben J Woodcroft wrote:

Hey on the face of it this looks great, but I'm super busy at the moment. I'll merge soon, just wanted to make sure you weren't feeling under-appreciated.

On 6 March 2015 at 00:08, timbalam notifications@github.com wrote:

Improvements to bubble algorithm.

Bubbles with cyclic paths are allowed. If a path with a cycle is found, it is added to bubble known problems and not to queue, preventing it from being re-yielded. Once a bubble converges, the each_path method will yield paths that contain less than a specified number of cycles (but never a cycle through the converged node).

Algorithm forbids cycles in linear mode, and allows bubble cycles through

previously seen path nodes.

You can view, comment on, or merge this pull request online at:

https://github.com/wwood/finishm/pull/26 Commit Summary

  • Minor edits.
  • Started to add circuit resolution.
  • Fixed a couple of bugs.
  • Added new bubble test. Gets weird error,
  • Added new bubble test. Gets weird error,
  • Fixed weird error. New test breaks bubble algorithm.
  • Implemented new convergence algorithm. each_path returns duplicate paths. Attempted fix failed.
  • Found error in new convergence algorithm.
  • New algorithm passes more tests, so is correct!!!
  • each path now should yield all paths once. bubble shorthand returns bubble path shorthands in sorted order instead of yield order.
  • Start to add cycles.
  • Fixing some issues with reference trails.
  • Use reference trail priority for yielding paths using each_path.
  • Updated circuit tests to reflect circular paths can be resolved.

File Changes

Patch Links:

— Reply to this email directly or view it on GitHub https://github.com/wwood/finishm/pull/26.

Ben Woodcroft http://ecogenomic.org/users/ben-woodcroft http://www.ecogenomic.org/

— Reply to this email directly or view it on GitHub https://github.com/wwood/finishm/pull/26#issuecomment-77797248.

wwood commented 9 years ago

Very cool, I especially like the way you fixed the spelling mistakes e.g. beginnning