Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generated slicewise clustering with only AD and AVF #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion scripts/clustering_slicewise.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -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...")
Expand Down
2 changes: 1 addition & 1 deletion scripts/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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_'
Expand Down