TY - JOUR T1 - Transition densities and sample frequency spectra of diffusion processes with selection and variable population size JF - bioRxiv DO - 10.1101/014639 SP - 014639 AU - Daniel Živković AU - Matthias Steinrücken AU - Yun S. Song AU - Wolfgang Stephan Y1 - 2015/01/01 UR - http://biorxiv.org/content/early/2015/02/02/014639.abstract N2 - Advances in empirical population genetics have made apparent the need for models that simultaneously account for selection and demography. To address this need, we here study the Wright-Fisher diffusion under selection and variable effective population size. In the case of genic selection and piecewise-constant effective population sizes, we obtain the transition density function by extending a recently developed method for computing an accurate spectral representation for a constant population size. Utilizing this extension, we show how to compute the sample frequency spectrum (SFS) in the presence of genic selection and an arbitrary number of instantaneous changes in the effective population size. We also develop an alternate, efficient algorithm for computing the SFS using a method of moments. We apply these methods to answer the following questions: If neutrality is incorrectly assumed when there is selection, what effects does it have on demographic parameter estimation? Can the impact of negative selection be observed in populations that undergo strong exponential growth? ER -