Skip to contents

This function takes a linkSet object, identifies repeated interactions (where both bait and other end are repeated), makes them unique, and counts the number of repetitions for each unique interaction.

Usage

# S4 method for class 'linkSet'
countInteractions(x, baitRegions = TRUE)

Arguments

x

A linkSet object

Value

A list containing:

unique_linkSet

A new linkSet object with unique interactions

interaction_counts

A data frame with counts for each unique interaction

Examples

ls = data(linkExample)
ls = c(ls,ls)
result <- countInteractions(ls)
#> Error: unable to find an inherited method for function ‘countInteractions’ for signature ‘x = "character"’
result
#> Error in eval(expr, envir, enclos): object 'result' not found