Skip to content

Conversation

@TimothyStiles
Copy link
Collaborator

@TimothyStiles TimothyStiles commented Dec 1, 2023

Changes in this PR

fixed bug that produced wrong overhangs in linear, non-directional, single cut reactions.

Why are you making these changes?

There was a bug in CutWithEnzyme where in the case of linear, non-directional, single cut reactions, it would assume that the overhangs were produced by a forward facing cut site and return a sequence downstream. In the case of the cut being a reverse cut site it would return the wrong overhangs. This was fixed with a simple if-else

Are any changes breaking? (IMPORTANT)

There are no breaking changes.

Pre-merge checklist

All of these must be satisfied before this PR is considered
ready for merging. Mergeable PRs will be prioritized for review.

  • New/changed functionality is thoroughly tested.
  • New/changed functionality has a function giving an example of its usage in the associated test file. See primers/primers_test.go for what this might look like.
  • Changes are documented in CHANGELOG.md in the [Unreleased] section.
  • All code is properly formatted and linted.
  • The PR template is filled out.

var overhangSequence string

if len(forwardOverhangs) > 0 {
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Koeng101 should similar logic be implemented elsewhere in this function?

@TimothyStiles TimothyStiles merged commit d0f6ab3 into main Dec 1, 2023
@delete-merged-branch delete-merged-branch bot deleted the CutWithEnzyme-Regression branch December 1, 2023 04:56
@Koeng101
Copy link
Contributor

Koeng101 commented Dec 6, 2023

@TimothyStiles Why did you nuke the changelog in d0f6ab3?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants