{'fraction_non_alphanumeric': 0.017346053772766695, 'fraction_numerical': 0.0, 'mean_word_length': 5.632183908045977, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
A novel analytical framework to quantify co-gradient and countergradient variation.

Spatial covariance between genotypic and environmental influences on phenotypes (CovGE ) can result in the nonrandom distribution of genotypes across environmental gradients and is a potentially important factor driving local adaptation. However, a framework to quantify the magnitude and significance of CovGE has been lacking. We develop a novel quantitative/analytical approach to estimate and test the significance of CovGE from reciprocal transplant or common garden experiments, which we validate using simulated data. We demonstrate how power to detect CovGE changes over a range of experimental designs. We confirm an inverse relationship between gene-by-environment interactions (GxE) and CovGE , as predicted by first principles, but show how phenotypes can be influenced by both. The metric provides a way to measure how phenotypic plasticity covaries with genetic differentiation and highlights the importance of understanding the dual influences of CovGE and GxE on phenotypes in studies of local adaptation and species' responses to environmental change.