Skip to content

Commit

Permalink
last changes
Browse files Browse the repository at this point in the history
  • Loading branch information
AliceJoubert committed Oct 11, 2024
1 parent b8a3d4e commit cdae75b
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ def create_sessions_dict(
clinical_data_dir : Path
The path to the input folder.
bids_dir : Path
The path to the BIDS directory.
clinical_specifications_folder : Path
The path to the clinical file folder.
Expand Down Expand Up @@ -52,10 +49,6 @@ def create_sessions_dict(
for _, row in spec[spec[location] == loc].iterrows():
sessions_df[row["BIDS CLINICA"]] = file[row[[study]]]

# todo : what happens if one subject is not in the metadata ? at this point, I could add a line
# but I have to be sure that it has a corresponding image OR that the bids_ids list was properly
# managed before

sessions_df = sessions_df.loc[bids_ids]
sessions_df["diagnosis"] = sessions_df["diagnosis"].apply(
lambda x: "AD" if x > 0 else "CN"
Expand Down

0 comments on commit cdae75b

Please sign in to comment.