Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions R/inversionDistance.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@
#' @return An integer: the minimal number of inversions needed to sort the permutation.
#'
#' @examples
#' \dontrun{
#' # Example using a permutation vector directly
#' # Suppose we want to sort the permutation p = c(1, 3, -2, 4)
#' inversionDistance(c(1, 3, -2, 4))
#'
#' # Example using a GBreaks object
#' inversionDistance(exampleInversion2)}
#' # Example using a GBreaks object.
#' # This example is based on Figure 4(a) from Hannehalli and Pevzner (1999). The inversion distance is 8.
#' inversionDistance(exampleInversionHP1999fig4a)
#'
#' @seealso \code{\link{permutationVector}} for generating the permutation vector.
#'
Expand Down
10 changes: 0 additions & 10 deletions data-raw/StructuralVariants.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,6 @@ exampleInversion <- GBreaks(exampleInversion)
seqlengths(exampleInversion) <- seqlengths(exampleInversion$query) <- 600
isSorted(exampleInversion)

# Inversions 2

exampleInversion2 <- GRanges(c("chrA:100-190", "chrA:200-290", "chrA:300-390", "chrA:400-490", "chrA:500-590", "chrA:600-690"))
strand(exampleInversion2) <- c( "+", "-", "-", "-", "+", "+" )
exampleInversion2$query <- GRanges(c("chrA:100-190", "chrA:300-390", "chrA:200-290", "chrA:400-490", "chrA:600-690", "chrA:500-590"))
exampleInversion2 <- GBreaks(exampleInversion2)
seqlengths(exampleInversion2) <- seqlengths(exampleInversion2$query) <- 700
isSorted(exampleInversion2)

# Inversion in a 5-bloc context with non-collapsed regions
# This is an intermediary step towards `exampleDoubleInversion1`

Expand Down Expand Up @@ -259,7 +250,6 @@ usethis::use_data(
exampleColinear3,
exampleColinear5,
exampleInversion,
exampleInversion2,
exampleInversion5uncollapsed,
exampleDoubleInversion1,
exampleDoubleInversion2,
Expand Down
2 changes: 1 addition & 1 deletion man/inversionDistance.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading