File tree Expand file tree Collapse file tree 5 files changed +8
-4
lines changed
Expand file tree Collapse file tree 5 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -982,9 +982,9 @@ def sequence(rowobj):
982982 elif re .match (r'^[a-zA-Z \s*]+$' , val ):
983983 # if a sequence string
984984
985- # removes spaces, enters, and makes all lower case
985+ # removes spaces, enters, and makes all upper case
986986 val = "" .join (val .split ())
987- val = val .replace (u"\ufeff " , "" ).lower ()
987+ val = val .replace (u"\ufeff " , "" ).upper ()
988988
989989 uri = f'{ url } /search/sequence={ val } &'
990990 if data ["Domain" ].strip () == "" :
@@ -1042,10 +1042,10 @@ def proteinSequence(rowobj):
10421042 return
10431043 rowobj .obj .sequences = [val ]
10441044
1045- elif re .match (r'^[ACDEFGHIKLMNPQRSTVWY \s*]+$' , val ):
1045+ elif re .match (r'^[ACDEFGHIKLMNPQRSTVWYacdefghiklmnpqrstvwy \s*]+$' , val ):
10461046 # if a sequence string
10471047
1048- # removes spaces, enters, and makes all lower case
1048+ # removes spaces, enters, and makes all upper case
10491049 val = "" .join (val .split ())
10501050 # removes *
10511051 val = val .replace ('*' , '' )
Original file line number Diff line number Diff line change 1+ user_input = " Hello "
2+ cleaned_input = user_input .strip ()
3+ print (f"Original input: '{ user_input } '" )
4+ print (f"Cleaned input: '{ cleaned_input } '" )
You can’t perform that action at this time.
0 commit comments