diff --git a/scripts/clustering_slicewise.py b/scripts/clustering_slicewise.py index 09eba30..d7ce55d 100644 --- a/scripts/clustering_slicewise.py +++ b/scripts/clustering_slicewise.py @@ -50,6 +50,7 @@ # 7: Paxinos tract 2 # .. # 12: Paxinos tract 7 + ind_metrics = [0, 2] logging.info("\nLoad data for level: " + level) nii = nib.load(params.file_prefix_all + level + ext) @@ -78,7 +79,8 @@ # Reshape data used for clustering # Here, we will perform clustering on the first 5 volumes (ie: selection on the 4th dimension) - data2d = data_crop[:, :, 0, 0:5].reshape(-1, 5) + + data2d = data_crop[:, :, 0, ind_metrics].reshape(-1, len(ind_metrics)) # Standardize data logging.info("Standardize data...") diff --git a/scripts/params.py b/scripts/params.py index 8b40468..e141391 100644 --- a/scripts/params.py +++ b/scripts/params.py @@ -13,7 +13,7 @@ folder_processing = 'processing_temp' # Where to put intermediate processed images folder_concat_region = 'processing_regionwise' -folder_clustering_slicewise = 'results_clustering_slicewise' # Where to put results of slicewise clustering +folder_clustering_slicewise = 'results_clustering_slicewise_AD-AVF' # Where to put results of slicewise clustering folder_clustering_regionwise = 'results_clustering_regionwise' # Where to put results of region-wise clustering file_prefix = 'AtlasRat_'