Example #1
0
def emapaTreeChildrenJson(parentId):
    """
    Fetch the children JSON data for the EMAPA 
        parent with the given parentId
    """
    
    term = vocterm_service.get_by_primary_id(parentId)
    
    tree_data = TreeView.buildChildNodes(term)
    return json.dumps(tree_data)
Example #2
0
def celltypeTreeChildrenJson(parentId):
    """
    Fetch the children JSON data for the Cell Type
        parent with the given parentId
    """

    term = vocterm_service.get_by_primary_id(parentId)

    tree_data = TreeView.buildChildNodes(term)
    return json.dumps(tree_data)
Example #3
0
def emapaTreeJson(id):
    """
    Fetch the initial JSON data for the EMAPA 
        with the given id
    """
    
    term = vocterm_service.get_by_primary_id(id)
    
    tree_data = TreeView.buildTreeView(term)
    
    return json.dumps(tree_data)
Example #4
0
def celltypeTreeJson(id):
    """
    Fetch the initial JSON data for the Cell Type
        with the given id
    """

    term = vocterm_service.get_by_primary_id(id)

    tree_data = TreeView.buildTreeView(term)

    return json.dumps(tree_data)