scout/adapter/mongo/hgnc.py
def nr_genes(self, build=None):
        """Return the number of hgnc genes in collection

        If build is used, return the number of genes of a certain build

            Returns:
                result()
        """
        if build:
            LOG.info("Fetching all genes from build %s",  build)
        else:
            LOG.info("Fetching all genes")

        return self.hgnc_collection.find({'build':build}).count()
def nr_genes(self, build=None):
        if build:
            LOG.info("Fetching all genes from build %s",  build)
        else:
            LOG.info("Fetching all genes")

        return self.hgnc_collection.find({'build':build}).count()
def nr_genes ( self , build = None ) : if build : LOG . info ( "Fetching all genes from build %s" , build ) else : LOG . info ( "Fetching all genes" ) return self . hgnc_collection . find ( { 'build' : build } ) . count ( )
Return the number of hgnc genes in collection

        If build is used, return the number of genes of a certain build

            Returns:
                result()
Return the number of hgnc genes in collection