Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

Browse Source

gin commit from SUND33778

Modified files: 1
Frederik Filip Stæger 5 years ago
parent
commit
b540578164
1 changed files with 64 additions and 61 deletions
  1. 64 61
      README.md

+ 64 - 61
README.md

@@ -1,61 +1,64 @@
-
-# Automatic slice segmentation  
-  
-Program for automatically registering a segmentation to a DAPI-stained slice.  
-  
-## Dependencies  
-* Python 3.6  
-* Ants (https://github.com/ANTsX/ANTs)  
-* Various python packages detailed in requirements.txt
-  
-## Prerequisites  
-* A high-resolution, DAPI modality TIFF image of a brain slice. Can have multiple channels.  
-* A template file (.nii or .nii.gz)  
-* A segmentation of the template file  (.nii or .nii.gz)  
-  
-## Usage  
-* Use preprocess.py to prepare input slice for automatic registration  
-* Use auto_seg.py with preprocessed slice which will output a folder containing segmentation registered to slice.  
-  
-## auto_seg.py  
-**Usage**
-```sh  
-python3 auto_seg.py sliceloc segloc templateloc --bregma [coord]  
-```  
-**Positional/Required Arguments**
-
-|||
-|--------------------------------|-----------------------------|
-|`sliceloc`            |Location of the slice you wish to register (.nii or.nii.gz) |
-|`segloc`            |Location of file containing segmentation of the template (.nii or.nii.gz)            |
-|`templateloc`|Location of template file (.nii or .nii.gz)|
-|`--bregma [coord]`|Bregma coordinate of input slice (if --approx argument is present, this is an optional argument)|
-
-**Optional arguments**
-
-| | |
-|---|---|
-|`--approx [index]`            |Provide the location of the slice as a z-index of the template. Can be used instead of --bregma argument.|
-|`--out [directory]`            |Provide an alternative output directory (default directory is /output)            |
-|`--dapi [index]`   |Index of the DAPI channel in the slice, by default the DAPI channel is assumed to be the last channel|
-
-## preprocess.py  
-**Usage**
-```sh  
-python3 preprocess.py file dir -s Series -b [True/False] --pdim [pixeldimension]  
-```  
-**Positional/Required Arguments**
-
-|||
-|--------------------------------|-----------------------------|
-|`file`            |Location of the file to be preprocessed (.tiff or .nd2) |
-|`dir`            |Directory to output preprocessed files (will output .nii files)|
-|`-s`|The series to extract (If input file is single-series, use 0 for this argument)|
-
-**Optional arguments**
-
-|||
-|--------------------------------|-----------------------------|
-|`--b [True/False]`            |Bias field correction: Whether to use bias-field correction in preprocessing (default: True)|
-|`--pdim [pixeldimensions]`            |Dimensions of pixels, if not provided, these will be extracted from image metadata|
-
+ # Description
+This repository contains the full data set for constructing the DAPI template, the full DAPI template creation pipeline and the automatic slice segmentation.
+ 
+# Automatic slice segmentation  
+
+Program for automatic segmentation to a DAPI-stained coronal mouse brain slices.
+
+  
+## Dependencies  
+* Python 3.6  
+* Ants (https://github.com/ANTsX/ANTs)  
+* Various python packages detailed in requirements.txt
+  
+## Prerequisites  
+* A high-resolution, DAPI modality TIFF image of a brain slice. Can have multiple channels.  
+* A template file (.nii or .nii.gz)  
+* A segmentation of the template file  (.nii or .nii.gz)  
+  
+## Usage  
+* Use preprocess.py to prepare input slice for automatic registration  
+* Use auto_seg.py with preprocessed slice which will output a folder containing segmentation registered to slice.  
+  
+## auto_seg.py  
+**Usage**
+```sh  
+python3 auto_seg.py sliceloc segloc templateloc --bregma [coord]  
+```  
+**Positional/Required Arguments**
+
+|||
+|--------------------------------|-----------------------------|
+|`sliceloc`            |Location of the slice you wish to register (.nii or.nii.gz) |
+|`segloc`            |Location of file containing segmentation of the template (.nii or.nii.gz)            |
+|`templateloc`|Location of template file (.nii or .nii.gz)|
+|`--bregma [coord]`|Bregma coordinate of input slice (if --approx argument is present, this is an optional argument)|
+
+**Optional arguments**
+
+| | |
+|---|---|
+|`--approx [index]`            |Provide the location of the slice as a z-index of the template. Can be used instead of --bregma argument.|
+|`--out [directory]`            |Provide an alternative output directory (default directory is /output)            |
+|`--dapi [index]`   |Index of the DAPI channel in the slice, by default the DAPI channel is assumed to be the last channel|
+
+## preprocess.py  
+**Usage**
+```sh  
+python3 preprocess.py file dir -s Series -b [True/False] --pdim [pixeldimension]  
+```  
+**Positional/Required Arguments**
+
+|||
+|--------------------------------|-----------------------------|
+|`file`            |Location of the file to be preprocessed (.tiff or .nd2) |
+|`dir`            |Directory to output preprocessed files (will output .nii files)|
+|`-s`|The series to extract (If input file is single-series, use 0 for this argument)|
+
+**Optional arguments**
+
+|||
+|--------------------------------|-----------------------------|
+|`--b [True/False]`            |Bias field correction: Whether to use bias-field correction in preprocessing (default: True)|
+|`--pdim [pixeldimensions]`            |Dimensions of pixels, if not provided, these will be extracted from image metadata|
+