Learn R Programming

osd (version 0.1)

ref.spects: Five MS reference spectra from the MassBank MS library for spectra comparison

Description

A data matrix from a real pure standards GC-MS experiment.

Usage

data(ref.spects)

Arguments

Details

The data includes a list of five vectors containing 5 MS spectra from the MassBank MS library [1]. Concretely, the spectra are Methionine 2TMS, Aspartic Acid 3TMS, Nicotinic Acid 1TMS, Isoleucine 2TMS and Proline 2TMS. These are the compounds appearing in the examples given in gcms1 and gcms2.

See Also

osd, gcms1, gcms2

Examples

Run this code
	
	#load GC-MS sample data, containing three different metabolites
	# appearing in co-elution.
	data(gcms1)
	data(ref.spects)

	#resolve the situation using ICA-OSD algorithm
	resolution <- osd(D=gcms1, k=3, res.method="ica.osd")

	#plot each resolved spectra for compound 1 to 3.
	ref.sp <- ref.spects$nicotinicacid1[-c(1:34)]
	plotOSDres(resolution, type="s",1,comp.spectra=ref.sp)
	
	# note that from the spectra the first 34 
	# values are omitted, this is because the original
	# spectra given comprises the masses from 1 to 600, 
	# whereas the data in gcms1 and gcms2 
	# only comprises the m/z from 35 to 600.
	

Run the code above in your browser using DataLab