detectDuplicateInteractions {RefNet} | R Documentation |
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.
detectDuplicateInteractions(tbl)
tbl |
a data.frame, returned by interactions method |
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.
Paul Shannon
RefNet, providerClasses, interactions, addStandardNames, pickBestFromDupGroup
filename <- system.file(package="RefNet", "extdata", "tbl.28g2.RData") load(filename) tbl.withDupsColumn <- detectDuplicateInteractions(tbl.28g2) table(tbl.withDupsColumn$dupGroup)