Merge two different InteractionSet.
mergeInteractionSet(interactionSet1, interactionSet2, fill = NA)The merged InteractionSet.
# 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)