You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Registration and warping workflows were inspired by [MIRACL](https://miracl.readthedocs.io/en/latest/)
62
-
* We adapted [LSFM/iDISCO+ atlases](https://pubmed.ncbi.nlm.nih.gov/33063286/)from [Gubra](https://www.gubra.dk/cro-services/3d-imaging/)
62
+
* We warped this [LSFM/iDISCO+ average template brain](https://pubmed.ncbi.nlm.nih.gov/33063286/)to Allen brain atlas space (CCFv3) and refined alignment.
Copy file name to clipboardExpand all lines: _other/drafts/check_reg_fsleyes.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@
11
11
defparse_args():
12
12
parser=argparse.ArgumentParser(description='Prepares and displays medical images in fsleyes for analysis.', formatter_class=SuppressMetavar)
13
13
parser.add_argument('-fri', '--fixed_reg_in', help='Pattern for fixed image from registration. Default: *autofl_50um_masked_fixed_reg_input.nii.gz', default="*autofl_50um_masked_fixed_reg_input.nii.gz", action=SM)
14
-
parser.add_argument('-wa', '--warped_atlas', help='Pattern for the warped atlas image from registration. Default: *gubra_ano_combined_25um_in_tissue_space.nii.gz', default="*gubra_ano_combined_25um_in_tissue_space.nii.gz", action=SM)
14
+
parser.add_argument('-wa', '--warped_atlas', help='Pattern for the warped atlas image from registration. Default: *atlas_CCFv3_2020_30um_in_tissue_space.nii.gz', default="*atlas_CCFv3_2020_30um_in_tissue_space.nii.gz", action=SM)
Copy file name to clipboardExpand all lines: _other/drafts/fsleyes.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ def parse_args():
12
12
parser.add_argument('-i', '--inputs', help='List of .nii.gz files to view or if empty all .nii.gz files in the current directory.', nargs='*', default=None)
13
13
parser.add_argument('-min', '--display_range_min', help='Minimum display range value.', default=0, type=float)
14
14
parser.add_argument('-max', '--display_range_max', help='Maximum display range value.', required=True, type=float)
- img_WB.nii.gz (bilateral version of cluster index w/ ABA colors)
16
12
- rgba.txt (RGBA values for each region in the cluster index)
17
13
18
14
Note:
19
15
- The input image will be binarized and multiplied by the split atlas to apply region IDs.
16
+
- Split means the left hemisphere region IDs are increased by 20000.
20
17
- regional_summary_CCFv3-2020.csv is in UNRAVEL/unravel/core/csvs/
21
18
- It has columns: Region_ID, ID_Path, Region, Abbr, General_Region, R, G, B
22
19
- Alternatively, use regional_summary.csv or provide a custom CSV with the same columns.
@@ -43,7 +40,7 @@ def parse_args():
43
40
parser.add_argument('-m', '--mirror', help='Mirror the image in the x-axis for a bilateral representation. Default: False', action='store_true', default=False)
44
41
parser.add_argument('-ax', '--axis', help='Axis to flip the image along if mirroing. Default: 2', default=2, type=int, action=SM)
45
42
parser.add_argument('-s', '--shift', help='Number of voxels to shift content after flipping. Default: 0', default=0, type=int, action=SM)
parser.add_argument('-csv', '--csv_path', help='CSV name or path/name.csv. Default: regional_summary_CCFv3-2020.csv', default='regional_summary_CCFv3-2020.csv', action=SM)
atlas = /usr/local/unravel/atlases/gubra/gubra_ano_combined_25um.nii.gz # path/atlas.nii.gz with symmetric labels
12
+
atlas = atlas/atlas_CCFv3_2020_30um.nii.gz # path/atlas.nii.gz with symmetric labels
13
13
output_rgb_lut = True # Output sunburst_RGBs.csv if True (for Allen brain atlas coloring w/ Flourish)
14
14
sunburst_csv_path = sunburst_IDPath_Abbrv_CCFv3-2020.csv # or sunburst_IDPath_Abbrv.csv in UNRAVEL/unravel/core/csvs/ (or path to a custom csv)
15
15
info_csv_path = CCFv3-2020_info.csv # or CCFv3_info.csv in UNRAVEL/unravel/core/csvs/ (or path to a custom csv)
16
16
17
17
[brain]
18
18
mirror = True # Mirror the image in the x-axis for a bilateral representation (set as false if a whole brain mask was used for ``vstats`` instead of a hemisphere mask)
19
-
axis = 0# Axis to flip the image along
20
-
shift = 2# Number of voxels to shift content after flipping (accounts for asymmetry in the gubra atlas)
parser.add_argument('-rgb', '--output_rgb_lut', help='Output sunburst_RGBs.csv if flag provided (for Allen brain atlas coloring)', action='store_true')
41
41
parser.add_argument('-scsv', '--sunburst_csv', help='CSV name or path/name.csv. Default: sunburst_IDPath_Abbrv_CCFv3-2020.csv', default='sunburst_IDPath_Abbrv_CCFv3-2020.csv', action=SM)
42
42
parser.add_argument('-in', '--info', help='CSV name or path/name.csv. Default: CCFv3-2020_info.csv', default='CCFv3-2020_info.csv', action=SM)
Copy file name to clipboardExpand all lines: unravel/cluster_stats/sunburst.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@
44
44
defparse_args():
45
45
parser=argparse.ArgumentParser(description='Generate a sunburst plot of regional volumes that cluster comprise across the ABA hierarchy', formatter_class=SuppressMetavar)
46
46
parser.add_argument('-i', '--input', help='path/rev_cluster_index.nii.gz (e.g., with valid clusters)', required=True, action=SM)
parser.add_argument('-rgb', '--output_rgb_lut', help='Output sunburst_RGBs.csv if flag provided (for Allen brain atlas coloring)', action='store_true')
49
49
parser.add_argument('-scsv', '--sunburst_csv_path', help='CSV name or path/name.csv. Default: sunburst_IDPath_Abbrv_CCFv3-2020.csv', default='sunburst_IDPath_Abbrv_CCFv3-2020.csv', action=SM)
50
50
parser.add_argument('-icsv', '--info_csv_path', help='CSV name or path/name.csv. Default: CCFv3-2020_info.csv', default='CCFv3-2020_info.csv', action=SM)
│ └── gubra_template_25um.nii.gz # Average template brain that is aligned with the atlas
872
+
│ ├── atlas_CCFv3_2020_30um.nii.gz # Each atlas region has a unique intensity/ID
873
+
│ ├── atlas_CCFv3_2020_30um_split.nii.gz # Intensities in the left hemisphere are increased by 20,000
874
+
│ ├── average_template_CCFv3_30um.nii.gz # Average template brain that is aligned with the atlas
875
+
│ └── mask_CCFv3_2020_30um_RH_wo_root_ventricles_fibers_OB.nii.gz # Right hemisphere mask that excludes undefined regions (root), ventricles, and fiber tracts
878
876
├── reg_results
879
-
├── ilastik_brain_mask
877
+
├── brain_mask
880
878
│ ├── brain_mask.ilp # Ilastik project trained with the pixel classification workflow to segment the brain in resampled autofluo images
parser.add_argument('-sm', '--smooth', help='Sigma value for smoothing the fixed image. Default: 0 for no smoothing. Use 0.4 for autofl', default=0, type=float, action=SM)
72
72
parser.add_argument('-ort', '--ort_code', help='3 letter orientation code of fixed image if not set in fixed_img (e.g., RAS)', action=SM)
Copy file name to clipboardExpand all lines: unravel/register/reg_check.py
+1-1
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ def parse_args():
28
28
parser.add_argument('-td', '--target_dir', help='path/target_output_dir name for aggregating outputs from all samples (cwd if omitted).', default=None, action=SM)
29
29
parser.add_argument('-ro', '--reg_outputs', help="Name of folder w/ outputs from ``reg``. Default: reg_outputs", default="reg_outputs", action=SM)
parser.add_argument('-p', '--pattern', help='Pattern for sample?? dirs. Use cwd if no matches.', default='sample??', action=SM)
32
32
parser.add_argument('-d', '--dirs', help='List of sample?? dir names or paths to dirs to process', nargs='*', default=None, action=SM)
33
33
parser.add_argument('-i', '--input', help='reg_inputs/autofl_50um_tifs (from ``reg_prep``) or name of directory with raw tifs', default=None, action=SM)
34
-
parser.add_argument('-o', '--output', help='path/dir to copy TIF files. (e.g., ilastik_brain_mask or ilastik_segmentation)', required=True, action=SM)
34
+
parser.add_argument('-o', '--output', help='path/dir to copy TIF files. (e.g., brain_mask or ilastik_segmentation)', required=True, action=SM)
35
35
parser.add_argument('-s', '--slices', help='List of slice numbers to copy (4 digits each; space separated)', nargs='*', type=str, default=[])
0 commit comments