mergeRaw: Merge multiple raw datasets preparing for cross-species...

Description Usage Arguments Value Examples

View source: R/mergeRaw.R

Description

Merge multiple raw datasets The mergeRaw is function to merge multiple raw datasets by matching orthologs

Usage

1
2
mergeRaw(data.list, species, ortholog.db, ortholog.file = NULL,
  reference = 1, unique = T)

Arguments

data.list:

a list of data matrices.

species:

a vector specie names of same length as data.list.

ortholog.db:

the ortholog object (in R environment)

ortholog.file:

the ortholog file to be imported

reference:

the index of the reference data, the outputted merged list will be named using the rownames of this data.

unique:

logical value indicating whether to take only the "one to one" unique match (T) or allow "multiple to one" and "one to multiple" match (F)

Value

an merged list of rdatasets (with same number of rows and rownames)

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Not run: 
data(hb)
hb.data <- data
hb.group <- group
data(hs)
hs.data <- data
hs.group <- group
data(ht)
ht.data <- data
ht.group <- group
data(mb)
mb.data <- data
mb.group <- group
data(ms)
ms.data <- data
ms.group <- group
data(mt)
mt.data <- data
mt.group <- group
data.list <- list(hb.data,hs.data,ht.data,mb.data,ms.data,mt.data)
species <- c(rep("human",3), rep("mouse",3))
data(hm_orth)
data.merge.list <- mergeRaw(data.list,species=species,
ortholog.db = hm_orth, reference=1,unique=T)

## End(Not run)

matianzhou/CAMO documentation built on May 21, 2019, 10:12 a.m.