Skip to main content
PLOS One logoLink to PLOS One
. 2022 Nov 28;17(11):e0277204. doi: 10.1371/journal.pone.0277204

FRAME—Monte Carlo model for evaluation of the stable isotope mixing and fractionation

Maciej P Lewicki 1,*, Dominika Lewicka-Szczebak 2, Grzegorz Skrzypek 3
Editor: Viacheslav Kovtun4
PMCID: PMC9704640  PMID: 36441721

Abstract

Bayesian stable isotope mixing models are widely used in geochemical and ecological studies for partitioning sources that contribute to various mixtures. However, none of the existing tools allows accounting for the influence of processes other than mixing, especially stable isotope fractionation. Bridging this gap, new software for the stable isotope Fractionation And Mixing Evaluation (FRAME) has been developed with a user-friendly graphical interface (malewick.github.io/frame). This calculation tool allows simultaneous sources partitioning and fractionation progress determination based on the stable isotope composition of sources/substrates and mixture/products. The mathematical algorithm applies the Markov-Chain Monte Carlo model to estimate the contribution of individual sources and processes, as well as the probability distributions of the calculated results. The performance of FRAME was comprehensively tested and practical applications of this modelling tool are presented with simple theoretical examples and stable isotope case studies for nitrates, nitrites, water and nitrous oxide. The open mathematical design, featuring custom distributions of source isotope signatures, allows for the implementation of additional processes that alternate the characteristics of the final mixture and its application for various range of studies.

1 Introduction

Partitioning of sources contributing to the stable isotope composition of a mixture, the isotope mixing, also known as a stable isotope mass balance, enable determination of n + 1 source contributions for n isotopes analysed in a sample. This purely algebraic calculation technique has been employed for a long time across various disciplines. However, we often deal with more than n + 1 sources, that require application of iterative calculations, such as Bayesian statistics, to obtain the probability distributions of possible outcomes [13]. Such methods will provide solutions for complex cases that cannot be solved using algebraic calculations; however, they will not provide an exact result but a range of statistically probable solutions.

Stable isotope mixing models were initially developed for food-web studies to identify dietary proportions [2, 47]. These models usually allow distinguishing more than n + 1 sources for n analysed isotopes. The model output provides the probability distributions of source contributions, including uncertainty, respectively to uncertainties arising from measurements and determination of source isotope signatures. This uncertainty is usually reported as a confidence interval of the contributing fractions. These models have already been adopted for defining water, dust, organic matter, or aerosol origins [810] and are also commonly used for the partitioning of nitrate sources in groundwaters [1113] or surface waters [1416].

However, the existing tools for applying isotope mixing models do not include the possible further isotopic fractionation of the product after mixing. This is usually not critical for food-web studies, where fixed values for fractionation factors are used, but is often important for other stable isotope analyses. For example, nitrates may undergo intensive denitrification processes, which can significantly alter their final isotopic signatures [1719]. Therefore, the application of a simple mixing model neglecting possible further isotopic fractionation of the final product may result in a bias in the model outputs [11, 1316, 20]. Some studies applying the nitrate mixing model manage to partially include denitrification fractionation in the model as a parameter added to the source isotopic signatures but without taking into account the fractionation progress [12]. This is a simplification assuming that the amount of reduced nitrate is constant across measured samples and this assumption results in a simple linear offset in the residual nitrate isotopic signature. However, this approach is not sufficient for a precise description of mixture origins, if significant fractionation occurs and determination of the fractionation progress is required.

Precise accounting for the fractionation progress is vital for the determination of N2O origins, that requires simultaneous determination of the fractions of the N2O originating from different production pathways and the fraction of reduced N2O [21, 22]. Hence, the mixing model must be combined with the potential isotopic fractionation of the produced N2O during its reduction to N2 [22]. N2O is a very unique compound that can be analysed to obtain three different stable isotope signatures: δ15N, δ18O and SP (site preference). SP provides additional information reflecting the 15N enrichment in the central N position of the linear N2O molecule in relation to the external N atom. Consequently, three isotope values can be applied to determine the contribution of main N2O production pathways and the progress of N2O reduction. The very first attempt to jointly model N2O mixing and fractionation using Bayesian statistics was presented by Toyoda et al. [23], where two isotopic signatures δ15N and SP were applied to distinguish between two mixing sources and to estimate the isotopic fractionation associated with N2O reduction. Later studies further developed this approach by including also δ18O to this evaluation [24, 25]. Finally, a complete modelling approach based on all three N2O isotopic signatures was proposed and validated in a recent study by Lewicka-Szczebak et al. [21].

Here, we present a detailed description of the developed model that includes both stable isotope mixing and fractionation of compounds originating from sources characterised by different stable isotope composition: isotope FRactionation And Mixing Evaluation model (FRAME). To make this modelling approach widely applicable, we propose software with a user-friendly graphical interface. The stable isotope fractionation is added to the mixing model as an additional parameter and may be defined by the user for different requirements of a particular isotope system, e. g., fractionation in an open or closed system, equilibrium fractionation, or other special cases. The model can integrate up to three isotopic signatures of each compound. Another novel feature of this model is the introduction of isotope mixing sources as ranges of values showing equal probability instead of assuming the highest probability for the mean values. This approach is much more relevant to real-life conditions for most stable isotope case studies. FRAME was initially designed and tested for application in stable isotope studies. However, this tool can be used with many other tracers in different research areas, because the mathematical formulas are universal for any mixing cases with the possible addition of processes that alternate the characteristics of the final mixture. The primary aim of this study was to develop easy-to-use software with a flexible mathematical algorithm and comprehensively test it using several case studies.

2 Methods

2.1 Partitioning contributions from different sources to mixtures using stable isotopes

The stable isotope composition of the various elements in a chemical compound can be analysed simultaneously. Sometimes stable isotope composition can also be determined for a specific atom site position in a molecule. Therefore, several stable isotope signatures can be identified for each compound in a sample. The stable isotope compositions are usually reported using delta notation in permille (‰, as 1000×δ), e. g.:

δ18O=Rsample/Rstandard-1 (1)

where R is stable isotope ratios between heavier and lighter isotope (e.g., R = 18O/16O) in the analysed material and internationally recognised reference material defining the zero point of the stable isotope scale (e.g., VSMOW-SLAP). The stable isotope composition of a sample representing a mixture can be used to disentangle relative fractions from the sources contributing to the mixture using mass balance models (found by means of analytic calculation and standard propagation of uncertainties, see Sec.3.1.1, 3.2.1). The exact calculations are possible for certain cases when the number of sources is low and they have significantly different stable isotope signatures. However, three commonly encountered conditions render algebraic calculation impossible:

  • The number of sources m is greater than the number of stable isotope signatures plus one (> n + 1).

  • The source stable isotope composition is defined as a non-normal probability distribution (e. g. uniform distribution within a given range).

  • Additional processes are affecting the isotopic signatures, i. e. isotope fractionation or equilibration.

Solutions to this category of problems are frequently sought using Monte Carlo numerical methods. In this study, a Markov-Chain Monte Carlo (MCMC) algorithm was implemented to evaluate the mixing fractions and the contributions from fractionation processes, their correlation and uncertainties. The model is based on the Metropolis-Hastings algorithm (Sec. 2.3).

2.2 Input data and mixing model

The MCMC model calculates the fractional contributions from individual sources based on the measured isotopic signatures and a declared model equation that describes the mixing and other possible processes affecting the mixture. The following variables need to be identified to start the calculations:

  • Sample measurements, x = (x1, x2, …)T (vector, T annotates the transposition), where x1, x2, … refer to measured stable isotope signatures of the sample, e. g. δ18O or δ15N. The number of measured isotope signatures n (1 ≤ n ≤ 3) determines the dimension of the modeled stable isotope system (the following short-hand notation is used throughout the article: 1D, 2D, 3D).

  • Stable isotope composition of potential sources contributing to the mixture S = (S1, S2, …, Sm). Each source is represented by an n-dimensional vector Si = (S1,i, S2,i, …)T, where Sj,i is the measured mean corresponding to i-th considered isotope signature (x1, x2, …). The number of sources m does not have any upper limit.

  • Optional auxiliary parameters A = (A1, A2, …)T that describe the fractionation process that modifies the model on top of the standard mixing of sources (see Sec. 5 for examples). There is no upper limit on the number of auxiliary parameters.

Monte Carlo integration is based on the model equation given by the user, which describes the mixing process and any other processes that might influence the stable isotope composition. In the simplest scenario, when it is expected that no process other than mixing is affecting the sample composition, the model takes the following form (later referred to as μ0):

μ=μ0=i=1mfiSi (2)

The model equation takes a different form when other processes affect the final isotope composition of a mixture, such as oxidation, reduction, evaporation, radioactive decay, etc, allowing for the integration of auxiliary parameters (A) and variables (r) to be estimated:

μ=μ0+μaux(A,r) (3)

Examples of the inclusion of fractionation processes are discussed in detail in Sec. 3.3.

Glossary

  • n − number of measured isotope signatures (e. g. δ-values)

  • x = (x1, x2, …)T—vector of n measured isotope signatures

  • m—number of sources

  • S=(S1,S2,,Sm)=(S1,1S1,2S1,mS2,1S2,2S2,m)

    – matrix of measured mean characteristic isotopic signatures of the sources

  • A = (A1, A2, …)T—vector of auxiliary parameters.

  • Model equation:
    μ=μ0+μauxA,r,μ0=i=1mfiSi(mixing+fractionation)(mixing)
  • Model variables:
    • sources fraction contributions:
      f1, f2, …, fm, where i=1mfi=1 and fi ∈ [0, 1]
    • auxiliary variables: r1, …, where ri ∈ [0, 1]

2.3 Metropolis-Hastings algorithm

The Markov-chain Monte Carlo procedure implemented in FRAME uses the Metropolis-Hastings algorithm to scan the phase-space of possible solutions. The probability distributions of the drawn random variables were taken in the most general variants (uninformative priors) as given below in the description of the algorithm. The simulation begins with setting the threshold value T = 0 and then for each sample the following list of instructions is executed:

  • Read vector of measurements x and σ(x) for its uncertainties (e.g. isotope delta value).

  • For each iteration:
    1. Draw random variables fi from Dirichlet distribution, where i ∈ [1, m] iterates the sources, f = (f1, f2, …, fm).
    2. If there are any auxiliary variables: draw random variables ri from uniform distribution in [0, 1] (where i iterates auxiliary variables), r = (r1, r2, …).
    3. Draw random variable α from uniform distribution in [0, 1].
    4. Calculate the model equation μ(f, r).
    5. Calculate the likelihood function L(x|μ).
    6. If L(x|μ) ≥ αT:
      • set T = L,
      • if burnout is finished: append drawn variables (f, r) to the Markov chain.
    7. If Markov chains achieve the desired length or if the number of iterations is exhausted, finish and store the Markov chains.

For each of the simulated variables (f1, f2, …, r1, …) a chain of accepted entries (Markov chain) is obtained from which a distribution can be calculated together with correlations of each pair of variables. For the final result, the mean of the distribution is taken and the statistical uncertainties are evaluated by finding the limits that enclose 68.2% (“1σ”) of the distribution. The interpretation of the results and their uncertainties are explored in greater detail in Sec. 4.1.

3 FRAME in simple examples

The implementation of MCMC in the FRAME model allows for a precise determination of the range of possible solutions to isotope mixing problems and the correlations between evaluated variables. In this section, a set of simple theoretical examples is presented to explain the applied solutions and the uncertainty in the computation interpretation. To acquire experience in interpretation how the data uncertainties and the size of the model’s solution phase space influence the final results, we examine examples with increasing levels of complexity. First, 1D calculations are shown and we present how data uncertainties are accounted for in both analytical and model computations. The description continues with a generalization of the problem into 2D models and we show a set of exemplary model calculations for common cases. This section concludes with a demonstration of how the process of fractionation is included in the 2D model.

