Skip to content

A system for building mouse brain atlas from histology series

Notifications You must be signed in to change notification settings

CodingDonky/MouseBrainAtlas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TEMPORARY

The entire CodingDonky repo is going to be removed soon. It serves only as a testing ground for Alex Newberry. Everything will be cleaned up and ported over to the ActiveBrainAtlas repo. Some files I will need to be extra careful with as I have altered them significantly.

Notebooks that have been altered:

  • preprocess_cshl_data_v2_neurotrace.ipynb
  • preprocess_ucsd_data_v2.ipynb
  • brightness_correction.ipynb
  • distributed_utilities.py
  • utilities2015.py



File naming convensions

MD662&661-F1-2017.06.02-17.07.55_MD662_1_0001 <STACK_NAME>----<STACK_NAME_2>_-

  • STACK_NAME:
  • AA:

Buckets and Directories

  • RAW: All *_raw.j2 are stored in Bucket mousebrainatlas-rawdata (as well _lossy files that are typically unused).
  • DATA: Bucket mousebrainatlas-data contains ALL other files.

Naming conventions are the each file has a unique filename, FILENAME. Every different transform of the file will have the naming convention FILE_SUFFIX where SUFFIX is an abbreviated description of the file's state.

DATA files will always be in *.tif form unless otherwise stated. One important exception is that the RAW files given to us are typically in the format *_lossless.jp2.

Examples: [FILENAME STEM] = MD662&661-F1-2017.06.02-17.07.55_MD662_1_0001

  • raw_input = MD662&661-F1-2017.06.02-17.07.55_MD662_1_0001_lossless.jp2
  • output_1 = MD662&661-F1-2017.06.02-17.07.55_MD662_1_0001_raw_Ntb.tif
  • output_2 = MD662&661-F1-2017.06.02-17.07.55_MD662_1_0001_thumbnail_Ntb.tif

STACKNAME = the unique identifier for every stack. Example: MD662

folder naming conventions: STACKNAME_SUFFIX/

Preprocessing Steps:

  1. raw (.jp2) -> raw_Ntb (.tif): extract_a single channel
  2. raw_Ntb -> thumbnail_Ntb: rescale
  3. thumbnail_Ntb -> thumbnail_NtbNormalized: normalize_intensity
  4. Compute transforms using thumbnail_NtbNormalized: align + compose
  5. Supply prep1_thumbnail_mask :
  6. prep1_thumbnail_mask -> thumbnail_mask: warp
  7. raw_Ntb -> raw_NtbNormalizedAdaptiveInvertedGamma: brightness_correction
  8. Compute prep5 (alignedWithMargin) cropping box based on prep1_thumbnail_mask
  9. raw_NtbNormalizedAdaptiveInvertedGamma -> prep5_raw_NtbNormalizedAdaptiveInvertedGamma: align + crop
  10. thumbnail_NtbNormalized -> prep5_thumbnail_NtbNormalized: align + crop
  11. prep5_raw_NtbNormalizedAdaptiveInvertedGamma -> prep5_thumbnail_NtbNormalizedAdaptiveInvertedGamma: rescale
  12. Specify prep2 (alignedBrainstemCrop) cropping box
  13. prep5_raw_NtbNormalizedAdaptiveInvertedGamma -> prep2_raw_NtbNormalizedAdaptiveInvertedGamma: crop
  14. prep2_raw_NtbNormalizedAdaptiveInvertedGamma -> prep2_raw_NtbNormalizedAdaptiveInvertedGammaJpeg: compress_jpeg



  • Doc: documentation
  • src: code

Guides

  • Alex User Guide

    • Running Guide made by AlexN to assist with running the code [INC]
  • [Historical] Yuncong User Guide

    • User Guide made by Yuncong to assist with running the code
  • [Historical/Incomplete] Dev Guide

    • Incomplete to-be guide of entire running process
  • [Historical] Registration Steps

    • Guide for Registration with list of relevant scripts
  • [Historical] Old README

    • Yuncong's old README

Server Information

File Organization

Machine Learning Documents

About

A system for building mouse brain atlas from histology series

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.6%
  • Other 0.4%