def clinvar_submissions(self, user_id, institute_id):
LOG.info("<STR_LIT>", user_id, institute_id)<EOL>query = dict(user_id=user_id, institute_id=institute_id)<EOL>results = list(self.clinvar_submission_collection.find(query))<EOL>submissions = []<EOL>for result in results:<EOL><INDENT>submission = {}<EOL>submission['<STR_LIT>'] =  result.get('<STR_LIT>')<EOL>submission['<STR_LIT:status>'] = result.get('<STR_LIT:status>')<EOL>submission['<STR_LIT>'] = result.get('<STR_LIT>')<EOL>submission['<STR_LIT>'] = result.get('<STR_LIT>')<EOL>submission['<STR_LIT>'] = result.get('<STR_LIT>')<EOL>submission['<STR_LIT>'] = result.get('<STR_LIT>')<EOL>if '<STR_LIT>' in result:<EOL><INDENT>submission['<STR_LIT>'] = result['<STR_LIT>']<EOL><DEDENT>if result.get('<STR_LIT>'):<EOL><INDENT>submission['<STR_LIT>'] = self.clinvar_collection.find({'<STR_LIT>': { "<STR_LIT>": result['<STR_LIT>'] } })<EOL><DEDENT>if result.get('<STR_LIT>'):<EOL><INDENT>submission['<STR_LIT>'] = self.clinvar_collection.find({'<STR_LIT>' : { "<STR_LIT>": result['<STR_LIT>'] } })<EOL><DEDENT>submissions.append(submission)<EOL><DEDENT>return submissions<EOL>
Collect all open and closed clinvar submission created by a user for an institute

            Args:
                user_id(str): a user ID
                institute_id(str): an institute ID

            Returns:
                submissions(list): a list of clinvar submission objects