SubSetPairs | R Documentation |
For a given object of class “PairSummaries”, pairs based on either competing predictions, user thresholds on prediction statistics, or both.
SubSetPairs(CurrentPairs,
UserThresholds,
RejectCompetitors = TRUE,
RejectionCriteria = "PID",
WinnersOnly = TRUE,
Verbose = FALSE)
CurrentPairs |
An object of class “PairSummaries”. Can also take in a generic “data.frame”, as long as the feature naming scheme is the same as that followed by all |
UserThresholds |
A named vector where values indicate a threshold for statistics to be above, and names designate which statistic to threshold on. |
RejectCompetitors |
A logical that defaults to “TRUE”. Allowing users to choose to remove competing predictions. When set to “FALSE”, no competitor rejection is performed. When “TRUE” all competing pairs with the exception of the best pair as determined by “RejectionCriteria” are rejected. Can additionally be set to a numeric or integer, in which case only competing predictions below that value are dropped. |
RejectionCriteria |
A character indicating which column value competitor rejection should reference. Defaults to “PID”. |
WinnersOnly |
A logical indicating whether or not to return just the pairs that are selected. Defaults to “TRUE” to return a subset object of class “PairSummaries”. When “FALSE”, function returns a list of two “PairSummaries” objects, one of the selected pairs, and the second of the rejected pairs. |
Verbose |
Logical indicating whether or not to display a progress bar and print the time difference upon completion. |
SubSetPairs
uses a naive competitor rejection algorithm to remove predicted pairs when nodes are predicted to be paired to multiple nodes within the same index.
An object of class “PairSummaries”, or a list of two “PairSummaries” objects.
Nicholas Cooley npc19@pitt.edu
PairSummaries
NucleotideOverlap
# expected to be deprecated soon...
data("Endosymbionts_Pairs03", package = "SynExtend")
# remove competitors under default conditions
Pairs2 <- SubSetPairs(CurrentPairs = Endosymbionts_Pairs03,
Verbose = TRUE)
THRESH <- c(0.5, 21)
names(THRESH) <- c("Consensus", "TotalMatch")
# remove pairs only based on user defined thresholds
Pairs3 <- SubSetPairs(CurrentPairs = Endosymbionts_Pairs03,
UserThresholds = THRESH,
RejectCompetitors = FALSE,
Verbose = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.