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)
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)
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)
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)