3.1 1D mixing calculation and modeling

3.1.1 Analytical calculations for two sources in 1D

The simplest case study can be formulated as a mixing of two sources (S1 and S2). The source (S1 and S2) and the mixture (x) isotopic signatures are known with perfect accuracy (there are no uncertainties). This scenario can be described using the following equations:

{x=f1S1+f2S2f1+f2=1 (4)

and can be simply solved, obtaining:

f1=S2-xS2-S1,f2=x-S1S2-S1 (5)

The next step is to explore how this case can be solved when finite uncertainties are considered. The uncertainties of measurements of x, S1 and S2 are given by: σx, σS1 and σS2 respectively. Using standard methods of error propagation, the following uncertainty estimation for f1 is obtained:

σf12=|f1x|2σx2+|f1S1|2σS12+|f1S2|2σS22 (6)

and analogically for f2. Note, that now the solution is no longer a single number, but instead it is given as a Gaussian-like probability distribution with a maximum at f1 (f2) and width σf1 (σf2). Alternatively, a case can be considered in which the source isotopic signatures do not give a particular value (with uncertainty), but instead are treated as a range of values characteristic of this source. It is then assumed that Si can take any value in the range (Si − ΔSi, Si + ΔSi) with equal probability. The solution was modified into the following form:

f1(S2-ΔS2-xS2-ΔS2-S1+ΔS1,S2+ΔS2-xS2+ΔS2-S1-ΔS1) (7)
f2(x-S1-ΔS1S2+ΔS2-S1-ΔS1,x-S1+ΔS1S2-ΔS2-S1+ΔS1) (8)

Such a solution is no longer unique, instead, a “phase space” of possible solutions is obtained and the final result is given as an uniform probability distribution bounded by the limits given in the above equations.

Two ways of defining source Si:

  • Point with uncertainty: Si±σSi

    In this case the source is described by a well defined mean value with analytical uncertainty, which represents the highest probability (see Eq 12).

  • Range of equally probable values: Si ∈ (Si − ΔSi, Si + ΔSi)

    The natural variance of the source is described by the range of values showing equal probability for each value within this range (see Eq 13).

Which option to use?

In nature, most sources have a certain natural variance rather than a discrete value. Therefore, the range of equally probable values usually better describes the real-life scenario and whenever possible the full range should be determined. Moreover, this range can be further broadened with the addition of analytical uncertainty of measured source isotope composition, which is added as a margin at the edges of the range (see the S1 Appendix for details).

The format of point-like source can be applied for precisely determined source values, e. g. in experiments conducted for the particular case studies.

3.1.2 Modelling in 1D

In this section, modelling of the 1D case will be studied, which, although trivial, will serve as an introduction to the methods and terminology used. The Monte Carlo model will be considered (as defined in Sec. 2.3) to obtain the solution by maximizing a likelihood function L. Depending on the source definition, it will be formulated as follows:

  1. Source Si is defined as a point with uncertainty:
    L(x|μ,σ)=1σ2πexp(-(x-μ)22σ2) (9)
    where L(x|μ, σ) is the likelihood of measurement x given calculated μ and σ, which are defined as:
    μ=f1S1+f2S2,σ2=f12σf12+f22σf22
  2. Si is defined as a finite uniform distribution (see Appendix A in S1 Appendix for details):
    L(x|μ,σ,Δ)=erf(x-μ-Δ2σ2)-erf(x-μ+Δ2σ2) (10)
    where again L(x|μ, σ, Δ) is the likelihood of measurement x given calculated μ, σ and Δ which are defined as:
    μ=f1S1+f2S2,σ2=f12σf12+f22σf22,Δ=μS1ΔS1-μS2ΔS2
    Note that σf1 and σf2 now do not include uncertainties of Si, unlike in the example above. Instead, a new variable Δ (later referred to as spread) accounts for their finite variability in the (μ − Δ, μ + Δ) range.

In the example calculations for this case study, the following parameters were used for defining the sources and the sample (Table 1), both assuming that fractions f1 and f2 are equal to 0.5:

Table 1. Input values used for the calculations of 1D examples.

See the text for details.

example 1 example 2
value uncertainty value uncertainty spread
x 11 0.1 x 11 0.1 -
S 1 2 2 S 1 2 - 2
S 2 20 4 S 2 20 - 4

The results obtained with both variants of the model (Table 2) can be confronted with true values of f1 and f2 and analytically calculated uncertainties. The verification can be followed as:

σfi2=|fix|2σx2+|fiS1|2ΔS12+|fiS2|2ΔS22 (11)

Parameters σfi are simply standard deviations of obtained distributions and the confidence intervals were calculated as described in Sec. 4.1.

Table 2. Model outputs for the mixing case study defined in Table 1.
f 1 f 2 σf1 σf2 f1 68% CI f2 68% CI
analytical 0.500 0.500 0.124 0.124 - -
model, example 1 0.495 0.506 0.098 0.098 0.397–0.593 0.408–0.604
model, example 2 0.475 0.525 0.099 0.099 0.420–0.539 0.469–0.587

Note that the uncertainties and the spread of sources isotopic signatures are affecting the calculations through different mechanisms, thus have significantly different influences on the variables’ distribution and in consequence on the results and their uncertainties (Table 2, Fig 1). In each analysis, an important choice must be made regarding which mechanism of defining sources is more suitable for a given problem. In most cases a combination of both approaches will be the most accurate, provided that enough information on the source determination is available.

Fig 1. Results of FRAME calculation of two simple 1D examples: One treating the sources as points with uncertainties (left) and the other assuming their flat probability distribution with a certain range (right).

Fig 1

Equal contribution of both sources was assumed and exact input values are listed in Table 1. The histograms on the diagonals shows distributions f1 and f2 built with the simulated Markov chains. The horizontal axis represents the values of f1, f2 fractions and the vertical axis marks the number of counts (iterations). The top right panels show the scatter-plot of all entries, where abscissa is the value of f1 and ordinate shows f2. The bottom left panel shows the correlation coefficient.

3.2 2D mixing calculation and modelling

3.2.1 Analytical calculations in 2D

The presented 1D calculations are now repeated for 2D case studies and they can be further generalized to higher dimensions. The simplest case with two measured isotope signatures and three sources contributing to the mixture can also be considered in two primary variants (Fig 2, Sec. 3.1):

Fig 2. Sketch of a simple 2D case study.

Fig 2

I1 and I2 span the two dimensions of the calculation and measurement x originates from the mixing of three sources S1, S2, S3. The objective was to calculate the contributions from each source. The left panel shows sources considered as points with uncertainties and the right panel shows sources as rectangles reflecting the range of possible values observed in the sources.

  1. sources as points with uncertainties,

  2. sources as a range of possible values.

In both cases, the calculation can be described using the following set of equations:

{x=(x1x2)=(S1,1S1,2S2,1S2,2)(f1f2)f1+f2+=1 (12)

Note that the above set of equations is solvable only if the number of sources does not exceed 3, otherwise there is no unique solution. Similarly, assuming a finite spread of sources’ signatures, the solutions will not be unique. Still, however, the phase space of possible solutions can be studied and it may provide some limits on the fi values and correlations between fractions fi. This can be done with MCMC modelling as described in the following section.

3.2.2 Modelling in 2D and higher dimensions

The modelling in 2D and higher dimensions does not differ from the 1D case, although the likelihood function that the algorithm evaluates in each step is modified to account for additional dimensions in the following way:

  1. Sources as points with uncertainties
    L(x|μ,σ)=i=I1,I2,1σi2πexp(-(xi-μi)22σi2) (13)
  2. Sources as finite ranges
    L(x|μ,σ)=i=I1,I2,[erf(xi-μi-Δi2σi2)-erf(xi-μi+Δi2σi2)] (14)
    where
    Δi=μiSi,1ΔSi,1+μiSi,2ΔSi,2+ (15)

Note that this form of model equations is valid for any number of considered sources and any number of dimensions.

3.2.3 2D mixing with FRAME

This section presents a simple example of the mixing of three sources characterised by two stable isotope signatures (2D). To illustrate the basic principles of the model operation a simple hypothetical dataset was used. In this example, the contribution from each of the three sources to the mixture was exactly at 1/3. The sources were clearly separated, and all sample isotope signatures were located within the accessible domain (within a mixing polygon limited by three sources). The exact input data are listed in Table 3.

Table 3. Model input parameters for 2D calculations with two isotope signatures I1, I2 and three sources: S1, S2, S3.
parameter I 1 I 2 ΔI1 ΔI2 σ I1 σ I2
x 10 10 - - 1 1
S 1 0 0 1 1 - -
S 2 10 30 2 2 - -
S 3 20 0 2 1 - -

The model is initialized with a randomized configuration of f1, f2 and f3. New configurations are drawn in each iteration and if the Metropolis condition (item f. in Sec. 2.3) is fulfilled it is added to the saved Markov chain. This is illustrated in Figs 3 and 4; the line-plots in the first figure show more than 800 entries accepted into the Markov chains of probed variables representing the measured isotope signatures of the sample. The scatter-plot in the second figure also visualizes consecutive entries in the Markov chain, although the configurations are translated into (I1,I2) space, i. e. positions in the (I1,I2) plane. Each dot stands for an entry in the chain and consecutive dots are connected with the blue line. The portion of the initial iterations, called “burn-out” (or “burn-in”), is discarded. This initial sequence is used for the model self-stabilization, as it starts from random configurations of low-likelihood. The burn-out phase is visible in both figures as a few of the first iterations are placed far from the main cloud. No general rules indicate the necessary number of burn-out iterations, and it is not straight-forward to verify whether the stabilization was indeed achieved. In the presented examples, the number of burn-out iterations was set at an arbitrary value and then tested if it was sufficiently high. This topic is revisited in greater detail in Sec. 4.2. Both the variance in time-series and the size of the cloud of points in (I1,I2) space reflect the data uncertainty and the spread of the sources.

Fig 3. Mixing configurations (f1, f2, f3) from all model iterations that fulfilled the Metropolis condition—The Markov chain.

Fig 3

The number of initial iterations required for the model stabilisation is discarded (burnout, left to the dashed line), reaching the region of maximum likelihood. In MCMC simulations it is crucial that stabilization is indeed achieved, therefore such a plot is a key tool for quality assessment. In this example, the simulation begins with fractions already close to the equilibrium value, thus the stabilization is achieved virtually instantly and no visible change in oscillations is observed in dependence on the iteration number.

Fig 4. The path of consecutive entries stored in the Markov chain plotted in I1, I2 plane.

Fig 4

Each dot represents a model value μ calculated for each of mixing configurations (f1, f2, f3) and the line connects consecutive entries. The measurement is denoted with a black dot and error bars, while the sources and their spread are represented with shaded rectangles. The red rectangle represents the boundary with the middle at x and sides’ length is taken as Δi (see Eq 15). Additional red whiskers stand for σi (see Eqs 13 and 14).

The computation outcomes can be presented on the histograms (Fig 5, on the diagonal) calculated from the variables building the Markov chains along with their correlations as contour-plots (Fig 5, top-right) and correlation coefficients (Fig 5, bottom-left). The histograms show that the distribution of each of the evaluated mixing fractions has a well-defined maximum and their widths can be easily examined. Each of the estimated variable pairs shows a negative correlation, which follows expectations as all fractions should add up to unity, and gain in one should correspond to a loss in the other. The highest correlation is seen for the pair S1, S3 and also their distributions are much wider than for S2. This reflects that both S1 and S2 have the same isotopic signature I2.

Fig 5. Histograms (on the diagonal) calculated from the variables building the Markov chains along with their correlations as contour-plots (top-right) and correlation coefficients (bottom-left).

Fig 5

See the text for a more detailed analysis of the data shown.

Note that all calculated fractions fall very close to their true values expected from solving algebraic equations for the mixing model (Table 4). However, this alone is not sufficient to judge whether the simulation was successful and whether the model indeed describes the data. FRAME provides the set of performance plots described below, which are updated in real-time during the computation and serve as basic validation tools:

Table 4. Results of the MCMC calculations for the mixing of the three sources.

The sources were separated very well and contributed equally to the sample mixture.

mean median st. dev. CI68% low CI68% up true
f 1 0.331 0.334 0.074 0.252 0.411 0.333
f 2 0.334 0.336 0.047 0.286 0.383 0.333
f 3 0.335 0.331 0.077 0.253 0.419 0.333
  • Markov chain time series (Fig 3)—a purpose of this chart is to visualize the stability of calculated solutions. The desired stable output should resemble a random noise concentrated around the mean value. The uncertainty of the variable determines the spread of the noise, which frequently may be very large. The model can be considered incorrect in an unlikely event when the plot shows no stabilization or the entries are scattered around two or more discerned values. In such cases, the model encounters several regions of similar likelihood and thus any further calculation will be heavily biased.

  • Optimization path (Fig 4)—an expected output for this figure is a cloud of points, centered around the measurement, which size is determined by the uncertainties and the spread of the sources. Note, however, that each dot represents a mean model value μ = μ(f1, f2, f3), thus by construction it may never appear outside the polygon marked by the centers of the rectangles representing sources. Thus, it is possible to record a measurement outside the polygon, although within the distance not larger than the summed spread of the sources in each dimension (Δi), plus the uncertainty (σi). In such cases, the cloud of simulated points is largely deformed, with a sharp edge along the polygon boundary. However, this would not mean that the model fails to describe the data and the obtained results will still be accurate. If the measurement falls beyond the discussed range, it must be assumed that either not all sources are known or there is another, unaccounted, mechanism affecting the stable isotope composition (e. g. fractionation).

  • Variable correlations (Fig 5)—the distributions shown in this plot are drawn discarding the burnout iterations and are frequently shown as a final representation of the model results. However, the features of the drawn data may also serve as an effective sanity check. In an unlikely situation when the model finds two separated local maxima, it may also manifest in the double-peak structure of the histograms or the 2D contour plots. In such cases, the results of the simulation will be incorrect.

For a broader summary on the topic of quality assessment please consult Sec. 4.2. For other practical examples please see the S1 Appendix.

3.3 Auxiliary parameters expanding model calculation capacity

The unique core functionality of FRAME is its flexibility to include various auxiliary parameters that can describe processes other than mixing. The model equation can be modified to account for, e. g., the progress of stable isotope fractionation respectively to the substrate residual or reacted fractions. Any equations defined by the users can be included, but the most commonly used are the following (defined as in the glossary in Sec. 2.2):

  1. Open system fractionation—characterized by continuous substrate replenishment and product removal. This fractionation is applicable for steady-state systems where the input and output fluxes are in equilibrium, hence the concentrations remain constant over time following the equation:
    μ=μ0-A(1-r) (16)
    where μ is the final stable isotope composition after fractionation, μ0 is the stable isotope composition of the initial mixture before fractionation, A stands for isotope fractionation factor (reflecting the difference between product and substrate isotope composition), and r for the residual unreacted fraction.
  2. Closed system (Rayleigh-type) fractionation—characterized by the limited substrate pool and accumulated product:
    μ=μ0+Aln(r)
    where μ is the final stable isotope composition after fractionation, μ0 is the stable isotope composition of the initial mixture before fractionation, A stands for isotope fractionation factor (reflecting the difference between product and substrate isotope composition), and r for the residual unreacted fraction.
    It is possible that such isotopc fractionation occurs after mixing, i.e. the mixture of all sources undergoes fractionation, which can be described as follows:
    μ=Aln(rA)+f1S1+f2S2+f3S3 (17)
    or only some of the sources undergo isotope fractionation before mixing, while this fractionation do not apply for the other sources, which can be described with the following equation:
    μ=f1(S1+Aln(rA))+f2S2+f3S3 (18)
    Examples of these both cases have been described before for N2O studies [21].
  3. Equilibrium fractionation—occurring due to an abiotic process of the stable isotope exchange between various phases or as a result of reversible reactions between various compounds; usually, this effect is temperature-dependent:
    μ=μ0(1-r)+Er
    where μ is the final stable isotope composition after fractionation, μ0 is the stable isotope composition of the initial mixture before fractionation, E is the stable isotope composition after complete isotopic equilibration and r is the equilibrated fraction. For systems remaining in full equilibrium, r equals 1 and μ equals E. Note that in some specific cases the equilibration should be considered independently for different elements of one compound characterised by different r. In such cases, r value needs to be multiplied by an additional parameter defined separately for each isotopic signature (an example is presented in Sect. 4.2), as follows:
    μ=μ0(1-rA)+ErA
  4. Special cases of fractionation may be represented by complex equations (e. g., combing isotope fractionation and exchange), e. g., water evaporation. An example of this case is discussed in Sec.5.2.

For practical instructions on how to introduce auxiliary parameters and equations into the model see the S1 Appendix. In the example below the 2D model that includes isotope fractionation occurring in a closed system (Rayleigh-type fractionation) as per the equation from point 2 is presented. Table 5 shows the exact values used in the simulation.

Table 5. Model input parameters for 2D calculations with two isotope signatures I1, I2 and three sources: S1, S2, S3.

parameter I 1 I 2 ΔI1 ΔI2 σ I1 σ I2
x 25 25 - - 1 1
S 1 0 0 3 4 - -
S 2 10 30 4 3 - -
S 3 20 0 3 4 - -
A -5 -5 - - 1 1

Introducing the stable isotope fractionation to the model algorithm adds a degree of freedom in the simulation of sources contribution, which is pictured in Fig 6. Dashed lines project the path along which the progress of fractionation will modify the signatures of the original mixture. Accounting for the fractionation causes much wider distributions of simulated outcomes and thus also larger uncertainties (Figs 7 and 8).

Fig 6. Simulation of 2D mixing and fractionation—the sources S1, S2 and S3 are pictured with grey rectangles and dashed lines show the direction and boundaries related to the fractionation process.

Fig 6

The measured sample is represented by a black circle and blue dots show consecutive configurations accepted by the MCMC algorithm plotted in a I1-I2 space.

Fig 7. The MCMC algorithm evaluated probability distributions of 3 mixing fractions: fS1, fS2, fS3 and fractionation parameter r describing the mixture (histograms on the diagonal) with cross-correlations (top-right) and calculated correlation coefficients (bottom-left).

Fig 7

Positive correlation of source S2 contribution and the progress of fractionation process r is due to opposite influence on the mixture (increasing fS2 results with higher I1 and I2 values, while increasing r does the opposite due to negative value of the parameter A). The non-linear shapes of the contour plots in the right-most column are due to logarithmic dependence on r (see Eq 17).

Fig 8. Summary statistics on the simulation results: The circle stands for the mean value, the horizontal line represent the median, the box encloses 68% confidence interval (CI) and the whiskers stand for 95% CI.

Fig 8

The red crosses show the true values used to create the simulated dataset.

4 Reporting and validation of results

4.1 Results and uncertainties

The MCMC algorithm reports the results as distributions of the evaluated variables. The standard procedures of reporting the means and standard deviations are not suitable in this situation, as the distributions are confined in the range between 0 and 1 and their shapes are non-Gaussian.

In FRAME, we propose a consistent method of computing statistical uncertainties by calculating the limits, which enclose 68.28% of the total distribution around the median. This corresponds directly to the standard method of assigning ±1σ (standard deviation) as the combined uncertainty while ensuring that the limits fall within the accessible domain of [0, 1] (Fig 9).

Fig 9. Example calculation of statistical uncertainty based on the simulation described in Sec. 3.3.

Fig 9

The cumulants of evaluated variables are used to determine the boundaries of 68.28% (“1σ”, dashed red lines) and 95.45% (“2σ”, dotted red lines) confidence intervals. Solid green and red lines stand for mean and median, respectively.

The combined uncertainty reported by FRAME accounts only for the propagation of uncertainties attributed to samples or sources as defined by the user and any systematic bias must be studied for each individual case. Possible sources of systematic uncertainties include:

  • The model is incomplete.

    If the studied mixture is affected by any additional sources or processes that are not accounted for in the model equation, then the algorithm will not produce reliable results. Calculated fractions and fractionation factors will be biased, as the algorithm will try to compensate for a missing source or an unimplemented process.

  • The input data are flawed or inaccurate.

    Frequently the measurements of stable isotope compositions of samples and sources are performed independently, using different methods, characterized by different uncertainties. Inconsistency in the used data sets will lead to inaccurate model output.

  • Natural variations and measurement uncertainties are not properly distinguished.

    The distinction between natural variation and measurement uncertainties is essential for the accurate estimation of mixing. This was discussed in detail in Sec. 3.1 in the context of sources input data, although it is equally important in the case of sample measurements, in particular when the algorithm is run simultaneously for multiple data points.

4.2 Quality assessment and validation

FRAME provides several tools that are useful for assessing the correctness and significance of the obtained results. The set of control plots is generated in real-time during the running of the algorithm, showing basic properties and the progress of Markov chain generation (see: Sec. 3.2.3).

The first crucial step for verification of MCMC algorithm correct implementation is confirmation that the Markov chain converges to a stationary distribution. Since the calculations in the discussed examples are rather simple from a numerical perspective, the convergence is usually rapid (≲ 10 steps) and instabilities were not observed. Although, if the convergence is not apparent for a particular case study, the stability of the algorithm can be tested by running several independent simulations and comparing the distributions of simulated variables (for example with a two-sample z-test).

The second step is to confirm that the experimental data can indeed be described by the implemented model. While there is no definite criterion that would mark an incorrect model description, FRAME provides a statistical measure of how accurate the solution is with respect to the measured data. In the case of the Gaussian-like likelihood function this can be assessed by performing a z-test:

z=|x-μ¯|σ/n (19)

where x is the stable isotopic signature, μ¯ is an averaged value calculated from Markov chain entries, σ stands for its spread and n is the number of entries. However, in a situation in which the finite natural variation in sources (spread) is considered a slightly modified approach needs to be used. The z score will be set at zero when the average model value μ¯ lies within the bounds given by ±Δ around the measured sample and if it lies beyond, the previous equation will be modified in the following way:

z=min(|x-μ¯-Δ|,|x-μ¯+Δ|)σ/n (20)

Fig 10 illustrates both described cases (Eqs 19 and 20). The value of the z-score can be converted using standard methods to the probability of rejecting the hypothesis that the given data was measured under the assumed model (1 − P(x|model)), i. e. a z-score of 2 corresponds to a probability of ≈95%, z score of 3 to ≈99.7%, etc.

Fig 10.

Fig 10

Left panel: The z score equals zero when the average model value μ¯ lies within the bounds given by ±Δ around the measured point. Right panel: Sample data is well beyond the bounds and the z-score calculated for such configuration corresponds to less than 0.01% probability of measured data under the assumed model.

Once the fulfilment of the described conditions is assured it is safe to explore and interpret the distributions of evaluated variables.

5 Case studies of FRAME applications

5.1 2D model for determination of nitrate sources and fractionation

An example of nitrates (NO3-) source partitioning is presented to illustrate the 2D stable isotope model based on the stable oxygen and nitrogen isotope composition (δ18ONO3 and δ15NNO3). These isotopic signatures are frequently used to trace nitrate sources in groundwaters [1113] or surface waters [1416] thanks to differences in various nitrate sources. However, nitrates may also undergo intensive denitrification processes, which can significantly alter their final isotopic signatures [1719]. Therefore here we consider two cases: (i) simple mixing neglecting possible further denitrification and (ii) mixing of sources taking into account possible further isotope fractionation associated with denitrification. The new feature introduced by FRAME is the possibility of estimation of progress of the denitrification process (as presented below in case 2).

This is a fictive example of surface waters impacted by different nitrate sources. A river flowing from a pristine forested area located in the mountains carries moderate loads of nitrates (1.0 mg/L) originating from the biological activity and organic matter decomposition in the catchment. The stable nitrogen and oxygen isotope compositions of nitrate analyzed at sampling point A (δ15NNO3 0.5 ± 0.5 ‰, δ18ONO3 2.5 ± 0.5 ‰) primarily reflect the mean δ15NORG of organic nitrogen in the catchment modified by fractionation processes leading to nitrate generation. The δ18ONO3 value reflects the typical contribution from water (δ18OH3O -8.0 ‰) and atmospheric oxygen (δ18OO2 23.5 ‰) during nitrification (ratio 2:1 [19]). After passing through the agriculture area (sampling point B), the nitrate concentration in the river water increases to 5 mg/L, and its stable nitrogen and oxygen compositions change to δ15NNO3 -8.3 ± 0.5 ‰ and δ18ONO3 8.1 ± 0.5 ‰. It is implied that a 4 mg/L increase in NO3 concentration can be attributed to agro-pollutants leaching from the surrounding field: 1) overused fertilizer, (NH4)2SO4, leaching from crop fields, and 2) manure leaching from the cattle pasture. The applied fertilizer stable isotope composition was analyzed as δ15NNH4 0.5 ‰ and the mean soil moisture δ18OH2O was estimated to be 5.0 ± 5.0 ‰. Manure δ15NNH4 analyzed in trenches on the pasture was determined as 20.0 ± 3.0 ‰ and water δ18OH2O as -5.0 ± 0.5 ‰. The stable nitrogen isotope fractionation during the nitrification (NH4−NO3) results in -17.0 ± 6.5 ‰ decrease in δ15N during nitrification of NH4 to NO3 [17]. Contribution to nitrate oxygen during NH4 nitrification was considered as 2:1 [19] between available water oxygen and atmospheric oxygen (23.5 ‰ [26]), Eq 17.

