def add_all(self, dataLabel):
     if dataLabel == "reactions":
         reaction_ids = [r.id for r in Reaction.activated()]
         self.change_reactions(reaction_ids)
     if dataLabel == "annotations":
         self.add_all_annotations()
     return self
 def select_reactions_by_tag(self):
     reaction_ids = [
         r.id for r in Reaction.activated().filter(
             tags__in=self.frag_sample.tags.all())
     ]
     self.change_reactions(reaction_ids)
     return self