Powered by OpenAIRE graph
Found an issue? Give us feedback
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/ ZENODOarrow_drop_down
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2023
License: CC BY
Data sources: Datacite
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2023
License: CC BY
Data sources: ZENODO
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2023
License: CC BY
Data sources: Datacite
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2023
License: CC BY
Data sources: Datacite
image/svg+xml art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos Open Access logo, converted into svg, designed by PLoS. This version with transparent background. http://commons.wikimedia.org/wiki/File:Open_Access_logo_PLoS_white.svg art designer at PLoS, modified by Wikipedia users Nina, Beao, JakobVoss, and AnonMoos http://www.plos.org/
ZENODO
Article . 2023
License: CC BY
Data sources: ZENODO
The American Naturalist
Article . 2024 . Peer-reviewed
Data sources: Crossref
versions View all 6 versions
addClaim

Host-Parasite Coevolution in Continuous Space Leads to Variation in Local Adaptation across Spatial Scales

Authors: Week, Bob; Bradburd, Gideon;

Host-Parasite Coevolution in Continuous Space Leads to Variation in Local Adaptation across Spatial Scales

Abstract

This repository contains code to reproduce figures and some results associated with the manuscript "Host-Parasite Coevolution in Continuous Space Leads to Variation in Local Adaptation Across Spatial Scales". FIGURE 1: Figure 1 can be reproduced using the Julia script <fig1-defs.jl>, as illustrated by the Julia script <fig1.jl>. These scripts have been tested using Julia version 1.8 and depend on the Julia packages: Distributions SpecialFunctions FFTW LinearAlgebra DataFrames CSV RCall Interpolations Optim Parameters Additionally, for plotting, the Julia scripts above depend on R (tested on version 4.3.0) and the R packages: grid gridExtra viridis ggplot2 The default parameters result in a low resolution version of Figure 1. To produce Figure 1 at the same resolution as in the main text, insert p.n = 600 on line 6 of <fig1.jl>. Before attempting this, please note that such resolution requires over 250Gb of memory. Also note that Figure 1 cannot be reproduced exactly because the algorithm used is stochastic. To learn more about Julia, including how to install it, please visit the documentation: https://docs.julialang.org/en/v1/ To learn more about R, see: https://www.r-project.org/about.html Figure 2: Figure 2 can be reproduced using the R script <fig2.R>. This script has been tested on R version 4.3.0 and requires the R packages: geoR ggplot2 viridis grid gridExtra Again, the default parameters of the script result in a low resolution version compared to the main text. Increasing the resolution is possible by adjusting the num_pts parameter on line 7, but the amount of memory required is rather large for even modest resolutions. Figure 3: Figure 3 can be reproduced by first running the Python script <fig3.py> followed by the R script <fig3.R>. These scripts were tested for Python version 3.10.6 and R version 4.3.0. Figure 4: Figure 4 can be reproduced by running the R script <fig4.R>, making sure that the files <fig4a-vals.csv>, <fig4a-pars.csv>, <fig4b-vals.csv>, <fig4b-pars.csv>, and <xcov-xrng.csv> are all in the working directory. The data stored in these csv files were generated using the Python script <fig4.py>, which produces the file <fig4.csv> containing measurements of parasite local adaptation across a range of spatial distances and many combinations of model parameters. We chose the two most exaggerated examples from this file to form the csv files used to create Figure 4. These scripts were tested for Python version 3.10.6 and R version 4.3.0. Power Spectra: Analytical expressions for the power spectra of our model (equations S.11a-S.11b in Supplementary Material section S3) can reproduced by running the Mathematica notebook <freq-sp.nb>. This notebook was written using Mathematica version 13.2. Co-Located Interspecific Covariance: The expression for the co-located interspecific covariance (equation S.13 in Supplementary Material section S3) can be reproduced by running the Mathematica notebook <Chp0.nb>. This notebook was written using Mathematica version 13.2.

Related Organizations
Keywords

host-parasite coevolution, spatial cross-covariance, gaussian random field, Animals, continuous space, Parasites, Biological Evolution, Adaptation, Physiological, Host-Parasite Interactions

  • BIP!
    Impact byBIP!
    selected citations
    These citations are derived from selected sources.
    This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    5
    popularity
    This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
    Top 10%
    influence
    This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
    Average
    impulse
    This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
    Top 10%
    OpenAIRE UsageCounts
    Usage byUsageCounts
    visibility views 32
    download downloads 40
  • 32
    views
    40
    downloads
    Powered byOpenAIRE UsageCounts
Powered by OpenAIRE graph
Found an issue? Give us feedback
visibility
download
selected citations
These citations are derived from selected sources.
This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Citations provided by BIP!
popularity
This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network.
BIP!Popularity provided by BIP!
influence
This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically).
BIP!Influence provided by BIP!
impulse
This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network.
BIP!Impulse provided by BIP!
views
OpenAIRE UsageCountsViews provided by UsageCounts
downloads
OpenAIRE UsageCountsDownloads provided by UsageCounts
5
Top 10%
Average
Top 10%
32
40
Green