Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for size of preserved region fixed to reflect 1 AA instead of 2 #6

Merged
merged 1 commit into from
Jun 14, 2024

Conversation

EvanKomp
Copy link

Line 71 asserts that the difference in start to end is greater than 1, but line 187, which applies the mask at sample time, apples end inclusively. Thus if the user wants to preserve a single amino acid at pos, they would need to pass [ pos, pos] which is caught by the assert.

Changed the check to be < 0 to allow for single amino acid preserved regions.

Copy link
Collaborator

@pemami4911 pemami4911 left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! Looks good to me.

@pemami4911 pemami4911 merged commit fb37d54 into NREL:main Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants