scout/adapter/mongo/panel.py
def clinical_symbols(self, case_obj):
        """Return all the clinical gene symbols for a case."""
        panel_ids = [panel['panel_id'] for panel in case_obj['panels']]
        query = self.panel_collection.aggregate([
            {'$match': {'_id': {'$in': panel_ids}}},
            {'$unwind': '$genes'},
            {'$group': {'_id': '$genes.symbol'}}
        ])
        return set(item['_id'] for item in query)
def clinical_symbols(self, case_obj):
        panel_ids = [panel['panel_id'] for panel in case_obj['panels']]
        query = self.panel_collection.aggregate([
            {'$match': {'_id': {'$in': panel_ids}}},
            {'$unwind': '$genes'},
            {'$group': {'_id': '$genes.symbol'}}
        ])
        return set(item['_id'] for item in query)
def clinical_symbols ( self , case_obj ) : panel_ids = [ panel [ 'panel_id' ] for panel in case_obj [ 'panels' ] ] query = self . panel_collection . aggregate ( [ { '$match' : { '_id' : { '$in' : panel_ids } } } , { '$unwind' : '$genes' } , { '$group' : { '_id' : '$genes.symbol' } } ] ) return set ( item [ '_id' ] for item in query )
Return all the clinical gene symbols for a case.
Return all the clinical gene symbols for a case .