recipe bioconductor-lea

LEA: an R package for Landscape and Ecological Association Studies






LEA is an R package dedicated to population genomics, landscape genomics and genotype-environment association tests. LEA can run analyses of population structure and genome-wide tests for local adaptation, and also performs imputation of missing genotypes. The package includes statistical methods for estimating ancestry coefficients from large genotypic matrices and for evaluating the number of ancestral populations (snmf). It performs statistical tests using latent factor mixed models for identifying genetic polymorphisms that exhibit association with environmental gradients or phenotypic traits (lfmm2). In addition, LEA computes values of genetic offset statistics based on new or predicted environments (, genetic.offset). LEA is mainly based on optimized programs that can scale with the dimensions of large data sets.

package bioconductor-lea

(downloads) docker_bioconductor-lea



depends libblas:


depends libgcc-ng:


depends liblapack:


depends r-base:




You need a conda-compatible package manager (currently either micromamba, mamba, or conda) and the Bioconda channel already activated (see set-up-channels).

While any of above package managers is fine, it is currently recommended to use either micromamba or mamba (see here for installation instructions). We will show all commands using mamba below, but the arguments are the same for the two others.

Given that you already have a conda environment in which you want to have this package, install with:

   mamba install bioconductor-lea

and update with::

   mamba update bioconductor-lea

To create a new environment, run:

mamba create --name myenvname bioconductor-lea

with myenvname being a reasonable name for the environment (see e.g. the mamba docs for details and further options).

Alternatively, use the docker container:

   docker pull<tag>

(see `bioconductor-lea/tags`_ for valid values for ``<tag>``)

Download stats