How to use the solvebio.SolveError function in solvebio

To help you get started, we’ve selected a few solvebio examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github chop-dbhi / varify / varify / variants / resources.py View on Github external
# TODO: add another clinvar query for reported gene-wide variants
            # if genes:
            #     filters = filters | Filter(gene_symbol__in=list(genes))

            try:
                # Query ClinVar by its alias, return 10 results/page
                # TODO: client-side pagination
                q = SolveBio.get_dataset('clinvar').query(
                    limit=10,  # limit to 10 results (single page)
                    filters=filters)
                # Send the first page of results to the client
                data['solvebio']['clinvar'] = {
                    'results': q.results,
                    'total': q.total
                }
            except SolveError as e:
                log.exception('SolveBio ClinVar query failed: {0}'.format(e))

        data['genome_version'] = GENOME_VERSION

        return data

solvebio

The SolveBio Python client

MIT
Latest version published 5 months ago

Package Health Score

69 / 100
Full package analysis

Similar packages