Computational evolutionary biologyReal Jardín Botánico, CSIC

Perez Lab

The Perez Lab builds deep learning and Bayesian methods that turn genomes and phylogenies into histories: how lineages split, spread, adapt and go extinct, from Brazilian cacti and Amazonian fishes to malaria vectors and HIV.

The Real Jardín Botánico in Madrid
Pabellón Villanueva, Real Jardín Botánico · photo Antonello Dellanotte © RJB-CSIC
Fam.
Perez Lab
Det.
Manolo F. Perez
Loc.
Real Jardín Botánico, CSIC
Hab.
phylogenies · genomes · deep learning
Coll.
Plaza de Murillo 2, Madrid
det.
MFP

The lab

Evolutionary biology and machine learning, inside one of Europe's oldest botanical gardens.

Where we are

Real Jardín Botánico
CSIC

Est.
1755, by royal decree of Ferdinand VI; a CSIC research centre since 1939
Living
5,500+ plant species in an eight-hectare garden
Dried
the MA herbarium, a reference collection for Iberian and American flora
Where
Plaza de Murillo 2, beside the Prado, central Madrid
rjb.csic.es ↗

The lab is based at the Real Jardín Botánico in Madrid, a living museum with more than 265 years of history and a research centre of the Spanish National Research Council (CSIC). The garden's mission is to understand and conserve the biodiversity of plants, fungi and other organisms, and to train people to do the same at every level of education. We add a computational layer to that mission.

Our work sits on complex diversification processes: the recent, messy, incompletely sorted parts of the tree of life where species boundaries blur and demography leaves its clearest marks. To get at them we develop Bayesian and machine-learning methods, in particular neural networks trained on simulated data, for species delimitation, phylogeography, population genetics, and phylogenetic and diversification analyses.

Being inside a botanical garden shapes the questions. Pleistocene refugia in Neotropical cacti, admixture in the Canarian flora and the conservation of threatened endemics sit next to projects on Amazonian fishes, primate diversification and the transmission dynamics of pathogens such as HIV and the malaria vectors of the Anopheles gambiae complex. The same simulators and networks serve all of them.

Research lines

Four threads, one toolbox. Each line pairs a biological question with the simulation-based inference needed to answer it.

HIV · primates · birth–death models

Deep learning from phylogenies

Tree representations and neural architectures that let a network read a phylogeny directly, for model selection and parameter estimation in phylodynamics (BD, BDEI, BDSS) and macroevolutionary diversification (BiSSE and relatives). PhyloCNN is the current flagship.

Pilosocereus · Kleinia · Euphorbia · Hoplias

Species delimitation & phylogeography of recent radiations

Where coalescent methods and taxonomy disagree, we simulate under explicit demographic models and let CNNs or ABC decide: interglacial microrefugia in cactus complexes, island admixture in Macaronesia, and species complexes in the gray zone of speciation.

Osteoglossiformes · Characiformes · Loricariidae

Genomic & cytogenomic resources for non-model species

Combining population genomics with comparative cytogenetics in Neotropical fishes: karyotype turnover, neo-sex chromosomes and chromosomal rearrangements as drivers of divergence in arowanas, arapaima, trahiras and armored catfish.

Anopheles · steppe biota · threatened endemics

Climate, conservation & generative models

Species distribution modelling and remote-sensing data to assess climate-change impacts on endangered species, and continental-scale reconstructions of responses to Quaternary change. The newest branch applies generative models to evolutionary inference in malaria vectors, and asks how AI should be used in science at all.

Software

Everything is open. Scripts and notebooks accompany each paper so results can be re-run, re-trained and re-purposed.

Publications

Peer-reviewed articles, preprints and book chapters. The full record lives on Google Scholar and ORCID.

Teaching & talks

Courses and workshops on simulation-based inference, from ABC in 2014 to deep learning today.

2023 · 2025 · 2026

Machine Learning for Population Genetics

Recurring international course with Physalia Courses. Simulation, summary statistics, CNNs on genotype matrices and trees, and how to trust (or not) a trained network.

2019 · UFSCar

Spatial Methods in Phylogeography and Population Genetics

One-week course for the Genetics and Evolution graduate program: species distribution modelling, isolation by distance and by environment, population structure, all in R.

2015 · Evolution Meeting

ABC model selection

Lecture and practical at the NSF–SSB Phylogeography and Phylogenetics Workshop: simulating genetic data under demographic models and testing them with Approximate Bayesian Computation.

2014 · UNICAMP

Simulation and ABC for demographic model testing

Lectures at the Phylogeography Workshop, Universidade Estadual de Campinas.

Contact

The lab is in the Real Jardín Botánico, next to the Prado, in central Madrid.

The Puerta Real of the Real Jardín Botánico, a neoclassical gate on the Paseo del Prado
Puerta Real, Paseo del Prado · photo Antonello Dellanotte © RJB-CSIC

Join the lab

We welcome students and postdocs who want to work between evolutionary biology and machine learning, whatever side they are coming from. If you have a question about speciation, phylogeography or diversification and suspect a simulator plus a neural network could answer it, write to us with a short note on what you would like to do.

Finding us

Real Jardín Botánico, CSIC
Plaza de Murillo 2, 28014 Madrid
40.4113° N · 3.6911° W

Metro Atocha or Banco de España; the public entrance is the Puerta de Murillo, opposite the Prado.

Open in Google Maps ↗