Published May 26, 2025 | Version v1
Software Open

Matlab and R files to create the plots in Ekrem et al. 2025 "Temporal niche differentiation often leads to priority effects rather than coexistence: lessons from a marine midge."

  • 1. ROR icon Max Planck Institute for Evolutionary Biology
  • 2. ROR icon Johannes Gutenberg University Mainz

Description

Matlab R2024a

R version 2024.04.2+764)

 

Packages in R:

R.matlab version 3.6.2

ggtern version 3.3.0

grid version 4.0.2

 

 

‘RunModFig….m’: generates data (‘DataFig…_variables.mat’) for figures plotted in R (‘ProduceFigure….R’).

 

The model uses the following files in Matlab:

‘TrackDynamics.m’ tracks the changes in frequencies of 3 strains over one or multiple seasons consisting of 44 weeks. If the input parameter seasonality_option is zero, then the code runs one season and it always starts with the same moon phase (used to create all the figures in the main text). If seasonality_option=n, where n is some integer larger than 0, then the code runs n consecutive seasons and every season starts with a random moon phase.  The three different pure strains that in the text is referred to as EM1, EM2 and EF, are called S1,S2 and A (or As), respectively, or FM, NM and SL, respectively. The three other genotypes are hybrids of the three pure strains.

‘matingprob.m’ calculates mating success for females during emergence events, using the function in file ‘beach.m’.

‘computetriangle.m’ stores the correct data for producing the ternary plots.

Files

Files (114.8 kB)

Name Size Download all
md5:13e12a0815ea7d5cc7cd8fa8303fa9ce
172 Bytes Download
md5:a838e8ff15f6a9231c9347a79eab3ef7
2.3 kB Download
md5:1d1982abad9239f51f381b31c5f6c69d
363 Bytes Download
md5:21572d03340d99fb58c5261e9cc534a4
10.3 kB Download
md5:cebbc041d0c0f3833bc1bd83109d7c97
5.1 kB Download
md5:35caae659e33b77c2f051a1a2b88166c
7.2 kB Download
md5:8e98d12a4732b44d818a5ddc4acb8584
5.2 kB Download
md5:574c9460b629223d4d497193e9f0301f
5.1 kB Download
md5:bcc8308b4643bf6c47f6715668299bd9
5.2 kB Download
md5:d98d4f7f5634398c03a92020caa635e7
5.2 kB Download
md5:f3c665b1e10bafcc1528ab09b4bd2acb
5.2 kB Download
md5:e71017b7db05160e94d444f3e2955188
5.2 kB Download
md5:269b333bcf0065b0a3eacdd348c826f6
5.2 kB Download
md5:b5b44c0a9be1cade1dac07dfc9c50e3d
13.8 kB Download
md5:6670c9dbc3ab06e7b929a06007b9ec28
7.2 kB Download
md5:e99e1073d5fe6ef6d74d5c0d1a218ca5
5.1 kB Download
md5:e492f6e4c3aed8cf0c28c059b2c58b24
4.8 kB Download
md5:d376514f25a0393302e7fa43f5c6997f
4.0 kB Download
md5:0f8b6b22924db39ada5f6c5c1abc0517
4.0 kB Download
md5:504a4ce1e48b642e4e47d2c9c537dd52
14.5 kB Download

Additional details

Software

Programming language
MATLAB, R