def ucsc(self, *args, **params):
        uid = self.sessions.get(cherrypy.session.id)
        if not uid:
            uid = self.makeUid()
            cherrypy.session["uid"] = uid
            self.sessions.insert(cherrypy.session.id, uid)

        input_json = cherrypy.request.json

        us = UcscSearch(self.wepigenomes, self.db, self.dbSnps, self.genes,
                        self.host, self.args, input_json, uid)
        us.parse(self.siteInfo)
        url = us.configureUcscHubLink()

        if us.psb.userErrMsg:
            return {"err": us.psb.userErrMsg}

        if self.args.debug:
            return {
                "inner-url":
                url,
                "html":
                self.templates(self.siteInfo.site + "/ucsc", us=us, url=url)
            }
        return {"url": url}
    def washu(self, *args, **params):
        uid = self.sessions.get(cherrypy.session.id)
        if not uid:
            uid = self.makeUid()
            cherrypy.session["uid"] = uid
            self.sessions.insertOrUpdate(cherrypy.session.id, uid)

        input_json = cherrypy.request.json

        us = UcscSearch(self.wepigenomes, self.db, self.dbSnps, self.genes,
                        self.host, self.args, input_json, uid)
        us.parse(self.siteInfo)
        url = us.configureWashuHubLink()

        if us.psb.userErrMsg:
            return {"err": us.psb.userErrMsg}

        if self.args.debug:
            return {"inner-url": url,
                    "html": self.templates(self.siteInfo.site + "/ucsc",
                                           us=us,
                                           url=url)}
        return {"url": url}