High-throughput characterization of genetic effects on DNA–protein binding and gene transcription