Learn R Programming

PROFANCY (version 1.0)

getCandidates: Get candidate metabolites

Description

Get candidate metabolites to be prioritized. If candidateDefault is TRUE, this system provided default candidate metabolites which is the metabolites in metabolites network except seed metabolites. Otherwise, users could input candidate metabolites. Then the candidate metabolites are the inputting metabolites which are in the metabolites network.

Usage

getCandidates(diseaseName,candidates,network,candidateDefault,seed,seedDefault)

Arguments

diseaseName
A character of the name of the disease users want to study.
network
A charecter presents which type of metabolites network should be chose. Users could choose KEGG or EHMN network. The defult value is "KEGG" network.
seed
A charecter vector. The seed metaboites are the known disease metabolites which are used in PROFANCY method. If users have set the seedDefault parameter TURE thus selceted diseaseName provided by system, users do not need to set this parameter. Otherwise, users should input seed metabolites.
candidates
A charecter vector. If users set the candidateDefault parameter FALSE, users should input candidates. If users do not set this parameter, the candidate metabolites are all metabolites in the network except seed metabolites.
seedDefault
a logical value(TRUE or FALSE). If users set TRUE and have selected the diseaseName provided by system, the seed metabolites are default known disease metabolites. Otherwise, users shoud input seed metabolites.
candidateDefault
a logical value(TRUE or FALSE). If TRUE, the metabolites in network except seed metabolites will be prioritized. Otherwise, users shoud input candidate metabolites.

Value

A character vector.

Details

Note if the seedDefault is TRUE, users should not set the seed parameter and the default seeds would be used in this condition. If users want to input seeds, users should set the seedDefault FALSE. If the candidateDefault is TRUE, users should not set the candidate parameter, the default candidate metabolites would be used in this condition. If users want to input their own candidate, candidateDefault should be FALSE.

See Also

getTopDiseaseMetabolites

Examples

Run this code
## Not run: 
# #############    Get disease candidates   ################
# ##Example 1: Users have chose disease name provided by system (Prostate cancer), 
# ##network is set to "EHMN". The candidates and seed metabolites are default.
# Candidates1<-getCandidates(diseaseName="Prostate cancer",network="EHMN",
#                 seedDefault=TRUE,candidateDefault=TRUE)
# print(Candidates1[1:5])
# 
# 
# 
# ##Example 2: The disease name is input by users. The seeds are provided by users. 
# ##The network is set to "KEGG".The candidates are provided by users.
# path1<-paste(system.file(package="PROFANCY"),"/localdata/ProstateCandidates.txt",sep="")
# candidateExample<-read.table(path1)
# candidateExample<-candidateExample[[1]]
# path2<-paste(system.file(package="PROFANCY"),"/localdata/ProstateSeeds.txt",sep="")
# seedExample<-read.table(path2)
# seedExample<-seedExample[[1]]
# Candidates2<-getCandidates(diseaseName="Prostate cancer",network="KEGG",seed=seedExample,
#                 seedDefault=FALSE,candidates=candidateExample,candidateDefault=FALSE)
# print(Candidates2[1:5])
# 
# 
# ## End(Not run)

Run the code above in your browser using DataLab