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.
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.