def imageDetailById(id): image = image_hunter.getImageByMGIID(id) if image: return renderImageDetail(image) #return renderImageDetail() return error_template('No image found for ID = %s' % id)
def renderAlleleDetail(allele): # gather other objects for this allele molecularimage = None if allele.molecularimageid: molecularimage = image_hunter.getImageByMGIID(allele.molecularimageid) # detect if allele has phenotype data hasPheno = allele_hunter.doesAlleleHavePheno(allele._allele_key) hasAssays = allele_hunter.doesAlleleHaveAssays(allele._allele_key) # load has_explicit_references, and has_assays existence properties for links batchLoadAttributeExists([allele], ['explicit_references']) return render_template('detail/allele_detail.html', allele = allele, molecularimage = molecularimage, hasPheno = hasPheno, hasAssays = hasAssays)
def renderAlleleDetail(allele): # gather other objects for this allele molecularimage = None if allele.molecularimageid: molecularimage = image_hunter.getImageByMGIID(allele.molecularimageid) # detect if allele has phenotype data hasPheno = allele_hunter.doesAlleleHavePheno(allele._allele_key) hasAssays = allele_hunter.doesAlleleHaveAssays(allele._allele_key) # load has_explicit_references, and has_assays existence properties for links batchLoadAttributeExists([allele], ['explicit_references']) return render_template('detail/allele_detail.html', allele=allele, molecularimage=molecularimage, hasPheno=hasPheno, hasAssays=hasAssays)