scout/adapter/mongo/base.py
def setup(self, database):
        """Setup connection to database."""
        self.db = database
        self.hgnc_collection = database.hgnc_gene
        self.user_collection = database.user
        self.whitelist_collection = database.whitelist
        self.institute_collection = database.institute
        self.event_collection = database.event
        self.case_collection = database.case
        self.panel_collection = database.gene_panel
        self.hpo_term_collection = database.hpo_term
        self.disease_term_collection = database.disease_term
        self.variant_collection = database.variant
        self.acmg_collection = database.acmg
        self.clinvar_collection = database.clinvar
        self.clinvar_submission_collection = database.clinvar_submission
        self.exon_collection = database.exon
        self.transcript_collection = database.transcript
def setup(self, database):
        self.db = database
        self.hgnc_collection = database.hgnc_gene
        self.user_collection = database.user
        self.whitelist_collection = database.whitelist
        self.institute_collection = database.institute
        self.event_collection = database.event
        self.case_collection = database.case
        self.panel_collection = database.gene_panel
        self.hpo_term_collection = database.hpo_term
        self.disease_term_collection = database.disease_term
        self.variant_collection = database.variant
        self.acmg_collection = database.acmg
        self.clinvar_collection = database.clinvar
        self.clinvar_submission_collection = database.clinvar_submission
        self.exon_collection = database.exon
        self.transcript_collection = database.transcript
def setup ( self , database ) : self . db = database self . hgnc_collection = database . hgnc_gene self . user_collection = database . user self . whitelist_collection = database . whitelist self . institute_collection = database . institute self . event_collection = database . event self . case_collection = database . case self . panel_collection = database . gene_panel self . hpo_term_collection = database . hpo_term self . disease_term_collection = database . disease_term self . variant_collection = database . variant self . acmg_collection = database . acmg self . clinvar_collection = database . clinvar self . clinvar_submission_collection = database . clinvar_submission self . exon_collection = database . exon self . transcript_collection = database . transcript
Setup connection to database.
Setup connection to database .