Ancestral lineages and sampling in populations with density-dependent interactions | Synapse