Evaluating the roles of directed breeding and gene flow in animal domestication