- Notifications
You must be signed in to change notification settings - Fork3
work with orbitrap isotope ratio mass spectrometry data
License
Unknown, MIT licenses found
Licenses found
isoverse/isoorbi
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The goal of the isoorbi R package is to help you process isotopoculemeasurements from anOrbitrap Isotope Solutions mass spectrometer.It can read both the.raw files (recommended approach) aswell as.isox output created by IsoX (legacy approach).
You can install the current CRAN version ofisoorbi with:
# install the isoorbi packageinstall.packages("isoorbi")# check/install the isoraw readerisoorbi::orbi_check_isoraw()
Important: the call to
orbi_check_isoraw()installs theisorawreaderbuilt into this package, which uses Thermo’sRawFileReader tomake it possible to read .RAW files directly. During the installation,you will be asked to agree toThermo’s licenseagreementto proceed.
To use the latest updates, you can install the development version ofisoorbi fromGitHub. If you are on Windows,make sure to install the equivalent version ofRtools for yourversion of R (you can find out which version you have withgetRversion() from an R console - note that isoorbi requiresRversion 4.4 or newer).
# checks that you are set up to build R packages from sourceif (!requireNamespace("pkgbuild",quietly=TRUE)) { install.packages("pkgbuild")}pkgbuild::check_build_tools()# installs the latest isoorbi package from GitHubif (!requireNamespace("pak",quietly=TRUE)) { install.packages("pak")}pak::pak("isoverse/isoorbi")# check/install the isoraw readerisoorbi::orbi_check_isoraw()
# load librarylibrary(isoorbi)# provide the path to your data folder here:my_data_folder<- file.path("project","data")# and search for raw files in that folderfile_paths<- orbi_find_raw(my_data_folder)# for this example, we use a small raw test file bundled with the# package instead (remove this line if working with your own data)file_paths<- orbi_get_example_files("nitrate_test_10scans.raw")# read the raw file incluing 2 of the raw spectraraw_files<-file_paths|> orbi_read_raw(include_spectra= c(1,10))# aggregate the raw data (processes the read files)raw_agg<-raw_files|> orbi_aggregate_raw()# plot the spectraraw_agg|> orbi_plot_spectra()
# identify isotopcules# these could also come from a data frame or a tsv/csv/excel fileraw_agg<-raw_agg|> orbi_identify_isotopocules(isotopocules= c("M0"=61.9878,"15N"=62.9850,"17O"=62.9922,"18O"=63.9922 ) )# plot again, now with the isotopocules identifiedraw_agg|> orbi_plot_spectra()
# process raw files datadataset<-raw_agg|># check for satellite peaks orbi_flag_satellite_peaks()|># filter out unidentified isotopocules# (happes automatically during define_basepeak as of version 1.5.3) orbi_filter_isotopocules()|># define base peak orbi_define_basepeak(basepeak_def="M0")# plot the resulting isotopocule ratiosdataset|> orbi_plot_raw_data(y=ratio)
# calculate ratios across scansresults<-dataset|> orbi_summarize_results(ratio_method="sum")# print resultsresults|> orbi_get_data(summary= c("isotopocule","ratio","ratio_sem"))# export results to excelresults|> orbi_export_data_to_excel(file="data_summary.xlsx",# note: as of version 1.5.3, this is the default and does not need to# be specified explicitly anymoreinclude= c("file_info","summary") )
| uidx | filename | isotopocule | ratio | ratio_sem |
|---|---|---|---|---|
| 1 | nitrate_test_10scans | 15N | 0.0042241 | 0.0000980 |
| 1 | nitrate_test_10scans | 17O | 0.0013175 | 0.0000554 |
| 1 | nitrate_test_10scans | 18O | 0.0077492 | 0.0001622 |
For additional code, please check out ourExamples in the main menuatisoorbi.isoverse.org, and peruse thefull package structure below.
If you encounter a bug, please file an issue with a minimal reproducibleexample onGitHub.
For questions and other discussion, please use theisoorbi slackworkspace.
This package is part of the isoverse suite of data tools for stableisotopes. If you like the functionality that isoverse packages provideto the geochemical community, please help us spread the word and includean isoverse or individual package logo on one of your posters or slides.All logos are posted in high resolution inthisrepository. If you have suggestionsfor new features or other constructive feedback, please let us know onthis shortfeeback form.
About
work with orbitrap isotope ratio mass spectrometry data
Resources
License
Unknown, MIT licenses found
Licenses found
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors4
Uh oh!
There was an error while loading.Please reload this page.



