This repository contains the code and environment to reproduce the analyses from the study "Ancient whole genomes reveal regional selection during adaptation to Neolithic lifestyle in Western Eurasia". In the Methods sections we provide a detailed description of the different pipelines used.