You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defconvert_ion_string_to_node_type(ionstring, node_type): #for example I have a full quant_id that describes a fragment ion, I want to shorten it to the specified leve, e.g. sequence
63
-
regex=NODETYPE2REGEX[node_type]
64
-
match=re.match(regex, ionstring)
65
-
ifmatch:
66
-
returnmatch.group(1)
67
-
else:
68
-
raiseValueError(f"Could not match {ionstring} to {node_type}. This function only works for the following node types: seq, mod_seq, mod_seq_charge")
69
-
70
-
71
58
defget_progress_folder_filename(input_file, file_ending, remove_extension=True): #file ending needs to include all dots, e.g. ".aq_reformat.tsv"
72
59
input_file=os.path.abspath(input_file) #to make sure that the path is absolute
0 commit comments