scout/server/blueprints/variants/controllers.py
def parse_transcript(gene_obj, tx_obj, build=None):
    """Parse variant gene transcript (VEP)."""
    build = build or 37
    add_tx_links(tx_obj, build)

    if tx_obj.get('refseq_id'):
        gene_name = (gene_obj['common']['hgnc_symbol'] if gene_obj['common'] else
                     gene_obj['hgnc_id'])
        tx_obj['change_str'] = transcript_str(tx_obj, gene_name)
def parse_transcript(gene_obj, tx_obj, build=None):
    """Parse variant gene transcript (VEP)."""
    build = build or 37
    add_tx_links(tx_obj, build)

    if tx_obj.get('refseq_id'):
        gene_name = (gene_obj['common']['hgnc_symbol'] if gene_obj['common'] else
                     gene_obj['hgnc_id'])
        tx_obj['change_str'] = transcript_str(tx_obj, gene_name)
def parse_transcript ( gene_obj , tx_obj , build = None ) : build = build or 37 add_tx_links ( tx_obj , build ) if tx_obj . get ( 'refseq_id' ) : gene_name = ( gene_obj [ 'common' ] [ 'hgnc_symbol' ] if gene_obj [ 'common' ] else gene_obj [ 'hgnc_id' ] ) tx_obj [ 'change_str' ] = transcript_str ( tx_obj , gene_name )
Parse variant gene transcript (VEP).
Parse variant gene transcript ( VEP ) .