Model-based methods for spatial variable gene detection