Merge two different InteractionSet.

mergeInteractionSet(interactionSet1, interactionSet2, fill = NA)

Arguments

interactionSet1

The first InteractionSet.

interactionSet2

The second InteractionSet.

fill

Fill missing values with this.

Value

The merged InteractionSet.

Examples

path <- system.file("extdata", "hicsample_21.cool", package = "HiCParser")
object1 <- parseCool(path, conditions = 1, replicates = 1)
#> Loading required namespace: rhdf5
#> 
#> Parsing '/__w/_temp/Library/HiCParser/extdata/hicsample_21.cool'.
# Creating an object with a different condition
object2 <- parseCool(path, conditions = 2, replicates = 1)
#> 
#> Parsing '/__w/_temp/Library/HiCParser/extdata/hicsample_21.cool'.
objectMerged <- mergeInteractionSet(object1, object2)