@@ -17,6 +17,15 @@ def __init__(self, nucleotide, bold, color, underline, large, position, open_tag
17
17
self .open_tag = open_tag
18
18
self .close_tag = close_tag
19
19
20
+ def view (self ):
21
+ print ("Nucleotide: " , self .nucleotide )
22
+ print ("Open Tag: " , self .open_tag )
23
+ print ("Close Tag: " , self .close_tag )
24
+ print ("Bold: " , self .bold )
25
+ print ("Color: " ,self .color )
26
+ print ("Underline: " , self .underline )
27
+ print ("Large: " , self .large )
28
+
20
29
# ---- PARSE ARGUMENTS -------------------------------------------------------
21
30
# Parses command line arguments
22
31
# Enables user help
@@ -178,7 +187,7 @@ def set_span_tags(peptide_sequence):
178
187
nucleotide .open_tag = True
179
188
180
189
if inside_span :
181
- nucleotide .close_tag = True # only if its isnide a span tag
190
+ nucleotide .close_tag = True # only if its inside a span tag
182
191
else :
183
192
nucleotide .close_tag = False
184
193
@@ -202,9 +211,7 @@ def create_stylized_sequence(peptide_sequence):
202
211
if nucleotide .close_tag :
203
212
new_string += '</span>'
204
213
205
-
206
214
if nucleotide .open_tag :
207
-
208
215
new_string += '<span style="'
209
216
if nucleotide .bold :
210
217
new_string += 'font-weight:bold;'
@@ -216,9 +223,6 @@ def create_stylized_sequence(peptide_sequence):
216
223
new_string += 'font-size:105%;'
217
224
new_string += '">'
218
225
new_string += nucleotide .nucleotide
219
-
220
- if not nucleotide .large and not nucleotide .bold and not nucleotide .color and not nucleotide .underline :
221
- new_string += nucleotide .nucleotide
222
226
else :
223
227
new_string += nucleotide .nucleotide
224
228
return (new_string )
@@ -305,6 +309,7 @@ def main():
305
309
306
310
set_span_tags (peptide_sequence ) # pass by reference
307
311
312
+ print (row ['51mer ID' ])
308
313
new_string = create_stylized_sequence (peptide_sequence )
309
314
310
315
next_td_tags [2 ].string = new_string
0 commit comments