GetDiffData: Get the differential compounds across all the time points

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

A function to get all the differential compounds between the pre-dose and every post-dose datasets.

Usage

1
 GetDiffData(preData,postData,simidata,mv,rz,sv,log,t,r.adj,filepath,design)

Arguments

preData

The original pre-dose dataset (data frame) with an indicator of gender variable at the first row, grouping variable at the second row, and time points at the third row.

postData

The original post-dose dataset (data frame) with an indicator of gender variable at the first row, grouping variable at the second row, and time points at the third row.

simidata

The same compounds of drug and pre-dose metabolome data, which is derived from Simi.

rz

The percentage of zeros for variable elimination(Default:80)

mv

The method of missing values imputation (Default:"min"). mv=c("min","knn","qrilc")

sv

A logical value indicating whether to remove the outliers (Default:TRUE). The data which distance to the mean is bigger than 1.5 times of the difference value between lower quartile and upper quartile, should be identified as an outlier. And it will be replaced by the mean value of corresponding row.

log

A logical value indicating whether to take the logarithm on the datasets (Default: FALSE)

t

The method for differential compounds identification. C ("Ttest", "MWtest"). Default: "Ttest". Compounds with p values less than 0.05 were taken as differential ones.

r.adj

The methods for p values adjustment. r.adj=c("holm", "fdr"). Default: "fdr".

filepath

A character string indicating the path where the results may be saved in.

design

(optional) a study design dataset(data frame with required format).Use data(design) to see the detailed format.Default:"FALSE"

Details

nothing

Value

A

A list of all the differential compounds, with preprocessed data. The compounds were listed in weight rank order calculated by the SAM (Significance analysis of microarrays) method (see reference 6).

A_pre

A list of all the differential compounds, with original data. The compounds were listed in weight rank order calculated by the SAM (Significance analysis of microarrays) method (see reference 6).

p

The p values of differential compounds. The dimension of p is i*j, if there are i compounds exist in both pre-dose and post-dose data sets and there are j post-dose time points.

p_adj

The adjusted p values of differential compounds. The dimension of p_adj is the same as p.

A folder named "DifferentialMetabolites" containing four files of the above 4 datasets will be created automatically.

The name of the file is: "p-value.xlsx", "p-value(adjusted).xlsx", "DifferentialMetabolites(preprocessed).xlsx" and "DifferentialMetabolites(raw).xlsx" respectively.

And the foreground color of the same compounds produced by Simi will be marked with light blue.If the study design is given by right fromat, the meal times and sleep times will be marked as yellow and grey.

Note

nothing

Author(s)

Mengci Li, Shouli Wang, Guoxiang Xie, Tianlu Chen and Wei Jia

References

1. Ke Lan, Wei Jia, et al. An Integrated Metabolomics and Pharmacokinetics Strategy for Multi-Component Drug Evaluation. (2010) Current Drug Metabolism.

2. Guoxiang Xie, Wei Jia, et al. Metabolic Fate of Tea Polyphenols in Humans. (2012) Journal of Proteome Research.

3. Ke Lan, Wei Jia, et al. Towards Polypharmacokinetics:Pharmacokinetics of Multicomponent Drug and Herbal Medicines Using a Metabolomics Approach. (2013) Evidence-Based Complementary and Alternative Medicine.

4. Wei Jia, Tai-ping Fan, et al. The polypharmacokinetics of herbal medicines. (2015) Science.

5. Guoxiang Xie, Wei Jia, et al. Poly-pharmacokinetic study of a multicomponent herbal medicine in healthy Chinese volunteers. (2017) Clinical Pharmacology&Therapeutics.

6. Virginia Goss Tusher, Robert Tibshirani,et al. Significance analysis of microarrays applied to the ionizing radiation response. (2001) PNAS.

See Also

GetEndo GetAbso GetSecdAbso Simi

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
##---- Should be DIRECTLY executable !! ----
## Not run: data("preData")
data("postData")
data("simidata")
data("design")

GetDiffData(preData,postData,simidata,filepath=getwd(),design=FALSE)

## End(Not run)
##the result will be saved in your current working directory of the R process.

polyPK documentation built on May 2, 2019, 12:37 a.m.