def pop_oligo_all(self, e): """ Populates the mass list with all possible oligomers. :param e: Unused event :return: None """ oligos = self.oligomerlistbox.list.get_list() oligomasslist, oligonames = ud.make_all_matches(oligos) oligomasslist = np.unique(oligomasslist) self.masslistbox.list.populate(oligomasslist)
def on_match_all(self, e): """ Match the peaks in self.pks to all possible combination of oligomers in the oligomerlist. Uses ud.make_all_matches function. Populated the matchlistbox with the results of the matching. :param e: Unused event :return: None """ oligos = self.oligomerlistbox.list.get_list() try: tolerance = float(self.ctlmatcherror.GetValue()) except ValueError: tolerance = None oligomasslist, oligonames = ud.make_all_matches(oligos) if ud.isempty(oligomasslist): print("ERROR: Need to specify the Potential Oligomers") return matchlist = ud.match(self.pks, oligomasslist, oligonames, tolerance=tolerance) self.matchlistbox.list.populate(matchlist[0], matchlist[1], matchlist[2], matchlist[3])