|
@@ -1,8 +1,22 @@
|
|
|
import nibabel as nib
|
|
|
import numpy as np
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+# Get the directory where the code file is located
|
|
|
+code_dir = os.path.dirname(os.path.abspath(__file__))
|
|
|
+
|
|
|
+# Get the parent directory of the code directory
|
|
|
+parent_dir = os.path.dirname(code_dir)
|
|
|
+viral_tracing_SearchPath = os.path.join(parent_dir,"output","Viral_tracing_flipped","*.nii*")
|
|
|
+viral_tracing_files = glob.glob(viral_tracing_SearchPath)
|
|
|
+
|
|
|
+masks_SearchPath = os.path.join(parent_dir,"output","Viral_tracing_density_maps_from_Jupyter_Notebook","*.nii*")
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
# Load NIfTI viral tracing data
|
|
|
-viral_tracing_img = nib.load(r"E:\2024_Ruthe_SND\output\Viral_tracing_flipped\Mop_projection_density_VT_mask.nii.gz"")
|
|
|
+viral_tracing_img = nib.load(r"E:\2024_Ruthe_SND\output\Viral_tracing_flipped\Mop_projection_density_VT_mask.nii.gz")
|
|
|
viral_tracing_data = viral_tracing_img.get_fdata()
|
|
|
|
|
|
# Load NIfTI mask data
|