δ18ONO3=13δ18OH2O+23δ18OO2 (21)

Case 1

This simplified case assumes complete transformation of unused by vegetation ammonia from fertilizer and manure to nitrate and no fractionation associated with nitrates denitrification in the river or groundwaters. In the downstream river at point B, we assume based on algebraic calculations the stable isotope signatures representing the following contributions: 20% of natural NO3- derived with the upstream river (fR), 60% of fertilizer NO3- (fF), 20% of manure NO3- (fM). The FRAME model estimated the contribution to nitrate at point B as follows (Table 7): fR = 19.5 ± 11.2%, fF = 59.4 ± 5.4%, and fM = 21.2 ± 12.8%.

Case 2

This case also considers the possible denitrification of nitrates before the homogeneous mixture of nitrates from all sources arrives at sampling point C (downstream river). However, this should be considered approximate only because the leaching of agro-pollutants occurs over an extended time and is always transitional. The constant input of a new substrate is accompanied by constant removal of the denitrification gaseous products—N2O and N2 in an open system. Therefore, this scenario reflects a proportional mixing at the time of sampling respectively to nitrates retention time and denitrification pace:

μ=fRSR+fFSF+fMSM-Er (22)

where μ is the final stable isotope composition as δ value, fi is the respective fraction of particular NO3- source and Si is the characteristic isotopic signature of this source, E is the isotopic fractionation factor associated with denitrification: ϵ15N = −15.9 ± 2.0 ‰ and ϵ18O = −8.0 ± 2.0 ‰ [27] and r is the nitrate reduced fraction—to be calculated by the model.

