scout/adapter/mongo/hgnc.py
def exons(self, hgnc_id=None, transcript_id=None,  build=None):
        """Return all exons
        
        Args:
            hgnc_id(int)
            transcript_id(str)
            build(str)
        
        Returns:
            exons(iterable(dict))
        """
        query = {}
        if build:
            query['build'] = build
        if hgnc_id:
            query['hgnc_id'] = hgnc_id
        if transcript_id:
            query['transcript_id'] = transcript_id
        
        return self.exon_collection.find(query)
def exons(self, hgnc_id=None, transcript_id=None,  build=None):
        """Return all exons
        
        Args:
            hgnc_id(int)
            transcript_id(str)
            build(str)
        
        Returns:
            exons(iterable(dict))
        """
        query = {}
        if build:
            query['build'] = build
        if hgnc_id:
            query['hgnc_id'] = hgnc_id
        if transcript_id:
            query['transcript_id'] = transcript_id
        
        return self.exon_collection.find(query)
Return all exons
        
        Args:
            hgnc_id(int)
            transcript_id(str)
            build(str)
        
        Returns:
            exons(iterable(dict))