features spanning origin

11 views
Skip to first unread message

Mark Budde

unread,
Aug 12, 2017, 11:46:58 AM8/12/17
to pydna
There is a bug when features spanning the origin (which have end before they begin) are digest and religated. This creates a duplicate feature which encompasses most of the plasmid. The bug stems from Dseqrecord._multiply_circular. It can be fixed by adding this line 

        if new_feature.location.end < new_feature.location.start:
            new_feature.location = FeatureLocation(new_feature.location.start, new_feature.location.end + len(self))

prior to this line:
        new_features.append(new_feature)

I'm not sure how this would work with compound features, but it fixes the bug for normal features.
-Mark

Björn Johansson

unread,
Jan 17, 2018, 11:17:56 AM1/17/18
to pydna
Was this fixed for you? I am working on a new release where I try to get complete test coverage.
I am working to improve how Dseqs and Dseqrecords are digested by restriction enzymes and how features are handled.
Reply all
Reply to author
Forward
0 new messages