plus-sparseHiCdatum-sparseHiCdatum-method: Combining together multiple Hi-C Samples

Description Usage Arguments Value Examples

Description

First, we check if the resolutions are different but the sample is the same. If so, then we append the new resolution, returning a sparseHiCdatum object. If not, then we append it as a new sample. The metaData handling is designed for functionality, not inclusiveness.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
## S4 method for signature 'sparseHiCdatum,sparseHiCdatum'
e1 + e2

## S4 method for signature 'sparseHiCdata,sparseHiCdata'
e1 + e2

## S4 method for signature 'sparseHiCdatum,sparseHiCdata'
e1 + e2

## S4 method for signature 'sparseHiCdata,sparseHiCdatum'
e1 + e2

## S4 method for signature 'sparseHiCdatum,sparseHiCdatum'
combine(x, y)

## S4 method for signature 'sparseHiCdata,sparseHiCdata'
combine(x, y)

## S4 method for signature 'sparseHiCdatum,sparseHiCdata'
combine(x, y)

## S4 method for signature 'sparseHiCdata,sparseHiCdatum'
combine(x, y)

Arguments

e1

A sparseHiCdatum object

e2

A sparseHiCdatum object

x

A sparseHiCdatum object

y

A sparseHiCdatum object

Value

A sparseHiCdatum/data object depending on if joining multiple samples

Examples

1
2
3
4
5
6
7
8
9
rdsA<-paste(system.file('rds',package='sparseHiC'),'hESCdatum1.rds',sep='/')
hESCdatum1 <- readRDS(rdsA)
rdsB<-paste(system.file('rds',package='sparseHiC'),'hESCdatum2.rds',sep='/')
hESCdatum2 <- readRDS(rdsB)
rdsC<-paste(system.file('rds',package='sparseHiC'),'IMR90datum1.rds',sep='/')
IMR90datum1 <- readRDS(rdsC)
hESCdata <- hESCdatum1 + hESCdatum2
threeA <- IMR90datum1 + hESCdata
threeB <- hESCdata + IMR90datum1

aryeelab/sparseHiC documentation built on May 12, 2019, 3:43 a.m.