A single-page application for visualizing the projection patterns of anterograde and retrograde tracing in the MPF.
# install dependencies
npm install
# serve with hot reload at localhost:8080
npm run dev
# build for production with minification
npm run build- Install conda environment
conda create --name utility
conda activate utility
conda install Pillow
conda install tqdm
- Convert images to PNG file format
% python convert_tiff_to_png.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita
- Resize PNG images
% python resize_png_images.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita
- Copy images and dump a json file
% python copy_and_dump_json.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita /Users/seitayamashita/Documents/git_next/mpf_map/static/images2
python convert_tiff_to_png.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita
python resize_png_images.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita
python overlay_images.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita /Users/seitayamashita/Downloads/annotated_bw_atlas
python copy_and_dump_json.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita /Users/seitayamashita/Documents/git_next/mpf_map/static/images
on Panfs
python convert_tiff_to_png.py /panfs/dong/mpf_map/output
python resize_png_images.py /panfs/dong/mpf_map/output
python overlay_images.py /panfs/dong/mpf_map/output /panfs/dong/mpf_map/annotated_bw_atlas
And copied the images over locally to see if the changes are reflected.
- ARA images
python convert_tiff_to_png.py /Users/seitayamashita/Downloads/annotated_bw_atlas
python resize_png_images.py /Users/seitayamashita/Downloads/annotated_bw_atlas
#python copy_and_dump_json.py /Users/seitayamashita/Downloads/annotated_bw_atlas /Users/seitayamashita/Documents/git_next/mpf_map/static/ara
-
Remove a border line
% python remove_black_border.py /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita/SW120403-02A-ACAv/2-phal/SW120403-02A_2_10_ch2_ACAv_phal_ara075.tif /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita/SW120403-02A-ACAv/2-phal/SW120403-02A_2_10_ch2_ACAv_phal_ara075.tif -
Convert a TIFF image to PNG file format
% python convert_tiff_to_png.py -i /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita/SW120403-02A-ACAv/2-phal/SW120403-02A_2_10_ch2_ACAv_phal_ara075.tif -o /Users/seitayamashita/Downloads/mpfc_web_image_vis_for_seita/SW120403-02A-ACAv/2-phal/SW120403-02A_2_10_ch2_ACAv_phal_ara075.png -
Resize PNG image
-
Copy images and dump a json file
Retrograde images depends on the cell size of the cell center. The degenerated images provided are too small for visualization. Run the following script to regenerate retrograde images with larger pixel size.
- Create a conda environment to use Outspector.
conda create -f /ifshome/syamashi/Documents/gittest/outspector/src/grid_env/conda_grid.yml
% python batch_cell_segmentation.py /panfs/dong/mpf_map/originals/ /panfs/dong/mpf_map/output/
List of anterograde injections and retrograde injections.
Anterograde:
SW110614-01B-ACAd/2-phal
SW170420-03A-ACAd/4-aav-rfp
SW170420-04A-ACAd/4-aav-rfp
SW110321-04B-ACAv/2-phal
SW110606-01A-ACAv/2-phal
SW120403-02A-ACAv/2-phal
SW151027-02B-DP/2-phal
SW160120-01B-DP/2-phal
SW160120-03A-DP/2-phal
SW160120-03A-DP/4-aav-rfp
SW170420-03A-DP_deep/2-phal
SW170420-04A-DP_deep/2-phal
SW120404-01A-ILA/2-phal
SW120404-02A-ILA/2-phal
SW120404-04A-ILA/2-phal
SW110613-02B-PL/2-phal
SW110808-04A-PL/2-phal
SW120530-03A-PL/2-phal
Retrograde:
SW110614-01B-ACAd/5-ctb
SW120530-03A-ACAd/3-fg
SW170420-04A-ACAd/3-fg
SW110321-04B-ACAv/5-ctb
SW110606-01A-ACAv/5-ctb
SW120403-02A-ACAv/5-ctb
SW151027-02B-DP/4-ctb
SW160120-01B-DP/5-ctb
SW160120-03A-DP/5-ctb
SW170420-04A-DP_deep/5-ctb
SW120404-02A-ILA/5-ctb
SW120404-04A-ILA/5-ctb
SW120404-01A-PL/3-fg
SW120404-02A-PL/3-fg
Note:
DP is DPs
deep is DPd
ILA: 56, 127, 185
PL: 255, 127, 0
DPs: 228, 26, 28
DPd: 76, 175, 74
ACAd: 166, 86, 41
ACAv: 152, 79, 163
For not available ARA levels, place holder images are needed. Create masked shadow images from ARA images.
python apply_shadow_mask.py /Users/seitayamashita/Documents/git_next/mpf_map/static/ara
You would need to run this to update the imageMenu.json used in the ImageMenu.vue.
python generate_image_menu_gui_data.py /Users/seitayamashita/Documents/git_next/mpf_map/static/images/orders.json /Users/seitayamashita/Documents/git_next/mpf_map/src/assets/
- Build
% npm run build
- Start Docker container
% docker-compose down -v
% docker-compose up --build -d
-
Access http://localhost:8082/
-
Password protection (optional)
htpasswd -c ./nginx/.htpasswd guest
- Seita Yamashita