If applied to the previous example (Sample 1, River, point B—Table 6, x1) the model output indicates a small but possible effect of denitrification with a reduced nitrate fraction of 12.5 ± 9.2%. However, the contributions of mixing sources are similar, with the clear dominance of fertilizer contribution to the nitrate present in the river at point B: fR = 14.8 ± 9.4%, fF67.1 ± 9.7%, and fM18.1± 11.9%. This indicates that the impact of denitrification on the stable isotope composition of Sample 1 is possible. To illustrate this process more clearly we assume Sample 2 (River, point C, Table 6, x2) where 60% of the nitrate of Sample 1 is consumed due to denitrification (r = 0.6). This will give the stable nitrogen and oxygen compositions of δ15NNO3 1.2 ± 0.5 ‰ and δ18ONO3 12.9 ± 0.5 ‰, i.e., enriched in heavy isotopes due to preferential consumption of molecules with light isotopes in the microbial denitrification process. The model estimates the contribution of particular fractions for: fR = 19.2 ± 13.0%, fF = 56.0 ± 11.5%, and fM = 24.9 ± 15.2%, and the progress of the denitirification process: r = 56.7 ± 13.7%. The ranges of possible values are broadened due to the addition of 4th unknown value of r, but the results still met the expected values very well.

Table 6. Summary of input values for the FRAME model.

Source recalculated signatures reflect fractionation during NO3 generation. δ18O is the stable isotope composition of water in the place of NO3 formation surface water in trenches contaminated by manure (-5.0 ± 0.5 ‰) and soil moisture (5.0 ± 0.5 ‰).

Measured Sources recalculated
δ15NNH4 δ15NNO3 δ18ONO3 δ18OH2O δ15NNO3 δ18ONO3
[‰] [‰] [‰] [‰] [‰] [‰]
x1: River, point B -8.3±0.5 8.1±0.5
x2: River, point C 1.2±0.5 12.9±0.5
S1: River, point A 5.0±0.5 2.5±0.5 5.0±0.5 2.5±0.5
S2: Fertilizer 0.50±0.5 5.0±5.0 -16.5±0.5 11.2±0.5
S3: Manure -20.0±3.0 -5.0±0.5 3.0±3.0 4.5±0.5

5.2 2D evaporation model for waters

Evaporative loss in surface waters can be determined based on δ2H and δ18O of water using the well-established method known as the Craig-Gordon model [28, 29], which allows determination of evaporation to inflow ratio (E/I) assuming steady-state model. This method bases on the typical evaporative slope between O and H isotopic signatures which differs from the slope characteristic for atmospheric precipitation [28]. Here we present how to incorporate the Craig-Gordon model into the FRAME tool. This has the advantage of taking both hydrogen and oxygen water isotopes simultaneously into account giving one E/I value, instead of separate δ2H based and δ18O based results, which can be obtained with the existing Hydrocalculator tool [29]. Moreover, the uncertainties associated with sample measurements, source water determination and meteorological data can be taken into account and we can obtain information on the overall uncertainty of the E/I estimation and determine the confidence interval of the possible results and their probability distribution.

To be able to use FRAME for this aim the typical equation used for E/I determination:

E/I=(δL-δP)(δ*-δL)m (23)

must be modified to a form of fractionation equation required by this model, i.e., describing the final stable isotope composition of a sample:

μ=rAD+μ0rA+1 (24)

where μ stands for δL—the final stable isotope composition of partially evaporated outflowing water from a lake, μ0 stands for δP—the initial stable isotope composition of inflowing water, r is the evaporated fraction (E/I) to be calculated by the model, A is the parameter m dependent on the relative humidity and ambient temperature, D is the limiting isotopic enrichment due to evaporation dependent on relative humidity, ambient temperature and stable isotope signature of ambient atmospheric vapors, which can be measured or calculated from the stable isotope composition of precipitation. The parameters A and D can be easily determined with the Hydrocalculator [29] or calculated analytically based on the known equations for the water balance adequate for the particular case [28, 29].

As an example, previously published data [30] were used. Taking into account the stable isotope composition of inflowing and outflowing to the lake water (Table 7) and taking into account precipitation stable isotope composition (δ2H = −57 ± 3 ‰, δ18O = −7.8 ± 0.2 ‰), known water temperature (13.2°C) and relative humidity (0.65), the evaporation over inflow E/I ratio of 0.22 was determined [30]. The above data can be also input to the Hydrocalculator tool [29], that calculates E/I of 0.2248 based on δ2H and 0.2206 based on δ18O. To calculate the evaporation loss with FRAME, in addition to the above data we also need to input: the analytical uncertainty in the determination of inflowing waters isotope signatures. The algorithm is defined as a single source model and the fractionation equation (Eq 22) is the only driver of the observed change in the outflowing water composition. The data set needs to be supplemented with the parameters A and D which are calculated based on the water temperature and relative humidity using Hydrocalculator or adequate equations for the water balance [28, 29] (Table 7). The parameters A and D are given with the assessed uncertainty due to the meteorological data measurement precision. The calculated mean E/I determined by FRAME of 0.2232 is in excellent agreement with Hydrocalculator data. Moreover, FRAME output provides the 68% confidence interval for the E/I from 0.1892 to 0.2616, based on the given input data uncertainty.

Table 7. Summary of input values for the FRAME model: Lakewater sample, inflowing water (single-source) and auxiliary parameters calculated from the meteorological conditions according to Craig-Gordon model.

δ18OH2O δ2HH2O
[‰] [‰]
x1: Lakewater −2.0 ± 0.2 -25 ± 3
S1: Inflow −5.0 ± 0.2 -34 ± 3
A 1.7881 ± 0.005 1.5824 ± 0.03
D 5.6063 ± 0.005 0.2946 ± 0.03

According to our knowledge, FRAME is the first tool using the Bayesian approach to calculate the evaporative losses integrating both water isotopes at the same time and providing the uncertainty range of the result based on all uncertainties of the input data. This simple case presented here can be expanded with the mixing cases of more water sources.

5.3 2D model for determination of nitrite pathways

FRAME was also tested using a laboratory case study partitioning nitrite (NO2) sources with a 2D isotope model based on stable nitrogen and oxygen isotope compositions for a laboratory experimental study. Nitrite is a central compound in N soil cycle and its isotopic signature depends on the mixture of three formation pathways: nitrate reduction (NAR), ammonium oxidation (AOX) and organic nitrogen oxidation (ORG) as well as isotopic fractionation during NO2- consumption due to nitrite reduction (NIR) and nitrite oxidation (NIOX) [31]. Moreover, δ18ONO2- can be modified by O isotope exchange with ambient soil water [32]. The NO2- isotope model was only recently proposed for differentiating nitrite sources in soil [33], where the natural abundance isotope model was calculated by applying a simple fitting procedure (by Excel Solver) without giving the probability ranges for the model outputs. Here, we show how the application of the FRAME modelling tool may increase the insight into the determined processes.

We show the calculations based on the mean NO2- isotopic signatures from the laboratory experiment L1 (as published in [33], the isotopic signatures for the sources and stable isotopic fractionation factors for the sinks are adopted after the literature [33]. Input values are summarised in Table 8).

Table 8. Summary of input values for the FRAME model: Nitrite sample (x), 3 sources (S given as ranges from/to), parameters representing isotope fractionation factors for nitrite reduction and oxidation (A, B) and extent of equilibrium δ18O (C) given as mean with standard deviation.

δ18ONO2- δ15NNO2-
[‰] [‰]
x 1 11.8 ± 2.5 3.2 ± 1.9
S NAR 3.3 to 5.3 -14.3 to -12.3
S AOX 16.4 to 20.4 65.9 to 71.9
S ORG 16.4 to 20.4 4.4 to 6.4
A -4.0 ± 2.0 -10.0 ± 2.0
B 5.0 ± 2.0 13.0 ± 2.0
C 0.25 ± 0.01 0.00 ± 0.00

