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

# Using the same file for example purpose
matfile <- system.file("extdata", "hicsample_21.matrix",
                       package = "HiCParser")
bedFile <- system.file("extdata", "hicsample_21.bed",
                           package = "HiCParser")
object1 <- parseHiCPro(
  matrixPaths = matfile,
   bedPaths = bedFile,
   conditions = 1,
   replicates = 1)
#> 
#> Parsing '/__w/_temp/Library/HiCParser/extdata/hicsample_21.matrix' and '/__w/_temp/Library/HiCParser/extdata/hicsample_21.bed'.
object2 <- parseHiCPro(
  matrixPaths = matfile,
   bedPaths = bedFile,
   conditions = 2,
   replicates = 1)
#> 
#> Parsing '/__w/_temp/Library/HiCParser/extdata/hicsample_21.matrix' and '/__w/_temp/Library/HiCParser/extdata/hicsample_21.bed'.
objectMerged <- mergeInteractionSet(object1, object2)