expandMatching2singleIDs: Expand matching to single entries

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

View source: R/dataManagementFunctions.r

Description

In case a feature of platform 1 has been matched to multiple features of another platform, instead of averaging the data from these features, one may consider maintaining all features, each matched individually the feature of platform 1. This function modifies the results from the matching function matchAnn2Ann to facilitate this. The result can than directly be used in the subsetting functions cghCall2weightedSubset and ExpressionSet2weightedSubset.

Usage

1

Arguments

matchedIDs

An object of class list, as returned by the matchAnn2Ann-function.

Value

An object of class list, similar to that returned by the matchAnn2Ann-function.

Author(s)

Wessel N. van Wieringen: w.vanwieringen@vumc.nl

References

Van Wieringen, W.N., Unger, K., Leday, G.G.R., Krijgsman, O., De Menezes, R.X., Ylstra, B., Van de Wiel, M.A. (2012), "Matching of array CGH and gene expression microarray features for the purpose of integrative analysis", BMC Bioinformatics, 13:80.

See Also

matchAnn2Ann, cghCall2weightedSubset, ExpressionSet2weightedSubset.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
# load data
data(pollackCN16)
data(pollackGE16)

# extract genomic information from cghCall-object
chr1 <- fData(pollackCN16)[,1]
bpstart1 <- fData(pollackCN16)[,2]
bpend1 <- fData(pollackCN16)[,3]

# extract genomic information from ExpressionSet-object
chr2 <- fData(pollackGE16)[,1]
bpstart2 <- fData(pollackGE16)[,2]
bpend2 <- fData(pollackGE16)[,3]

# match features from both platforms
matchedFeatures <- matchAnn2Ann(chr1, bpstart1, bpend1, chr2, 
	bpstart2, bpend2, method = "distance", maxDist = 10000) 

# expand
matchedFeatures <- expandMatching2singleIDs(matchedFeatures) 

sigaR documentation built on April 28, 2020, 6:05 p.m.