@@ -33,7 +33,10 @@ def will_clip_in_this_order_with(self, other):
3333 )
3434
3535 def circularized (
36- self , annotate_homology = False , annotation_type = "homology" , qualifiers = None ,
36+ self ,
37+ annotate_homology = False ,
38+ annotation_type = "homology" ,
39+ qualifiers = None ,
3740 ):
3841 """Return the Biopython record obtained by cirularizing the result.
3942
@@ -61,7 +64,10 @@ def annotate_connector(self, connector, annotation_type="homology"):
6164 else :
6265 label = str (connector .seq )
6366 feature = self .create_homology_annotation (
64- start = 0 , end = len (connector ), annotation_type = annotation_type , label = label ,
67+ start = 0 ,
68+ end = len (connector ),
69+ annotation_type = annotation_type ,
70+ label = label ,
6571 )
6672 connector .features = [feature ]
6773
@@ -139,7 +145,7 @@ def list_from_record_digestion(record, enzyme, linear="auto"):
139145 )
140146 record_fragments = []
141147 for fragment in fragments :
142- index = record .seq .find (fragment )
148+ index = record .seq .upper (). find (fragment )
143149 if index == - 1 :
144150 continue
145151
@@ -167,8 +173,7 @@ def to_standard_string(self):
167173 return "%s%s%s" % (self .seq .left_end , self .seq , self .seq .right_end )
168174
169175 def text_representation_in_plots (self ):
170- """Plot a fragment as left//PART_NAME//right (where // is a new line)
171- """
176+ """Plot a fragment as left//PART_NAME//right (where // is a new line)"""
172177 lines = [
173178 str (self .seq .left_end ),
174179 r"$\bf{%s}$" % self .original_part .id ,
0 commit comments