For nitrite sinks two fractionation processes associated with NO2- reduction and oxidation need to be considered, which show opposite fractionation factors, with inverse fractionation for NO2- oxidation [32]. For these two fractionation processes some pre-assumptions are needed to avoid model ambiguity: 1) the possible coexistence of both fractionation processes with the known NIR:NIOX ratio of 0.7 to 0.3 (as determined in the parallel 15N tracing experiment [33]); 2) equilibrium isotopic fractionation of nitrite oxygen isotopes must be taken into account; 3) the amount of exchanged for δ18O is known for this particular experiment (0.25) [33] and 4) the equilibrated nitrite value was determined from water isotope values and temperature [31] and equals +8.6 ‰. NO2- pool in the soil is very small and dynamic. NO2 usually does not accumulate, indicating that the input and sink fluxes are in equilibrium and the fractionation system should be considered as open. Hence, the nitrite model can be described using the following equation:

μ=(fNARSNAR+fAOXSAOX+fORGSORG-0.7A-0.3B)(1-C)+8.6C (25)

where fi is the respective fraction of pathway contributing to the NO2- production and Si is the characteristic isotope composition for this pathway, A is the stable isotopic fractionation factor associated with NO2- reduction to NO, B is the stable isotopic fractionation factor associated with NO2- oxidation to NO3-, C is the fraction of NO2- equilibrated with stable oxygen isotope composition of soil water (showing the final δ18O value of 8.6 ‰ after complete equilibration with water). μ stands for the final NO2- stable isotope composition after mixing of all sources and partial NO2- reduction or oxidation and equilibration for stable oxygen isotope compositions.

The experimental values used for the presented modelling cases were obtained in parallel experiments using the 15N tracing approach, which can be used as a reference dataset. From the 15N traced study estimations of the calculated fractions were obtained independently [33]. A comparison of both approaches is presented in Table 9.

Table 9. Comparison of the results of the natural abundance nitrite model (FRAME) and the reference values based on 15N traced studies (Ntrace).

Mean values with standards deviation (1σ) of sources contribution are given.

model f NAR f AOX f ORG
FRAME 0.54 ± 0.17 0.08 ± 0.05 0.37 ± 0.21
Ntrace 0.53 ± 0.20 0.08 ± 0.03 0.39 ± 0.14

The FRAME modelling results show very good agreement with the reference data (Table 9). However, applying the FRAME model also allows estimation of the overall uncertainties of these calculations and we can indicate quite wide probability ranges of the possible results. The FRAME results indicate that possibly the NAR and ORG fraction are not very precisely separated, since we observe quite wide ranges for these fractions. Consequently, the contribution of ORG, which is quite a novel finding for soil N cycle indicated by 15N traced studies [34], may be similar to NAR. The FRAME model results agree with Ntrace outcomes and unambiguously confirms very low AOX contribution, up to ≈0.10.

5.4 3D model for N2O source partitioning and quantification of N2O reduction

N2O data were used as an example for applying a 3D model in FRAME, since for this unique molecule we can measure three isotope signatures (δ18O, δ15N and SP—’site preference’ indicating the difference in δ15N between the central and peripheral position of the linear N2O molecule). The final N2O isotope siganture depends both on the mixing of N2O production pathways and N2O fractionation associated with N2O reduction to N2 [35]. The possible sources are the four main N2O production pathways: bacterial denitrification (bD), nitrifier denitrification (nD), fungal denitrification (fD) and nitrification (Ni). The isotope signatures for each source were determined in previous pure culture studies [22, 36] and showed quite wide ranges. N2O also undergoes significant stable isotope fractionation due to its possible partial reduction to N2, which is associated with preferential breakage of the light isotope O-N bonds. As shown in previous studies this fractionation can be best described by the closed system dynamics with Rayleigh-type equation [24], as following:

μ=fbDSbD+fnDSnD+ffDSfD+fNiSNi+Aln(r) (26)

where f is the respective fraction of pathway contributing to the N2O production and Si is the characteristic isotopic signature of this pathway, r is the residual unreduced N2O fraction and A is the stable isotope fractionation factor associated with N2O reduction. μ stands for the final N2O isotopic signature after mixing of all sources and partial N2O reduction.

Here we show the application of FRAME on the example of interpretation of experimental and field N2O stable isotope data [21]. For the model we define the ranges of each pathway based on the existing literature taking into account the mean ± one standard deviation of all literature reported values for each pathway (as outlined in [22]) and assuming equal probability for the values within this range. Additionally, the typical analytical uncertainties are added as standard deviation (as outlined in Sec. 3.2.2 and Appendix B in S1 Appendix). The modelling results of N2O case study were previously validated with a parallel experimental approach of 15N enrichment studies [21]. However, this validation only concerned the calculated r values and some summarised f values and so far there is no reference method able to validate all the fractions at the same time, which could be theoretically separated by the stable isotope modelling. Therefore, here the model performance was assessed for theoretical N2O measurements, assuming particular contribution of mixing pathways and reduction progress, according to the Table 10. The first two samples were defined according to the most typical pathways contribution with a clear dominance of bacterial denitrification (x1, x2) and differing in residual N2O fraction (from 0.2 to 0.8). Sample 3 (x3) represents rather extreme case with strong dominance of the nitrification process and very low N2O reduction, which can be observed for very dry conditions.

Table 10. Summary of input data for the FRAME model: 3 samples (x1, x2, x3) of different sources and reduction contribution, 4 sources (given as range from/to) and auxiliary parameter representing the reduction fractionation factor.

f bD f nD f fD f Ni r δ180N2O [‰] δ15NN2O [‰] SPN2O [‰]
x 1 0.9 0.0 0.1 0.0 0.2 47.6 ± 0.5 -35.2 ± 1.0 11.1 ± 1.0
x 2 0.9 0.0 0.1 0.0 0.8 26.3 ± 0.5 -45.0 ± 1.0 3.0 ± 1.0
x 3 0.1 0.0 0.0 0.9 0.9 24.8 ± 0.5 -54.0 ± 1.0 31.7 ± 1.0
S bD 17.8/20.6 -52.8/-42.4 -5.2/0.4
S nD 14.4/17.4 -60.7/-53.1 -7.0/2.8
S fD 43.4/51.0 -44.4/-31.2 31.0/36.0
S Ni 21.4/25.6 -63.9/-49.3 32.0/36.0
A -15.4 ± 4.7 -7.1 ± 2.1 -5.9 ± 1.4

The values of these samples were calculated with the mean stable isotope composition for respective sources and mean isotopic fractionation factors according to the values summarised most recently [22] (Table 10) without any substrates corrections, i.e. the isotopic signatures of substrates (i. e., nitrate, ammonium and soil water) are assumed 0 ‰.

From the graphical presentation of model results (Fig 11) can be seen that the separation of bD and nD fraction is not very precise, since we have a powerful correlation between these two fractions and very wide probability distributions. Both processes are characterised by very similar isotopic signatures, especially for SP and δ18O, since this conclusion is well justified. Therefore, in the presented comparison with true values (as defined in Table 10) the bD and nD fractions are shown as a sum of these both fractions (Fig 12).

Fig 11. Distributions and correlations of random variables fi and r that constitute the Markov chain.

Fig 11

The histograms present the probability distribution for mixing fractions (f) and residual fraction (r), right side graphs show the correlations of respective fractions and left side values indicate R values for these correlations. Sample 2 is presented.

Fig 12. Comparison of model results (black symbols) with assumed values for three analysed samples (set values—Red crosses).

Fig 12

The bars represent the 68% confidence interval for each fraction. bD and nD fractions are presented jointly due to weak isotopic separation between them.

This study presents a complex case of 3D modelling that includes four possible sources and one fractionation process. In the presented example, we can see that the model can estimate the fractions contributions and N2O residual fraction within the maximum difference of 0.15. The trends and dominance of particular pathways are clearly displayed. However, the results must be carefully interpreted, taking into account the possible weak separation of fractions characterized by similar stable isotope signatures. As noted above, the bD and nD fractions cannot be precisely separated due to very similar ranges in isotopic signatures for SP and δ18O. In such a case it is more justified to show a sum of these fractions and such a sum shows good agreement with the set values (Fig 12). The most challenging for separation is the very high fraction of Ni, as set for x3, which tend to be underestimated by the model with simultaneous underestimation of the residual N2O fraction (r) and overestimation of the fD fraction (Fig 12). This is due to similar isotopic signatures for Ni and fD isotopic signatures (namely, the same range for SP values). Nevertheless, even in this extreme example the Ni fraction is determined within the difference of 0.15 between set and mean modelled value (0.9 vs. 0.76).

6 Summary and outlook

FRAME is the first software to apply Markov-Chain Monte Carlo Modelling for partitioning sources and fractionation processes contributing to stable isotope composition of samples representing mixtures. As an output, a probability distribution of possible results is computed, which allows the assessment of the input data quality and the probability of the correct conclusions. The current model release with the additional materials and examples is available at malewick.github.io/frame.

The FRAME software was originally developed and described for stable isotope studies and any isotope mixing processes or associated stable isotope fractionations can be implemented into the mathematical algorithm. Besides the case studies presented here FRAME can be applied to various other calculations. It can also be potentially applied to other environmental tracers undergoing mixing and possible further alternations, such as compound concentrations, chemical markers or radioactive tracers.

Supporting information

S1 Appendix. Supplementary material to the manuscript including the detailed description of the mathematical model, the user guide for the graphical interface as well as a couple of demonstration of interesting use cases.

(PDF)

Data Availability

All the data can be found in the manuscript. All the code is accessible at web repository: github.com/malewick/frame.

Funding Statement

GS: Coordinated Research Project of IAEA D15018, International Atomic Energy Agency, url:https://www.iaea.org/projects/crp/d15018, NO DSL(1): internal grant of the University of Wrocław (10120, https://uni.wroc.pl/) DSL(2): 3205/2003/20, Polish National Agency for Academic Exchange (by the Program ‘Polish Returns’), https://nawa.gov.pl/en/ ML: author has received no specific funding for this work The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.

