def update_mosaic_tags(self, institute, case, user, link, variant,<EOL>mosaic_tags):
LOG.info("<STR_LIT>", variant['<STR_LIT>'])<EOL>self.create_event(<EOL>institute=institute,<EOL>case=case,<EOL>user=user,<EOL>link=link,<EOL>category='<STR_LIT>',<EOL>verb='<STR_LIT>',<EOL>variant=variant,<EOL>subject=variant['<STR_LIT>'],<EOL>)<EOL>if mosaic_tags:<EOL><INDENT>LOG.info("<STR_LIT>"<EOL>.format(mosaic_tags, variant['<STR_LIT>']))<EOL>action = '<STR_LIT>'<EOL><DEDENT>else:<EOL><INDENT>LOG.info("<STR_LIT>"<EOL>.format(variant['<STR_LIT>'], variant['<STR_LIT>']))<EOL>action = '<STR_LIT>'<EOL><DEDENT>updated_variant = self.variant_collection.find_one_and_update(<EOL>{'<STR_LIT>': variant['<STR_LIT>']},<EOL>{action: {'<STR_LIT>': mosaic_tags}},<EOL>return_document=pymongo.ReturnDocument.AFTER<EOL>)<EOL>LOG.debug("<STR_LIT>")<EOL>return updated_variant<EOL>
Create an event for updating the mosaicism tags for a variant

          This function will create a event and update the mosaicism tags of the variant.

        Arguments:
            institute (dict): A Institute object
            case (dict): Case object
            user (dict): A User object
            link (str): The url to be used in the event
            variant (dict): A variant object
            mosaic_tags (list): The new mosaic tags list

        Return:
            updated_variant