Example #1
0
def groups_graph():
    global NODE_CACHE, REL_CACHE
    groups = request.args.getlist("groups[]")
    neurons = neo.neuron_names(groups)
    res = neo.all_cons_for_set(neurons)
    NODE_CACHE = res["neurons"]
    REL_CACHE = res["synapses"]
    return jsonify(result=res)
Example #2
0
def groups_graph():
    global NODE_CACHE, REL_CACHE
    groups = request.args.getlist('groups[]')
    neurons = neo.neuron_names(groups)
    res = neo.all_cons_for_set(neurons)
    NODE_CACHE = res['neurons']
    REL_CACHE = res['synapses']
    return jsonify(result=res)
Example #3
0
def pubmed_search():
    global NODE_CACHE, REL_CACHE
    query = request.args.get("query", "chemotaxis", type=str)
    threshold = request.args.get("threshold", 1, type=int)
    all_groups = neo.group_names()
    filtered_groups = pubmed.neurons_for_query(all_groups, query, threshold)
    neurons = neo.neuron_names(filtered_groups)
    res = neo.all_cons_for_set(neurons)
    NODE_CACHE = res["neurons"]
    REL_CACHE = res["synapses"]
    return jsonify(result=res)
Example #4
0
def pubmed_search():
    global NODE_CACHE, REL_CACHE
    query = request.args.get('query', 'chemotaxis', type=str)
    threshold = request.args.get('threshold', 1, type=int)
    all_groups = neo.group_names()
    filtered_groups = pubmed.neurons_for_query(all_groups, query, threshold)
    neurons = neo.neuron_names(filtered_groups)
    res = neo.all_cons_for_set(neurons)
    NODE_CACHE = res['neurons']
    REL_CACHE = res['synapses']
    return jsonify(result=res)
Example #5
0
def neuron_names():
    groups = request.args.getlist("groups[]")
    neurons = neo.neuron_names(groups)
    print neurons
    return jsonify(result=neurons)
Example #6
0
def neuron_names():
    groups = request.args.getlist('groups[]')
    neurons = neo.neuron_names(groups)
    print neurons
    return jsonify(result=neurons)