References

  • 1. Minagawa M. Reconstruction of human diet from d13C and d15N in contemporary Japanese hair: a stochastic method for estimating multi-source contribution by double isotopic tracers. Applied Geochemistry. 1992;7(2):145–158. doi: 10.1016/0883-2927(92)90033-Y [DOI] [Google Scholar]
  • 2. Moore JW, Semmens BX. Incorporating uncertainty and prior information into stable isotope mixing models. Ecology Letters. 2008;11(5):470–480. doi: 10.1111/j.1461-0248.2008.01163.x [DOI] [PubMed] [Google Scholar]
  • 3. Phillips DL, Gregg JW. Source partitioning using stable isotopes: Coping with too many sources. Oecologia. 2003;136(2):261–269. doi: 10.1007/s00442-003-1218-3 [DOI] [PubMed] [Google Scholar]
  • 4. Phillips DL, Inger R, Bearhop S, Jackson AL, Moore JW, Parnell AC, et al. Best practices for use of stable isotope mixing models in food-web studies. Canadian Journal of Zoology. 2014;92(10):823–835. doi: 10.1139/cjz-2014-0127 [DOI] [Google Scholar]
  • 5. Parnell AC, Inger R, Bearhop S, Jackson AL. Source partitioning using stable isotopes: Coping with too much variation. PLoS ONE. 2010;5(3):1–5. doi: 10.1371/journal.pone.0009672 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6. Parnell AC, Phillips DL, Bearhop S, Semmens BX, Ward EJ, Moore JW, et al. Bayesian stable isotope mixing models. Environmetrics. 2013;24(6):387–399. [Google Scholar]
  • 7. Erhardt EB, Bedrick EJ. A Bayesian framework for stable isotope mixing models. Environmental and Ecological Statistics. 2013;20(3):377–397. doi: 10.1007/s10651-012-0224-1 [DOI] [Google Scholar]
  • 8. Arendt CA, Aciego SM, Hetland EA. An open source Bayesian Monte Carlo isotope mixing model with applications in Earth surface processes. Geochemistry Geophysics Geosystems. 2015;16(1):1274–1292. doi: 10.1002/2014GC005683 [DOI] [Google Scholar]
  • 9. Jin Z, Qian L, Shi Y, Fu G, Li G, Li F. Quantifying major NOx sources of aerosol nitrate in Hangzhou, China, by using stable isotopes and a Bayesian isotope mixing model. Atmospheric Environment. 2021;244(x):117979. doi: 10.1016/j.atmosenv.2020.117979 [DOI] [Google Scholar]
  • 10. Hossler K, Bauer JE. Estimation of riverine carbon and organic matter source contributions using time-based isotope mixing models. Journal of Geophysical Research: Biogeosciences. 2012;117(3):1–15. [Google Scholar]
  • 11. Yu L, Zheng T, Zheng X, Hao Y, Yuan R. Nitrate source apportionment in groundwater using Bayesian isotope mixing model based on nitrogen isotope fractionation. Science of the Total Environment. 2020;718. doi: 10.1016/j.scitotenv.2020.137242 [DOI] [PubMed] [Google Scholar]
  • 12. Meghdadi A, Javar N. Quantification of spatial and seasonal variations in the proportional contribution of nitrate sources using a multi-isotope approach and Bayesian isotope mixing model. Environmental Pollution. 2018;235:207–222. doi: 10.1016/j.envpol.2017.12.078 [DOI] [PubMed] [Google Scholar]
  • 13. Zhang H, Xu Y, Cheng S, Li Q, Yu H. Application of the dual-isotope approach and Bayesian isotope mixing model to identify nitrate in groundwater of a multiple land-use area in Chengdu Plain, China. Science of the Total Environment. 2020;717. doi: 10.1016/j.scitotenv.2020.137134 [DOI] [PubMed] [Google Scholar]
  • 14. Zhang M, Zhi Y, Shi J, Wu L. Apportionment and uncertainty analysis of nitrate sources based on the dual isotope approach and a Bayesian isotope mixing model at the watershed scale. Science of the Total Environment. 2018;639:1175–1187. doi: 10.1016/j.scitotenv.2018.05.239 [DOI] [PubMed] [Google Scholar]
  • 15. Jin Z, Cen J, Hu Y, Li L, Shi Y, Fu G, et al. Quantifying nitrate sources in a large reservoir for drinking water by using stable isotopes and a Bayesian isotope mixing model. Environmental Science and Pollution Research. 2019;26(20):20364–20376. doi: 10.1007/s11356-019-05296-7 [DOI] [PubMed] [Google Scholar]
  • 16. Korth F, Deutsch B, Frey C, Moros C, Voss M. Nitrate source identification in the Baltic Sea using its isotopic ratios in combination with a Bayesian isotope mixing model. Biogeosciences. 2014;11(17):4913–4924. doi: 10.5194/bg-11-4913-2014 [DOI] [Google Scholar]
  • 17. Denk TRA, Mohn J, Decock C, Lewicka-Szczebak D, Harris E, Butterbach-Bahl K, et al. The nitrogen cycle: A review of isotope effects and isotope modeling approaches. Soil Biology and Biochemistry. 2017;105:121–137. doi: 10.1016/j.soilbio.2016.11.015 [DOI] [Google Scholar]
  • 18. Well R, Eschenbach W, Flessa H, von der Heide C, Weymann D. Are dual isotope and isotopomer ratios of N 2O useful indicators for N 2O turnover during denitrification in nitrate-contaminated aquifers? Geochimica et Cosmochimica Acta. 2012;90:265–282. doi: 10.1016/j.gca.2012.04.045 [DOI] [Google Scholar]
  • 19. Nikolenko O, Jurado A, Borges AV, Knöller K, Brouyère S. Isotopic composition of nitrogen species in groundwater under agricultural areas: A review. Science of the Total Environment. 2018;621:1415–1432. doi: 10.1016/j.scitotenv.2017.10.086 [DOI] [PubMed] [Google Scholar]
  • 20. Xue D, De Baets B, Van Cleemput O, Hennessy C, Berglund M, Boeckx P. Use of a Bayesian isotope mixing model to estimate proportional contributions of multiple nitrate sources in surface water. Environmental Pollution. 2012;161:43–49. doi: 10.1016/j.envpol.2011.09.033 [DOI] [PubMed] [Google Scholar]
  • 21. Lewicka-Szczebak D, Lewicki MP, Well R. N2O isotope approaches for source partitioning of N2O production and estimation of N2O reduction-validation with the 15N gas-flux method in laboratory and field studies. Biogeosciences. 2020;17(22):5513–5537. doi: 10.5194/bg-17-5513-2020 [DOI] [Google Scholar]
  • 22. Yu L, Harris E, Lewicka-Szczebak D, Barthel M, Blomberg MRA, Harris SJ, et al. What can we learn from N2O isotope data? – Analytics, processes and modelling. Rapid Communications in Mass Spectrometry. 2020;34(20):1–14. doi: 10.1002/rcm.8858 [DOI] [PubMed] [Google Scholar]
  • 23. Toyoda S, Yano M, Nishimura Si, Akiyama H, Hayakawa A, Koba K, et al. Characterization and production and consumption processes of N 2 O emitted from temperate agricultural soils determined via isotopomer ratio analysis. Global Biogeochemical Cycles. 2011;25(2):GB2008. doi: 10.1029/2009GB003769 [DOI] [Google Scholar]
  • 24. Lewicka-Szczebak D, Augustin J, Giesemann A, Well R. Quantifying N2O reduction to N2 based on N2O isotopocules-validation with independent methods (helium incubation and 15N gas flux method). Biogeosciences. 2017;14(3):711–732. doi: 10.5194/bg-14-711-2017 [DOI] [Google Scholar]
  • 25. Lewicka-Szczebak D, Dyckmans J, Kaiser J, Marca A, Augustin J, Well R. Oxygen isotope fractionation during N2 O production by soil denitrification. Biogeosciences. 2016;13(4):1129–1144. doi: 10.5194/bg-13-1129-2016 [DOI] [Google Scholar]
  • 26. Kroopnick P, Craig H. Atmospheric oxygen: Isotopic composition and solubility fractionation. Science. 1972;175:54–55. doi: 10.1126/science.175.4017.54 [DOI] [PubMed] [Google Scholar]
  • 27. Böttcher J, Strebel O, Voerkelius S, Schmidt HL. Using isotope fractionation of nitrate-nitrogen and nitrate-oxygen for evaluation of microbial denitrification in a sandy aquifer. Journal of Hydrology. 1990;114(3-4):413–424. doi: 10.1016/0022-1694(90)90068-9 [DOI] [Google Scholar]
  • 28. Horita J, Rozanski K, Cohen S. Isotope effects in the evaporation of water: A status report of the Craig-Gordon model. Isotopes in Environmental and Health Studies. 2008;44(1):23–49. doi: 10.1080/10256010801887174 [DOI] [PubMed] [Google Scholar]
  • 29. Skrzypek G, Mydłowski A, Dogramaci S, Hedley P, Gibson JJ, Grierson PF. Estimation of evaporative loss based on the stable isotope composition of water using Hydrocalculator. Journal of Hydrology. 2015;523:781–789. doi: 10.1016/j.jhydrol.2015.02.010 [DOI] [Google Scholar]
  • 30. Lewicka-Szczebak D, Jedrysek MO. Tracing and quantifying lake water and groundwater fluxes in the area under mining dewatering pressure using coupled O and H stable isotope approach. Isotopes in Environmental and Health Studies. 2013;49(1):9–28. doi: 10.1080/10256016.2012.700641 [DOI] [PubMed] [Google Scholar]
  • 31. Buchwald C, Casciotti KL. Isotopic ratios of nitrite as tracers of the sources and age of oceanic nitrite. Nature Geoscience. 2013;6(4):308–313. doi: 10.1038/ngeo1745 [DOI] [Google Scholar]
  • 32. Casciotti KL. Inverse kinetic isotope fractionation during bacterial nitrite oxidation. Geochimica et Cosmochimica Acta. 2009;73(7):2061–2076. doi: 10.1016/j.gca.2008.12.022 [DOI] [Google Scholar]
  • 33. Lewicka-Szczebak D, Jansen-Willems A, Müller C, Dyckmans J, Well R. Nitrite isotope characteristics and associated soil N transformations. Scientific Reports. 2021;11(1):1–11. doi: 10.1038/s41598-021-83786-w [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34. Müller C, Laughlin RJ, Spott O, Rütting T. Quantification of N2O emission pathways via a 15N tracing model. Soil Biology and Biochemistry. 2014;72(3):44–54. [Google Scholar]
  • 35. Well R, Flessa H. Isotopologue enrichment factors of N2O reduction in soils. Rapid Communications in Mass Spectrometry. 2009;23:2996–3002. doi: 10.1002/rcm.4216 [DOI] [PubMed] [Google Scholar]
  • 36. Toyoda S, Yoshida N, Koba K. Isotopocule analysis of biologically produced nitrous oxide in various environments. Mass Spectrometry Reviews. 2017;36(2):135–160. doi: 10.1002/mas.21459 [DOI] [PubMed] [Google Scholar]

Decision Letter 0

Matheus C Carvalho

19 Aug 2022

PONE-D-21-35676

FRAME - Monte Carlo model for evaluation of the stable isotope mixing and fractionation

PLOS ONE

Dear Dr. Lewicki,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process.

Please submit your revised manuscript by Sep 29 2022 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Matheus C. Carvalho

Academic Editor

PLOS ONE

Journal Requirements:

When submitting your revision, we need you to address these additional requirements.

1. Please ensure that your manuscript meets PLOS ONE's style requirements, including those for file naming. The PLOS ONE style templates can be found at 

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.pdf and 

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_authors_affiliations.pdf

2. Please upload a new copy of Figure 14 as the detail is not clear. Please follow the link for more information: https://blogs.plos.org/plos/2019/06/looking-good-tips-for-creating-your-plos-figures-graphics/" https://blogs.plos.org/plos/2019/06/looking-good-tips-for-creating-your-plos-figures-graphics/

3. Please ensure that you refer to Figures 9, 14, 15, 16, 17, 18, 19, 20, 21, 22, and 23 in your text as, if accepted, production will need this reference to link the reader to the figure.

4. We note that Figures 5 and 14 in your submission contain copyrighted images. All PLOS content is published under the Creative Commons Attribution License (CC BY 4.0), which means that the manuscript, images, and Supporting Information files will be freely available online, and any third party is permitted to access, download, copy, distribute, and use these materials in any way, even commercially, with proper attribution. For more information, see our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

We require you to either (1) present written permission from the copyright holder to publish these figures specifically under the CC BY 4.0 license, or (2) remove the figures from your submission:

a. You may seek permission from the original copyright holder of Figures 5 and 14 to publish the content specifically under the CC BY 4.0 license. 

We recommend that you contact the original copyright holder with the Content Permission Form (http://journals.plos.org/plosone/s/file?id=7c09/content-permission-form.pdf) and the following text:

“I request permission for the open-access journal PLOS ONE to publish XXX under the Creative Commons Attribution License (CCAL) CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). Please be aware that this license allows unrestricted use and distribution, even commercially, by third parties. Please reply and provide explicit written permission to publish XXX under a CC BY license and complete the attached form.”

Please upload the completed Content Permission Form or other proof of granted permissions as an "Other" file with your submission. 

In the figure caption of the copyrighted figure, please include the following text: “Reprinted from [ref] under a CC BY license, with permission from [name of publisher], original copyright [original copyright year].”

b. If you are unable to obtain permission from the original copyright holder to publish these figures under the CC BY 4.0 license or if the copyright holder’s requirements are incompatible with the CC BY 4.0 license, please either i) remove the figure or ii) supply a replacement figure that complies with the CC BY 4.0 license. Please check copyright information on all replacement figures and update the figure caption with source information. If applicable, please specify in the figure caption text when a figure is similar but not identical to the original image and is therefore for illustrative purposes only.

