mirroring https://github.com/monarch-initiative/phenogrid/commit/708d4bb8b2280be1f06c4e4b1238fec88bda4592