

def main():
    tracts = get_tracts(folder_atlas)
    [synthetic_vol, synthetic_voln, values_synthetic_data, tracts_sum] = phantom_generation(tracts, std_noise, range_tract, true_value)
    save_3D_nparray_nifti(synthetic_vol, WM_phantom)
    save_3D_nparray_nifti(synthetic_voln, WM_phantom_noise)
    save_3D_nparray_nifti(tracts_sum, tracts_sum_img)
    fname_tract = glob.glob(((folder_atlas + '/*') + '.nii.gz'))
    sct.run(((('fslcpgeom ' + fname_tract[0]) + ' ') + WM_phantom))
    sct.run(((('fslcpgeom ' + tracts_sum[0]) + ' ') + WM_phantom_noise))
    sct.run(((('fslcpgeom ' + fname_tract[0]) + ' ') + tracts_sum_img))

dataset/ETHPy150Open neuropoly/spinalcordtoolbox/dev/atlas/validate_atlas/generate_phantom.py main/VarMisuse@106/206 `fname_tract`->`tracts_sum`