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

Skeletons and foldlabels for the whole brain #75

Open
wants to merge 16 commits into
base: main
Choose a base branch
from

Conversation

PierreAuriau
Copy link
Collaborator

@PierreAuriau PierreAuriau commented Jul 6, 2023

Update the code to create skeletons and foldlabels for the whole brain with the parameter side == "F":

  • add generate_full_skeleton and generate_full_foldlabel functions to create volumes of the whole brain
  • add get_left_right_graph_files methods to retrieve the left and graph files from a subject
  • add case where side == "F" in generate_one_foldlabel and generate_one_skeleton methods
  • creation of base exception class DeepFoldingError to handle specific cases (for instance, stop volume generation when left and right graph files do not have the same header)
  • add "full" suffix to logs

Minor change: change source and output filenames in resample_files.py to add _ between filenames chosen by the user and subject id.

f"{self.path_to_graph}/{self.side}*.arg"
if self.side == "F":
graph_path = f"{self.src_dir}/{subject}*/" + \
f"{self.path_to_graph}/?{subject}*.arg"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

C'est normal qu'il y ait un {subject] en plus dans le path ?

graph_right)
if g_to_icbm_template_left != g_to_icbm_template_right:
raise DeepFoldingError(f"Left and right transformations files are not the same: "
f"{g_to_icbm_template_left} and {g_to_icbm_template_right}")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mais du coup, vu que la DeepFoldingError fait que pass, ça arrête le sujet en cours ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants