Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Converts a NCBI/Entrez gene id into a link to NCBI gene record.

        def geneid(value):
    """Converts a NCBI/Entrez gene id into a link to NCBI gene record."""
    return mark_safe('%s' % (BASE_URL, value, value))
        


src/d/e/denigma-HEAD/denigma/apps/interactions/tables.py   denigma(Download)
import django_tables2 as tables
 
from models import Interaction
from templatetags.ncbi import geneid, pubmeds
 
 
class InteractionTable(tables.Table):
 
    def render_id_a(self, record, value):
        return geneid(value)
    def render_id_b(self, record, value):
        return geneid(value)
 
    def render_pmid(self, record, value):
        return pubmeds(value)