scout/adapter/mongo/hpo.py
def load_hpo_term(self, hpo_obj):
        """Add a hpo object

        Arguments:
            hpo_obj(dict)

        """
        LOG.debug("Loading hpo term %s into database", hpo_obj['_id'])
        try:
            self.hpo_term_collection.insert_one(hpo_obj)
        except DuplicateKeyError as err:
            raise IntegrityError("Hpo term %s already exists in database".format(hpo_obj['_id']))
        LOG.debug("Hpo term saved")
def load_hpo_term(self, hpo_obj):
        """Add a hpo object

        Arguments:
            hpo_obj(dict)

        """
        LOG.debug("Loading hpo term %s into database", hpo_obj['_id'])
        try:
            self.hpo_term_collection.insert_one(hpo_obj)
        except DuplicateKeyError as err:
            raise IntegrityError("Hpo term %s already exists in database".format(hpo_obj['_id']))
        LOG.debug("Hpo term saved")
def load_hpo_term ( self , hpo_obj ) : LOG . debug ( "Loading hpo term %s into database" , hpo_obj [ '_id' ] ) try : self . hpo_term_collection . insert_one ( hpo_obj ) except DuplicateKeyError as err : raise IntegrityError ( "Hpo term %s already exists in database" . format ( hpo_obj [ '_id' ] ) ) LOG . debug ( "Hpo term saved" )
Add a hpo object

        Arguments:
            hpo_obj(dict)
Add a hpo object