Full featured prototype: https://www.figma.com/proto/omgiSy8oK0iAFBXoCVWQbJ/cfosdb?node-id=3%3A25&scaling=min-zoom
Run the nodejs file: api.js
localhost:8081?behavior=<behavior_list>&brain_code=<brain_area_list>&gender=<gender>&species=<species>
behavor_list: the list of behavior, seperated by comma.
brain_area_list: the brain area list, seperated by comma.
gender: "male", "female", or "%" for both.
species: "Rat" or "Mouse"
Exp.
localhost:8081?behavior=pain,aggression&brain_code=R5,R7,R37&gender=%&species=Rat
The SQLite database: cFosDB.db There are two table in the database.
brain_area_annotation:
CREATE TABLE brain_area_annotation (
brain_code text primary key,
main text,
long_1 text,
short_1 text,
long_2 text,
short_2 text,
long_3 text,
short_3 text,
species text
)
brain_area_behavior:
CREATE TABLE brain_area_behavior (
brain_code text,
behavior text,
species text,
gender text,
doi text,
condition text,
figure text,
cell_type text
)
The files useful for frontend is in frontend/src/assets/
.
Changes the data in numbers.
Save the sheets in numbers as tsv
format to data_table
fold.
Run clean.R
to format the data. It generates two files:
- ./clean_behavior_brain_area.tsv
- ./clean_brain_area_annotation.tsv
- Copy the
neo_cfosdb/frontend/public/download/
data toneo_cfosdb/frontend/public/download_bk
. - Update the file name under "## Create file for download" section in
neo_cfosdb/data/to_json.R
file.
Enter the neo_cfosdb/data
fold. Generate the database by runging the Makefile.
Check the output information, make sure the behavior is good.
Run Makefile in the root
fold.
Run Makefile in the frontend
fold