Hi @BjornFJohansson I think this should be the expected behaviour (strand = None same as strand = +1). See the example below, for a feature that wraps around the origin in a molecule of length 12:
from pydna.utils import shift_location
from Bio.SeqFeature import SimpleLocation
for strand in [None, 1, -1]:
print('strand:', strand)
print(shift_location(SimpleLocation(10, 14, strand), 0, 12))
print()
Hi @BjornFJohansson I think this should be the expected behaviour (
strand = None
same asstrand = +1
). See the example below, for a feature that wraps around the origin in a molecule of length 12:Output is:
I think for
strand == None
it should bejoin{[10:12], [0:2]}
which more clearly shows the origin-wrapping nature of the feature.The tests that fail are the same ones as before the change, so I don't think this breaks anything in the tests