In https://github.com/gallantlab/pycortex/blob/main/cortex/freesurfer.py , the import_subj function currently uses pycortex_subject if you want to rename the subject ID from the original freesurfer subject directory. However, in other subsequent functions, cx_subject is used for the same thing. For example, we have:
def import_subj(
freesurfer_subject: str,
pycortex_subject: Optional[str]=None,
freesurfer_subject_dir: Optional[str]=None,
whitematter_surf: str="smoothwm",
) -> None:
def import_flat(fs_subject: str, patch: str, hemis: list[Literal['lh', 'rh']]=['lh', 'rh'], cx_subject: Optional[str]=None,
flat_type: Literal['freesurfer', 'slim', 'blender']='freesurfer', auto_overwrite: bool=False,
freesurfer_subject_dir: Optional[str]=None, clean: bool=True) -> None:
def get_label(cx_subject: str, ...
def _parse_labels(label_files: Union[str, list[str]], cx_subject: str) -> tuple[npt.NDArray, npt.NDArray]:
def get_label(cx_subject: str, label: str, fs_subject: Optional[str]=None, fs_dir: Optional[str]=None, src_subject: str='fsaverage', hemisphere: Sequence[Literal['lh', 'rh']]=('lh', 'rh'), **kwargs) -> tuple[npt.NDArray[np.integer], npt.NDArray]:
Similarly, looks like freesurfer_subject is sometimes called fs_subject. Would be nice to harmonize all these but I don't know how widespread this is.
In https://github.com/gallantlab/pycortex/blob/main/cortex/freesurfer.py , the import_subj function currently uses
pycortex_subjectif you want to rename the subject ID from the original freesurfer subject directory. However, in other subsequent functions,cx_subjectis used for the same thing. For example, we have:Similarly, looks like
freesurfer_subjectis sometimes calledfs_subject. Would be nice to harmonize all these but I don't know how widespread this is.