def write_anat(bids_root, subject, t1w, session=None, acquisition=None, raw=None, trans=None, deface=False, overwrite=False, verbose=False): """Put anatomical MRI data into a BIDS format. Given a BIDS directory and a T1 weighted MRI scan for a certain subject, format the MRI scan to be in BIDS format and put it into the correct location in the bids_dir. If a transformation matrix is supplied, a sidecar JSON file will be written for the T1 weighted data. Parameters ---------- bids_root : str Path to root of the BIDS folder subject : str Subject label as in 'sub-