def load_fmri(subject, input_file, hemi='both'): brain = Brain(subject, hemi, "pial", curv=False) brain.toggle_toolbars(True) if hemi == 'both': for hemi in ['rh', 'lh']: brain.add_overlay(input_file.format(hemi), hemi=hemi) else: brain.add_overlay(input_file.format(hemi), hemi=hemi)
def load_fmri(subject, input_file, hemi="both"): brain = Brain(subject, hemi, "pial", curv=False) brain.toggle_toolbars(True) if hemi == "both": for hemi in ["rh", "lh"]: brain.add_overlay(input_file.format(hemi), hemi=hemi) else: brain.add_overlay(input_file.format(hemi), hemi=hemi)
def show_fMRI_using_pysurfer(subject, input_file, hemi='both'): brain = Brain(subject, hemi, "pial", curv=False, offscreen=False) brain.toggle_toolbars(True) if hemi == 'both': for hemi in ['rh', 'lh']: print('adding {}'.format(input_file.format(hemi=hemi))) brain.add_overlay(input_file.format(hemi=hemi), hemi=hemi) else: print('adding {}'.format(input_file.format(hemi=hemi))) brain.add_overlay(input_file.format(hemi=hemi), hemi=hemi)
def show_fMRI_using_pysurfer(subject, input_file, hemi='both'): brain = Brain(subject, hemi, "pial", curv=False, offscreen=False) brain.toggle_toolbars(True) if hemi=='both': for hemi in ['rh', 'lh']: print('adding {}'.format(input_file.format(hemi=hemi))) brain.add_overlay(input_file.format(hemi=hemi), hemi=hemi) else: print('adding {}'.format(input_file.format(hemi=hemi))) brain.add_overlay(input_file.format(hemi=hemi), hemi=hemi)
def load_and_show_npy(subject, npy_file, hemi): x = np.load(npy_file) brain = Brain(subject, hemi, "pial", curv=False, offscreen=False) brain.toggle_toolbars(True) brain.add_overlay(x[:, 0], hemi=hemi)
def load_and_show_npy(subject, npy_file, hemi): x = np.load(npy_file) brain = Brain(subject, hemi, "pial", curv=False, offscreen=False) brain.toggle_toolbars(True) brain.add_overlay(x[:, 0], hemi=hemi)