detectDuplicateInteractions: detectDuplicateInteractions

Description Usage Arguments Value Author(s) See Also Examples

View source: R/RefNet-class.R

Description

Assign a shared "dupGroup" number to each duplicated interaction, here defined as A.canonical, type, B.canonical. All other information about the interaction is ignored. An A-B interaction is treated the same as a B-A interaction. This assessment prepares a possibly large interaction set for scrutiny by eye, or programmatically, for filtering, in which a single preferred interaction can be selected, out of each dupGroup, for further use.

Usage

1

Arguments

tbl

a data.frame, returned by interactions method

Value

A data.frame identical to the one passed as an argument, but with one additional column "dupGroup". dupGroup 0 (zero) contains all of the interactions which have NO duplicates.

Author(s)

Paul Shannon

See Also

RefNet, providerClasses, interactions, addStandardNames, pickBestFromDupGroup

Examples

1
2
3
4
  filename <- system.file(package="RefNet", "extdata", "tbl.28g2.RData")
  load(filename)
  tbl.withDupsColumn <- detectDuplicateInteractions(tbl.28g2)
  table(tbl.withDupsColumn$dupGroup)

RefNet documentation built on April 29, 2020, 4:12 a.m.