Skip to content

Commit

Permalink
Fix whitespace and quoting in SV processing
Browse files Browse the repository at this point in the history
Use of quoting places breakend table entries into a single group
("BND_group") rather expected groups according to BND_group column
values.
  • Loading branch information
scwatts committed Aug 17, 2024
1 parent f261120 commit 84af19e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/sv.R
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ sash_read_sv_tsv <- function(x) {
}

split_svs <- function(x) {
bps_types <- c("BND", "DEL", "DUP", " INS", "INV")
bps_types <- c("BND", "DEL", "DUP", "INS", "INV")

x.grouped <- x |>
dplyr::group_by(
Expand All @@ -186,7 +186,7 @@ join_breakpoint_entries <- function(x) {
# Group by GRIDSS identifier (clipping trailing h/o [h: High, o: lOwer])
bps <- x |>
tidyr::separate("ID", into = c("BND_group", "BND_mate"), sep = -1, convert = TRUE, remove = FALSE) |>
dplyr::group_by("BND_group")
dplyr::group_by(BND_group)

# Set a sequential breakpoint identifier
bps_groups <- bps |> dplyr::n_groups()
Expand Down

0 comments on commit 84af19e

Please sign in to comment.