correct.meas: Correction of Metabolic Rate Measurements

Description Usage Arguments Value References Examples

View source: R/correct.meas.R

Description

The function is used to correct metabolic rate measurements for background respiration. To this end, oxygen consumption is estimated as the slope of the linear regression of measured O_{2} concentration over time, and is extracted for background respiration test and for each measurement phase. The correction is based on subtraction of oxygen consumption obtained during background respiration test from oxygen consumption obtained during metabolic rate measurements.

Usage

1
2
3
4
5
correct.meas(info.data, pre.data, post.data, meas.data,
             method = c("pre.test", "post.test", "average",
                        "linear", "exponential", "parallel"),
             empty.chamber = c("CH1", "CH2", "CH3", "CH4",
                               "CH5", "CH6", "CH7", "CH8"))

Arguments

info.data

a data frame obtained by using the function input.info

pre.data

a data frame obtained by using the function import.test for a blank test before actual metabolic rate measurements

post.data

a data frame obtained by using the function import.test for a blank test after actual metabolic rate measurements

meas.data

a data frame obtained by using the function import.meas for actual metabolic rate measurements

method

string: the name of the method used for background respiration correction:

  • "pre.test" - subtracts oxygen consumption of pre.data from oxygen consumptions of meas.data

  • "post.test" - subtracts oxygen consumption of post.data from oxygen consumptions of meas.data

  • "average" - subtracts an averaged oxygen consumption of pre.data and
    post.data from oxygen consumptions of meas.data

  • "linear" - subtracts a vector of progressively changing microbial consumptions from oxygen consumptions of meas.data. The values of oxygen consumption are linearly predicted from two reference points: oxygen consumption of pre.data and oxygen consumption of post.data.

  • "exponential" - subtracts a vector of progressively changing microbial consumptions from oxygen consumptions of meas.data. The values of oxygen consumption are exponentially predicted from two reference points: oxygen consumption of pre.data and oxygen consumption of post.data.

  • "parallel" - subtracts oxygen consumption in an empty chamber from oxygen consumptions of meas.data for each chamber

empty.chamber

string: the name of an empty chamber used only for the method 'parallel'

Value

The function returns a data frame containing data of metabolic rate measurements corrected for background respiration. The data frame is used in the functions QC.meas, QC.activity,
extract.slope and QC.slope.

References

Svendsen, M. B. S., Bushnell, P. G., & Steffensen, J. F. (2016). Design and setup of intermittent-flow respirometry system for aquatic organisms. Journal of Fish Biology, 88(1), 26-50.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
# if the data have been already loaded to R,
# skip the first five lines of the code:
data(info)
data(pre)
data(post)
data(AMR.raw)
## Not run: 
data(SMR.raw)
SMR.clean <- correct.meas(info.data = info,
                          pre.data = pre,
                          meas.data = SMR.raw,
                          method = "pre.test")

## End(Not run)

AMR.clean <- correct.meas(info.data = info,
                          post.data = post,
                          meas.data = AMR.raw,
                          method = "post.test")

FishResp documentation built on Oct. 22, 2018, 9:03 a.m.