scout/adapter/mongo/hgnc.py
def transcripts_by_gene(self, build='37'):
        """Return a dictionary with hgnc_id as keys and a list of transcripts as value
        
        Args:
            build(str)
        
        Returns:
            hgnc_transcripts(dict)
                
        """
        hgnc_transcripts = {}
        LOG.info("Fetching all transcripts")
        for transcript in self.transcript_collection.find({'build':build}):
            hgnc_id = transcript['hgnc_id']
            if not hgnc_id in hgnc_transcripts:
                hgnc_transcripts[hgnc_id] = []
            
            hgnc_transcripts[hgnc_id].append(transcript)
        
        return hgnc_transcripts
def transcripts_by_gene(self, build='37'):
        """Return a dictionary with hgnc_id as keys and a list of transcripts as value
        
        Args:
            build(str)
        
        Returns:
            hgnc_transcripts(dict)
                
        """
        hgnc_transcripts = {}
        LOG.info("Fetching all transcripts")
        for transcript in self.transcript_collection.find({'build':build}):
            hgnc_id = transcript['hgnc_id']
            if not hgnc_id in hgnc_transcripts:
                hgnc_transcripts[hgnc_id] = []
            
            hgnc_transcripts[hgnc_id].append(transcript)
        
        return hgnc_transcripts
Return a dictionary with hgnc_id as keys and a list of transcripts as value
        
        Args:
            build(str)
        
        Returns:
            hgnc_transcripts(dict)