def sample_variants(self, variants, sample_name, category = '<STR_LIT>'):
LOG.info('<STR_LIT>'.format(sample_name))<EOL>has_allele = re.compile('<STR_LIT>') <EOL>query = {<EOL>'<STR_LIT>': [<EOL>{'<STR_LIT>' : { '<STR_LIT>' : variants}},<EOL>{'<STR_LIT>' : category},<EOL>{'<STR_LIT>': {<EOL>'<STR_LIT>': { '<STR_LIT>' : sample_name, '<STR_LIT>': { '<STR_LIT>' : has_allele } }<EOL>}}<EOL>]<EOL>}<EOL>result = self.variant_collection.find(query)<EOL>return result<EOL>
Given a list of variants get variant objects found in a specific patient

        Args:
            variants(list): a list of variant ids
            sample_name(str): a sample display name
            category(str): 'snv', 'sv' ..

        Returns:
            result(iterable(Variant))