1 Star 0 Fork 0

Ji Hongchao / KPIC2

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

KPIC2

KPIC2 is an effective platform for LC-MS based metabolomics using pure ion chromatograms, which is developed for metabolomics studies. KPIC2 can detect pure ions accurately, align PICs across samples, group PICs to annotate isotope and adduct PICs, fill missing peaks and pattern recognition. High-resolution mass spectrometers like TOF and Orbitrap are more suitable.

Installation

Install Depends:

install.packages(c("devtools", "Rcpp", "RcppArmadillo", "mzR", "parallel", "shiny", "plotly", "data.table", "GA", "IRanges", "dbscan", "randomForest"))
source("https://bioconductor.org/biocLite.R")
biocLite(c("mzR","ropls"))

Install KPIC2:

library(devtools);  
install_github("hcji/KPIC2")

Usage:

Feature detection:

Extract pure ion chromatograms via optimized K-means clustering of ions in region of interest, and detect peaks of PICs. For a single sample:

library(KPIC)
filename <- 'E:/LC-MS data/example/1-1_Seg1Ev1.mzXML'
pics <- getPIC.kmeans(filename, level=50000)
pics <- PICsplit(pics)
pics <- getPeaks(pics)
viewPICs(pics)

For a set of samples:

files <- 'E:/LC-MS data/example'
PICS <- PICset.kmeans(files, level=50000, export=F, par=T)
PICS <- PICset.split(PICS)
PICS <- PICset.getPeaks(PICS)
viewPICs(PICS[[1]])

Grouping and Alignment:

Align PICs extracted in the last step across samples.

groups_raw <- PICset.group(PICS, tolerance = c(0.1, 20))
groups_align <- PICset.align(groups_raw, method='fftcc',move='loess')
groups_align <- PICset.group(groups_align$picset, tolerance = c(0.1, 20))
groups_align <- PICset.align(groups_align, method='fftcc',move='direct')
viewAlign(groups_raw, groups_align)

Group combination:

The group combination can be used for grouping isotopic and adduct features with the main features.

groups_align <- groupCombine(groups_align, type='isotope')
viewPseudospecturm(groups_align)

Generate the peak matrix:

Summarize extracted information into a data matrix.

data <- getDataMatrix(groups_align)

Miss peak filling:

After grouping, there always be peak groups that do not in-clude peaks from every sample. The cause of missing peaks mean does lies on that the peak does not exit. It may be caused by undetection or misalignment.

data <- fillPeaks.EIBPC(data)

Pattern recognition:

Finding the difference between two class. random forest is used for the example.

labels <- c(rep('A',6), rep('B',6)) # the class of each sample
analyst.RF(labels, data$data.mat)

Contact

For any questions, please contact: ji.hongchao@foxmail.com

空文件

简介

KPIC2: An Effective Framework for Mass Spectrometry-Based Metabolomics Using Pure Ion Chromatograms 展开 收起
R
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
R
1
https://gitee.com/hcji/KPIC2.git
git@gitee.com:hcji/KPIC2.git
hcji
KPIC2
KPIC2
master

搜索帮助