Recently, metagenomics has emerged as an alternative to conventional microbiological screening methods, since it allows comprehensive study of microbial communities in their natural environment. Here, we used this technique to assess the extent and diversity of resistance mechanisms in microbial communities associated with the rhizosphere of Erica andevalensis, an extremophilic heather endemic to the Rio Tinto river, Spain. To this end, we built a...