Credential metabolomic datasets based on isotopic signatures.
http://pubs.acs.org/doi/abs/10.1021/ac503092d
install.packages("devtools")
library(devtools)
install_github("pattilab/credential")
library(credential)
# an accepts an xsAnnotate object from the CAMERA package. This must contain grouping information between the two peaks as well. See below.
an = xsAnnotate(xs)
credentialed_features = credential(
an = an,
r_12t13_a = 0.97, # 12C/13C signal
r_12t13_b = 1.23, # 12C/13C signal
isotope_rt_delta_s = 5,
ppm_for_isotopes = 5,
mixed_ratio_factor = 4,
mixed_ratio_ratio_factor = 1.8,
mpc_f = 1.1,
write_files=T
)
library(xcms)
library(CAMERA)
xs = group(retcor(xcmsSet("file_a.mzxml", "file_b.mzxml")))
an = xsAnnotate(xs)
# settings for xcmsSet(), group(), and retcor() must be optimized by the user
# an is then passed to the credential() call as above
ppm_for_isotopes
:ppm_f = function(masses) {
resolution = (2E6 * masses ^ -0.49) # Emperically determined mass dependence of resolution
fwhm = masses / resolution
ppm_plusminus = fwhm / 2 / masses * 1E6 + 0.3
}
##Modifying The Source
1. Clone this repo
2. Modify the source
r
library(devtools)
load_all("path/to/credential/")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.