5. We note you have included a table to which you do not refer in the text of your manuscript. Please ensure that you refer to Tables 1, 2, 3, 4, 6, 7, 8 and 9 in your text; if accepted, production will need this reference to link the reader to the Table.

6. Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

********** 

2. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: Yes

********** 

3. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

********** 

4. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: No

Reviewer #2: Yes

********** 

5. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: General comments

This paper describes a computational model for unraveling mixing and isotopic fractionation that occurs various environmental/geochemical/ecological settings. Since stable isotope ratios often show distinct values between different source materials, isotope ratios of a sample and its potential sources are compared to estimate contribution from each source. However, it is not always the case that proportions of the sources are algebraically calculated because of too many potential sources or isotopic change (fractionation) during chemical/physical conversion of target compounds after mixing. In addition, error associated with the source partitioning is not easy to derive. The authors developed a convenient and flexible tool that can calculate mixing rate of sources with probability distributions and effect of other factors such as isotopic fractionation. They also present many examples showing how the tool can resolve the mixing problems of real conditions appropriately.

Although I cannot fully evaluate the mathematical theory part because it is outside my area of expertise, I think this paper will bring great benefits to researchers using stable isotopes to elucidate material cycles in a variety of disciplines. I recommend its publication after addressing following points.

Specific comments

Abstract. The authors write “this tool can also be useful for non-stable isotope studies”, but no example of such application is listed. It would be better to add some ideas.

L17–18. I think there was an attempt at estimation of errors in source partitioning with consideration of isotopic fractionation although the approach was simpler than the present study (Toyoda, S., Yano, M., Nishimura, S., Akiyama, H., Hayakawa, A., Koba, K., et al. (2011). Characterization and production and consumption processes of N2O emitted from temperate agricultural soils determined via isotopomer ratio analysis. Global Biogeochem. Cycles, 25, GB2008).

L33–43. In the work of Lewicka-Szczebak et al. (2020) they compared two cases: 1) N2O reduction by denitrification first occurs and then mixed with N2O from other sources, 2) N2O reduction occurs after mixing. But in the present paper, it seems only the case 2) is considered. Can the developed tool also simulate the case 1)?

L129. Correct typo (1,m]

L422–425. Although it is not critical in the context, it would be better to note that overall isotope fractionation is not always equal to simple sum of fractionation for the two step in order to avoid misunderstanding.

Figure 1 caption, the last line, “The bottom right panel”. LEFT panel? Also please add titles of axes, same for other figures.

Figure 2. Some characters in the figure do not correspond to those explained in the caption. I think the axis titles “X” and “Y” must be “I1” and “I2”, respectively. Also “M” means x?

Figure 3. I cannot understand why one can tell “the stabilization is achieved” from the figure. To my eyes, oscillating feature is almost the same between before and after the dashed line.

Figures 16–19. It is confusing that caption says the authors consider only three endmembers while five sources are plotted in the figure.

Reviewer #2: The paper presents a working open source framework for stable isotope analisys.

The software is user friendly and shows some original features in respect to other similar works. In particular it can consider fractination process besides isotope mixing.

The paper is quite well written and clear. There are just some minor notes and suggestions for authors:

- The examples are usually well presented and references are always given. However, there can be some difficulties for readers to get a rapid introduction to them. A small introductiion paragraph for each example, what is the addressed problem and what can be gained with isotope analisys, can increase readability.

- The software works flawlessly on Linux/wine, however it is not well clear what is the right combination of data/source/model for each example. Here also an introduction would be welcome. A comment part in the data file would be very useful.

- In the last paragraph of the comment of Figure 1, I think there is an error: right --> left.

********** 

6. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

PLoS One. 2022 Nov 28;17(11):e0277204. doi: 10.1371/journal.pone.0277204.r002

Author response to Decision Letter 0


29 Sep 2022

Review response

Please see in green our answers to all raised points.

Editor comments:

When submitting your revision, we need you to address these additional requirements.

1.

Please ensure that your manuscript meets PLOS ONE's style requirements, including

those for file naming. The PLOS ONE style templates can be found at

https://journals.plos.org/plosone/s/file?id=wjVg/PLOSOne_formatting_sample_main_body.

pdf and

https://journals.plos.org/plosone/s/file?id=ba62/PLOSOne_formatting_sample_title_author

s_affiliations.pdf

We have reviewed the style guidelines, as well as the file names and all seems to be in order,

following journal requirements. Please let us know if we are missing some specific

formatting.

2. Please upload a new copy of Figure 14 as the detail is not clear. Please follow the link for

more information: https://blogs.plos.org/plos/2019/06/looking-good-tips-for-creating-

your-plos-figures-graphics/" https://blogs.plos.org/plos/2019/06/looking-good-tips-for-

creating-your-plos-figures-graphics/

Indeed the resolution of Figure 14 in the PDF file produced during the manuscript

submission is very poor, similarly the quality of a few other figures is unsatisfactory.

However, the resolution and readability of the original tiff files submitted by us with the

manuscript, are very good . Probably, compression of the figure during PDF production was

reducing the figure resolution too far. Thus, it is not clear if anything can be done on our side

to improve the figure quality. Please let us know if there is anything that we could try to

improve the compressed figure quality.

3. Please ensure that you refer to Figures 9, 14, 15, 16, 17, 18, 19, 20, 21, 22, and 23 in your

text as, if accepted, production will need this reference to link the reader to the figure.

This has been corrected; each figure is now referred to in the text.

4. We note that Figures 5 and 14 in your submission contain copyrighted images. All PLOS

content is published under the Creative Commons Attribution License (CC BY 4.0), which

means that the manuscript, images, and Supporting Information files will be freely available

online, and any third party is permitted to access, download, copy, distribute, and use these

materials in any way, even commercially, with proper attribution. For more information, see

our copyright guidelines: http://journals.plos.org/plosone/s/licenses-and-copyright.

Figures 5 and 14 have been generated using our software, which has been created by the

authors of this manuscript. This software is an original contribution and it is not subject to a

copy rights of third parties.

5. We note you have included a table to which you do not refer in the text of your

manuscript. Please ensure that you refer to Tables 1, 2, 3, 4, 6, 7, 8 and 9 in your text; if

accepted, production will need this reference to link the reader to the Table.This has been corrected; each figure is now referred to in the text.

6. Please review your reference list to ensure that it is complete and correct. If you have

cited papers that have been retracted, please include the rationale for doing so in the

manuscript text, or remove these references and replace them with relevant current

references. Any changes to the reference list should be mentioned in the rebuttal letter that

accompanies your revised manuscript. If you need to cite a retracted article, indicate the

article’s retracted status in the References list and also include a citation and full reference

for the retraction notice.

We have revised our reference list; it is complete and correct.

Reviewers' comments:

Reviewer #1: General comments

This paper describes a computational model for unraveling mixing and isotopic

fractionation that occurs various environmental/geochemical/ecological settings. Since

stable isotope ratios often show distinct values between different source materials, isotope

ratios of a sample and its potential sources are compared to estimate contribution from each

source. However, it is not always the case that proportions of the sources are algebraically

calculated because of too many potential sources or isotopic change (fractionation) during

chemical/physical conversion of target compounds after mixing. In addition, error

associated with the source partitioning is not easy to derive. The authors developed a

convenient and flexible tool that can calculate mixing rate of sources with probability

distributions and effect of other factors such as isotopic fractionation. They also present

many examples showing how the tool can resolve the mixing problems of real conditions

appropriately.

Although I cannot fully evaluate the mathematical theory part because it is outside my area

of expertise, I think this paper will bring great benefits to researchers using stable isotopes

to elucidate material cycles in a variety of disciplines. I recommend its publication after

addressing following points.

Thank you very much for your time devoted to reviewing our manuscript and for your

positive opinion and important suggestions. We have corrected the manuscript according to

your comments, please find our response to the specific points below.

Specific comments

Abstract. The authors write “this tool can also be useful for non-stable isotope studies”, but

no example of such application is listed. It would be better to add some ideas.

Thank you for this comment. Our intention was to indicate that this presented tool may also

be potentially used for solving other mixing problems besides stable isotope studies.

However, since the authors specialise in this area, we have only suitable examples from our

area of expertise, and so far are not able to add examples from non-stable isotope studies.

Therefore, we admit that this statement should be removed from the abstract; we only

indicate this potential application in the outlook and conclusions section.L17–18. I think there was an attempt at estimation of errors in source partitioning with

consideration of isotopic fractionation although the approach was simpler than the present

study (Toyoda, S., Yano, M., Nishimura, S., Akiyama, H., Hayakawa, A., Koba, K., et al. (2011).

Characterization and production and consumption processes of N2O emitted from

temperate agricultural soils determined via isotopomer ratio analysis. Global Biogeochem.

Cycles, 25, GB2008).

Thank you very much for this suggestion. We regret omitting this important paper in our

literature review. Indeed, this study was the first in N2O studies, where estimation of errors

was taken into account. This reference with the relevant information was added to the

introduction (in the paragraph regarding N2O modelling) lines: 44-48.

L33–43. In the work of Lewicka-Szczebak et al. (2020) they compared two cases: 1) N2O

reduction by denitrification first occurs and then mixed with N2O from other sources, 2)

N2O reduction occurs after mixing. But in the present paper, it seems only the case 2) is

considered. Can the developed tool also simulate the case 1)?

Thank you very much for this question; indeed, we missed to explain this in the manuscript.

Yes, the tool can simulate both cases, this can be done by entering the proper equation

describing the fractionation process.

For reduction first (case 1)

M = f bD (S bD +Aln(r)) + f nD S nD + f f D S fD + f Ni S Ni

For reduction after mixing (case 2)

M = f bD S bD + f nD S nD + f fD S fD + f Ni S Ni + Aln(r)

Here, for simplicity, we described case 2 only for N2O. The same calculation algorithm was

used in the previous paper, but now we build it into a software with a graphical interface

improving also propagation of errors and redesigning method for accounting the range of

values for the defined sources.

We agree that to be precise and provide full information it is important to inform readers

that we can take into account the fractionation of the whole mixture as well the fractionation

of only one source before mixing. This information has been added in Section 3.3, where

various types of possible fractionation with respective equations are discussed.

L129. Correct typo (1,m]

This typo has been corrected.

L422–425. Although it is not critical in the context, it would be better to note that overall

isotope fractionation is not always equal to simple sum of fractionation for the two step inorder to avoid misunderstanding.

This is correct. This description was very simplified and actually not needed here because,

as the reviewer suggests, it is not particularly relevant in this context. We further revised

this description and gave only a summary fractionation for the entire process to avoid

misunderstanding.

Figure 1 caption, the last line, “The bottom right panel”. LEFT panel?

Thank you very much for your careful reading! This mistake has been corrected.

Also please add titles of axes, same for other figures.

In the standard FRAME output plots showing the distributions and correlations of variables

estimated in the model, the horizontal axes represent fractions and vertical axes represent

