We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pilot below. The final function should better workaround zero-width ranges. See also Issue #12
filterMappedUnaligned <- function(gb) { colinearRegions <- filterColinearRegions(flagColinearAlignments(gb), rename = FALSE) # Turning the sequence of [(TRUE)n, FALSE]n into indices. idx <- c(0, head(cumsum(!colinearRegions$colinear), -1)) gbl <- split(colinearRegions, idx) unalMap <- endoapply(gbl, \(gb) { # Check strand onMinus <- all(strand(gb) == "-") # Need to subtract 1 because some ranges are adjacent (no gap) GBreaks(target = cleanGaps(gb - 1), query = cleanGaps(gb$query -1) |> sort(decreasing = onMinus)) }) |> unlist() names(unalMap) <- NULL unalMap }
The text was updated successfully, but these errors were encountered:
14d3856
No branches or pull requests
Pilot below. The final function should better workaround zero-width ranges. See also Issue #12
The text was updated successfully, but these errors were encountered: