modified to use bipy.core.sequence.DNA