Learn R Programming

goProfiles (version 1.34.0)

mergeProfilesLists: Combines two lists of profiles into one

Description

Combines two lists of profiles, that is two lists with three components, 'MF', 'BP', 'CC' into a single one.

Usage

mergeProfilesLists(profilesList1, profilesList2, emptyCats = F, profNames = NULL)

Arguments

profilesList1
First list to combine
profilesList2
Second list to combine
emptyCats
Boolean. Set to TRUE if there are empty categories that should be accounted for in any of the profiles
profNames
Names for the profiles (optional). If missing they are set to 'Frequency-1', 'Frequency-2',etc.

Value

A list of profiles with more than one column each.

Examples

Run this code
require(goProfiles)
data(prostateIds)
welsh.MF <- basicProfile (welsh01EntrezIDs[1:100], onto="MF", level=2, orgPackage="org.Hs.eg.db") 
singh.MF <- basicProfile (singh01EntrezIDs[1:100], onto="MF", level=2, orgPackage="org.Hs.eg.db") 
plotProfiles(welsh.MF,'Functional profiles for Welsh dataset',percentage=TRUE)
welsh.singh.MF <-mergeProfilesLists(welsh.MF, singh.MF, profNames=c("Welsh", "Singh"))

Run the code above in your browser using DataLab