either fractions (in case of correlations) or counts (in case of histograms). After testing

multiple solutions, we decided not to include axis descriptions on these plots, because they

significantly reduce readability. Instead, a careful description of the axes was moved to the

figure caption. Moreover, as these plots are automatically generated by the FRAME software,

it would be very challenging to implement a “one-fit-all” solution for axis description.

Figure 2. Some characters in the figure do not correspond to those explained in the caption. I

think the axis titles “X” and “Y” must be “I1” and “I2”, respectively. Also “M” means x?

The labels in the plot were misleading. The figure has been changed accordingly.

Figure 3. I cannot understand why one can tell “the stabilization is achieved” from the figure.

To my eyes, oscillating feature is almost the same between before and after the dashed line.

A following explanation was added to the figure caption:

In this example, the simulation begins with fractions already close to the equilibrium value,

thus the stabilization is achieved virtually instantly and no visible change in oscillations is

observed in dependence on the iteration number.

Figures 16–19. It is confusing that caption says the authors consider only three endmembers

while five sources are plotted in the figure.

This mistake has been corrected. Thank you for remarking on this.

Reviewer #2: The paper presents a working open source framework for stable isotope

analisys.

The software is user friendly and shows some original features in respect to other similar

works. In particular it can consider fractination process besides isotope mixing.The paper is quite well written and clear. There are just some minor notes and suggestions

for authors:

Thank you very much for your time devoted to reviewing our manuscript and for your

positive feedback and helpful suggestions. Please find our responses to your detailed

comments below.

- The examples are usually well presented and references are always given. However, there

can be some difficulties for readers to get a rapid introduction to them. A small introductiion

paragraph for each example, what is the addressed problem and what can be gained with

isotope analisys, can increase readability.

We have rewritten the example case studies paragraphs, expanding a bit the general

introduction to each case to improve clarity.

- The software works flawlessly on Linux/wine, however it is not well clear what is the right

combination of data/source/model for each example. Here also an introduction would be

welcome. A comment part in the data file would be very useful.

We have added a description of each case in the supplement (appendix B) with an indication

of which files should be applied for which case.

- In the last paragraph of the comment of Figure 1, I think there is an error: right --> left.

Yes, thank you for your careful reading! This mistake has been corrected.

Attachment

Submitted filename: review response.pdf

Decision Letter 1

Viacheslav Kovtun

17 Oct 2022

PONE-D-21-35676R1FRAME - Monte Carlo model for evaluation of the stable isotope mixing and fractionationPLOS ONE

Dear Dr. Lewicki,

Thank you for submitting your manuscript to PLOS ONE. After careful consideration, we feel that it has merit but does not fully meet PLOS ONE’s publication criteria as it currently stands. Therefore, we invite you to submit a revised version of the manuscript that addresses the points raised during the review process. Please submit your revised manuscript by Dec 01 2022 11:59PM. If you will need more time than this to complete your revisions, please reply to this message or contact the journal office at plosone@plos.org. When you're ready to submit your revision, log on to https://www.editorialmanager.com/pone/ and select the 'Submissions Needing Revision' folder to locate your manuscript file.

Please include the following items when submitting your revised manuscript:

  • A rebuttal letter that responds to each point raised by the academic editor and reviewer(s). You should upload this letter as a separate file labeled 'Response to Reviewers'.

  • A marked-up copy of your manuscript that highlights changes made to the original version. You should upload this as a separate file labeled 'Revised Manuscript with Track Changes'.

  • An unmarked version of your revised paper without tracked changes. You should upload this as a separate file labeled 'Manuscript'.

If you would like to make changes to your financial disclosure, please include your updated statement in your cover letter. Guidelines for resubmitting your figure files are available below the reviewer comments at the end of this letter.

If applicable, we recommend that you deposit your laboratory protocols in protocols.io to enhance the reproducibility of your results. Protocols.io assigns your protocol its own identifier (DOI) so that it can be cited independently in the future. For instructions see: https://journals.plos.org/plosone/s/submission-guidelines#loc-laboratory-protocols. Additionally, PLOS ONE offers an option for publishing peer-reviewed Lab Protocol articles, which describe protocols hosted on protocols.io. Read more information on sharing protocols at https://plos.org/protocols?utm_medium=editorial-email&utm_source=authorletters&utm_campaign=protocols.

We look forward to receiving your revised manuscript.

Kind regards,

Viacheslav Kovtun, Dr.Sc., Ph.D.

Academic Editor

PLOS ONE

Journal Requirements:

Please review your reference list to ensure that it is complete and correct. If you have cited papers that have been retracted, please include the rationale for doing so in the manuscript text, or remove these references and replace them with relevant current references. Any changes to the reference list should be mentioned in the rebuttal letter that accompanies your revised manuscript. If you need to cite a retracted article, indicate the article’s retracted status in the References list and also include a citation and full reference for the retraction notice.

[Note: HTML markup is below. Please do not edit.]

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: (No Response)

Reviewer #2: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: N/A

Reviewer #2: N/A

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: In the revised manuscript, the problems I pointed out have been improved. I think it is now acceptable after a few minor corrections below.

L12–13. I cannot understand why the authors revised this phrasing while they did not change the words at L4. I cannot make sense out of the phrase "n elements stable isotope composition determination"

L50. Typo. “signature”

Reviewer #2: (No Response)

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

**********

[NOTE: If reviewer comments were submitted as an attachment file, they will be attached to this email and accessible via the submission site. Please log into your account, locate the manuscript record, and check for the action link "View Attachments". If this link does not appear, there are no attachment files.]

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com/. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Registration is free. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email PLOS at figures@plos.org. Please note that Supporting Information files do not need this step.

PLoS One. 2022 Nov 28;17(11):e0277204. doi: 10.1371/journal.pone.0277204.r004

Author response to Decision Letter 1


20 Oct 2022

Dear Dr Kovtun,

We are pleased to resubmit after the second review process our manuscript (PONE-D-21-35676 )

entitled “ FRAME - Monte Carlo model for evaluation of the stable isotope mixing and fractionation”

after additional few minor corrections for consideration in PlosONE journal.

Please see our responses in green below the reviewers’ comments and the changes marked in the

PDF file. The two corrections pointed out by the reviewer 1 are purely editorial and have been

included in the manuscript.

We look forward to the acceptance of our manuscript.

Sincerely yours,

Maciej Lewicki

Corresponding author on behalf of all authors

Review response

Reviewer #1: 

In the revised manuscript, the problems I pointed out have been improved. I think it is

now acceptable after a few minor corrections below.

> Thank you very much for checking our manuscript again. We have corrected the

> mistakes you pointed out as requested.

L12–13. I cannot understand why the authors revised this phrasing while they did not

change the words at L4. I cannot make sense out of the phrase "n elements stable

isotope composition determination"

> This is right, this phrasing was too complex, we changed this to use consequently ‘n

> isotopes analysed in a sample’

L50. Typo. “signature”

> It was corrected.

Attachment

Submitted filename: revision1_DLS.docx

Decision Letter 2

Viacheslav Kovtun

24 Oct 2022

FRAME - Monte Carlo model for evaluation of the stable isotope mixing and fractionation

PONE-D-21-35676R2

Dear Dr. Lewicki,

We’re pleased to inform you that your manuscript has been judged scientifically suitable for publication and will be formally accepted for publication once it meets all outstanding technical requirements.

Within one week, you’ll receive an e-mail detailing the required amendments. When these have been addressed, you’ll receive a formal acceptance letter and your manuscript will be scheduled for publication.

An invoice for payment will follow shortly after the formal acceptance. To ensure an efficient process, please log into Editorial Manager at http://www.editorialmanager.com/pone/, click the 'Update My Information' link at the top of the page, and double check that your user information is up-to-date. If you have any billing related questions, please contact our Author Billing department directly at authorbilling@plos.org.

If your institution or institutions have a press office, please notify them about your upcoming paper to help maximize its impact. If they’ll be preparing press materials, please inform our press team as soon as possible -- no later than 48 hours after receiving the formal acceptance. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information, please contact onepress@plos.org.

Kind regards,

Viacheslav Kovtun, Dr.Sc., Ph.D.

Academic Editor

PLOS ONE

Additional Editor Comments (optional):

Reviewers' comments:

Reviewer's Responses to Questions

Comments to the Author

1. If the authors have adequately addressed your comments raised in a previous round of review and you feel that this manuscript is now acceptable for publication, you may indicate that here to bypass the “Comments to the Author” section, enter your conflict of interest statement in the “Confidential to Editor” section, and submit your "Accept" recommendation.

Reviewer #1: All comments have been addressed

Reviewer #2: All comments have been addressed

**********

2. Is the manuscript technically sound, and do the data support the conclusions?

The manuscript must describe a technically sound piece of scientific research with data that supports the conclusions. Experiments must have been conducted rigorously, with appropriate controls, replication, and sample sizes. The conclusions must be drawn appropriately based on the data presented.

Reviewer #1: Yes

Reviewer #2: Yes

**********

3. Has the statistical analysis been performed appropriately and rigorously?

Reviewer #1: Yes

Reviewer #2: N/A

**********

4. Have the authors made all data underlying the findings in their manuscript fully available?

The PLOS Data policy requires authors to make all data underlying the findings described in their manuscript fully available without restriction, with rare exception (please refer to the Data Availability Statement in the manuscript PDF file). The data should be provided as part of the manuscript or its supporting information, or deposited to a public repository. For example, in addition to summary statistics, the data points behind means, medians and variance measures should be available. If there are restrictions on publicly sharing data—e.g. participant privacy or use of data from a third party—those must be specified.

Reviewer #1: Yes

Reviewer #2: Yes

**********

5. Is the manuscript presented in an intelligible fashion and written in standard English?

PLOS ONE does not copyedit accepted manuscripts, so the language in submitted articles must be clear, correct, and unambiguous. Any typographical or grammatical errors should be corrected at revision, so please note any specific errors here.

Reviewer #1: Yes

Reviewer #2: Yes

**********

6. Review Comments to the Author

Please use the space provided to explain your answers to the questions above. You may also include additional comments for the author, including concerns about dual publication, research ethics, or publication ethics. (Please upload your review as an attachment if it exceeds 20,000 characters)

Reviewer #1: (No Response)

Reviewer #2: All comments have been addressed.

**********

7. PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: No

Reviewer #2: No

**********

Acceptance letter

Viacheslav Kovtun

8 Nov 2022

PONE-D-21-35676R2

FRAME - Monte Carlo model for evaluation of the stable isotope mixing and fractionation

Dear Dr. Lewicki:

I'm pleased to inform you that your manuscript has been deemed suitable for publication in PLOS ONE. Congratulations! Your manuscript is now with our production department.

If your institution or institutions have a press office, please let them know about your upcoming paper now to help maximize its impact. If they'll be preparing press materials, please inform our press team within the next 48 hours. Your manuscript will remain under strict press embargo until 2 pm Eastern Time on the date of publication. For more information please contact onepress@plos.org.

If we can help with anything else, please email us at plosone@plos.org.

Thank you for submitting your work to PLOS ONE and supporting open access.

Kind regards,

PLOS ONE Editorial Office Staff

on behalf of

Professor Viacheslav Kovtun

Academic Editor

PLOS ONE

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Appendix. Supplementary material to the manuscript including the detailed description of the mathematical model, the user guide for the graphical interface as well as a couple of demonstration of interesting use cases.

    (PDF)

    Attachment

    Submitted filename: review response.pdf

    Attachment

    Submitted filename: revision1_DLS.docx

    Data Availability Statement

    All the data can be found in the manuscript. All the code is accessible at web repository: github.com/malewick/frame.


    Articles from PLOS ONE are provided here courtesy of PLOS

    RESOURCES