Skip to contents

Order linkSet by mcols

Usage

# S4 method for class 'linkSet'
orderLinks(x, by = "count", decreasing = TRUE)

Arguments

by

The column name to order by

decreasing

Whether to sort in decreasing order

Value

A linkSet object with ordered interactions

Examples

data(linkExample)
linkSet = c(linkExample,linkExample)
linkSet = countInteractions(linkSet)
linkSet = filterLinks(linkSet, filter_intra = FALSE, filter_unannotate = FALSE, distance = 100000)
linkSet = orderLinks(linkSet, by = "count", decreasing = TRUE)