BlockByRank | R Documentation |
This function is designed to work internally to SummarizePairs
so it works on relatively simple atomic vectors and has little overhead checking. All arguments must be the same length.
BlockByRank(index1,
partner1,
index2,
partner2)
index1 |
Integer; references the contigs containing candidate feature partners. |
partner1 |
Integer; references the candidate feature partners by row position in the source DataFrame. |
index2 |
Integer; references the contigs containing candidate feature partners. |
partner2 |
Integer; references the candidate feature partners by row position in the source DataFrame. |
BlockByRank
uses the diagonal rank to identify where runs of candidate features are present in sequential blocks. In cases where a candidate feature is part of two competing blocks it is assigned to the larger.
A list with named elements absblocksize
and blockidmap
.
Nicholas Cooley npc19@pitt.edu
NucleotideOverlap
, SummarizePairs
, FindSynteny
data("Endosymbionts_Pairs01", package = "SynExtend")
x <- paste(Endosymbionts_Pairs01$p1, Endosymbionts_Pairs01$p2, sep = "_")
x <- do.call(rbind, strsplit(x = x, split = "_", fixed = TRUE))
x <- matrix(data = as.integer(x), nrow = nrow(x))
y <- BlockByRank(index1 = x[, 2],
partner1 = x[, 3],
index2 = x[, 5],
partner2 = x[, 6])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.