Bayesian inference of reproduction number from epidemic and genetic data