README.md

Ramid, Midcor, Isoform

Stable Isotope Resiolved Metabolonics (SIRM): preparation of data from raw mass spectrometers recording to fluxomic analysis.

Logo

Version: 1.0

Short description

A suit of R-programs designed to extract mass spectra (MS) of 13C-labeled metabolites of interest from raw mass spectrometer recordings, correct them for natural isotope occurrence, grouping the data designed for simultaneous reproducing in a kinetic model.

Description

Ramid extracts mass spectra of 13C-labeled metabolites of interest from raw mass spectrometer recordings of the time course of their elution from a chromatography column. A description text file should specify the metabolites of interest by their m/z values and retention time (RT). Ramid evaluates mass isotopomer distributions (MID) of metabolites at the moments of their maximal elution rates, expected to be close to the specified a priori RT values. Ramid uses library "ncdf4" to read the NetCDF files containing the raw data. It is necessary to install it before the first use of Ramid. The files "ramid.R" and "lib.R" located in a subdirectory 'R' contain the complete code of Ramid. Its functions reside in reading NetCDF files, extracting and visualizing the spectra that they contain.

Midcor takes the spectra extracted by Ramid and corrects them for natural isotope occurrence and possible overlapping with those of some foreign substances. Thus it provides the mass isotopomer distribution (MID) produced by isotopes artificially introduced into the substrates used.

Isoform reads the results of Midcor and prepares the data for simulation with Isodyn. For each metabolite, groups the corrected MID by the conditions that will be simulated and then by the time of sampling. Then it finds the mean value and SD inside the groups, combines the obtained values for all the metabolites whose MID Isodyn will use in the same simulation.

Key features

Functionality

Approaches

Instrument Data Types

Data Analysis

Tool Authors

Container Contributors

Website

Git Repository

Installation

R cd <ramidcor> sudo R install.packages(‘ncdf4’) install.packages(‘devtools’) library(devtools) build() install()

Usage Instructions

1. Extraction of raw mass spectra from NetCDF files saved by a mass spectrometer using Ramid:

R cd <path_to_ramidcor> R # if the library 'ramidcor' was not created, then read the source directly: source("R/ramidwin.R") source("R/lib.R") # if the library 'ramidcor' was created, load it: library(ramidcor) library(ncdf4) # run Ramid: ramid(infile='<path_to_description>',cdfdir='<path_to_NetCDFs/>',fiout='out.csv',md='scan') - here the first parameters is the path to a text file containing a short description of the metabolites of interest exemplified in the screenshot below; the second parameter is the path to a directory containing the .CDF files with raw mass spectrometer data; ramid_input

the third parameter is a path to the output file where the (MID) of all the metabolites of interests are grouped in the format provisional for the database Metabolights; the third parameter is the mode of the mass spectrometer recording, the default value is 'scan'. However, in addition to the default output 'out.csv' Ramid produces a series of files in the directory '../files/\<NetCDFs/>', where the data for each metabolite extracted from all the available NetCDF files are saved in separate text files under the names of the corresponding metabolite. Then the extracted spectra can be checked and wrong data edited/eliminated manually. An example of such an output is shown here ramid_output

2. Correction of Ramid output by Midcor.

After completing the extraction of the mass spectra of interest Midcor can read the files generated by Ramid for each metabolite of interest and correct them for natural isotope occurrence taking the information of the chemical composition of the analyzed derivated metabolite molecule from the same description text file that is used as an input for Ramid and exemplified in Table 1. The following commands should be used to execute Midcor in separate session:

R cd <path_to_ramidcor> R # if the library 'ramidcor' was not created, then read the source directly: source("R/midcor.R") source("R/lib.R") # if the library 'ramidcor' was created, load it: library(ramidcor) # run Midcor: midcor(infile='<path_to_description>',dadir='<path_to_Ramid_results/\>') Midcor saves the corrected MID in text files naming them by adding the extension .txt to the names of corresponding input files (which are the outputs for Ramid). If Midcor executed in the same session as Ramid, not all the above commands should be used, but only those not used for Ramid execution. Then the corrected data can be checked and wrong data edited/eliminated manually. An example of the format in a text file of Midcor output is shown here midcor_out

3. Preparation for simulation performed by Isodyn

Midcor corrects the MID for all of the provided samples, which may refer to distinct conditions that the tool Isodyn designed for simulations of system dynamics should reproduce separately. Also, the data related to different time points of incubation Isodyn treats accordingly. Moreover, it accounts not every sample, but rather the mean values for the chosen conditions and time point of incubation. The tool Isoform reads the output of Midcor, groups the data by the condition, and by incubation time for the data of the given condition. Then it finds the mean values and standard deviations of relative labeling in the selected groups and saves such data prepared for simulation. * It takes the information, necessary to perform such a preparation of data, from a text file that should be provided with respect to the following format: isoform_in

The first line contains the names of metabolites, whose data Isodyn will simulate, and first and last carbons of the fragment that was registered. The names of metabolites at the same time are the names of files where the respective MID were saved. The second line indicates the available time points of incubation. The third line shows the conditions, in the presented example, it is a nickname of the tracer, as it is abbreviated in the names of the NetCDF files. The last line shows the specific isotopomer used as a tracer. It represented by the binary numbers, assuming that 1 is 13C and 0 is 12C. In this way, 1,2-13C -Glucose is expressed as binary 110000 that, being transformed into the decimal, means 48; uniformly labeled glutamine is represented as 11111, which, being converted into the decimal, means 31. The last number is the fraction of the tracer in the provided substrate. Thus, the first line indicates the file name where to search the MID of interest, and the information presented in the other lines the program searches in the names of the NetCDF files.

The names of CDF files provided

This file indicates the information necessary for simulation: time points of sampling during incubation; mean values and SD of labeling for various metabolites and time points. Isodyn reads this information and adjust simulations respectively.

An example provided

R cd <.../>ramidcor R source("R/ramidwin.R") source("R/lib.R") ramid(infile='sw620',cdfdir='SW620/') source("R/midcor.R") midcor(infile="sw620",dadir='files/SW620/') source('R/isoform.R') isoform(isofi='toIsodyn',dor='files/SW620/')



seliv55/ramidcor documentation built on Sept. 11, 2021, 4:09 p.m.