Simi: Get the same compounds in two datasets

Description Arguments Details Value Author(s) See Also Examples

Description

A function which can get the same compounds in two datasets.Especially the same compounds of drug and pre-dose metabolome data.

Arguments

data1

The pre-dose dataset (data frame with required format).The first row should be column names. The first and the second column of the first row should be "Name" and "ID", and you can set 2 more tags at the third and the fourth column of the first row, such as "m.z" and "RT.min." or anything you like. From the fifth column till the end, sample indexes or names are expected. The first row of the data frame should be the gender information."1"means male,and "2" means female.The second row of the data frame should be the group information.The first column of the second row should be "group", and you can add group indexes of the data from the fifth column at the second row. The format of group number should be "0"(pre-dose). "1","2","3","4"...(post-dose). The third row of the data frame should be the information of timepoints.Please see the demo data for detailed format.

data2

The drug constitutes dataset (data frame)

filepath

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

Details

The results can be an input argument "simidata" of GetDiffData ,GetEndo,GetAbso,GetSecdAbso

Value

A list :

repetitive rates in data1

The repetitive rates of same compounds in first metabolites dataset

repetitive rates in data2

The repetitive rates of same compounds in second metabolites dataset

similar metabolites

IDs of same compounds(matrix),which can be an input argument of GetDiffData ,GetEndo,GetAbso,GetSecdAbso

And a folder named "SimilarData" containing a file named "Similar-data.xlsx" will be created automatically, which is the same compounds dataset.

Author(s)

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

See Also

GetDiffData GetEndo GetAbso GetSecdAbso

Examples

1
2
3
4
5
##---- Should be DIRECTLY executable !! ----
## Not run: data(preData)
data(drugData)
Simi(data1<-preData,data2<-drugData,filepath=getwd())
## End(Not run)

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