Skip to content

Commit 1a1cef3

Browse files
committed
Add example to linkMultipleVariants
1 parent 5579e3d commit 1a1cef3

File tree

2 files changed

+41
-0
lines changed

2 files changed

+41
-0
lines changed

R/linkMultipleVariants.R

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,26 @@
8080
#' \item outCombined - the \code{digestFastqs} output for the combined run.
8181
#' }
8282
#'
83+
#' @examples
84+
#' fqFile <- system.file("extdata", "cisInput_1.fastq.gz",
85+
#' package = "mutscan")
86+
#' out <- linkMultipleVariants(
87+
#' combinedDigestParams = list(fastqForward = fqFile,
88+
#' elementsForward = "SVCV",
89+
#' elementLengthsForward = c(1, 10, 18, 96)),
90+
#' # the first variable sequence is the UMI
91+
#' umi = list(fastqForward = fqFile, elementsForward = "SVCS",
92+
#' elementLengthsForward = c(1, 10, 18, 96)),
93+
#' # the second variable sequence is the amplicon variant
94+
#' var = list(fastqForward = fqFile, elementsForward = "SSCV",
95+
#' elementLengthsForward = c(1, 10, 18, 96),
96+
#' collapseMaxDist = 3, collapseMinScore = 1)
97+
#' )
98+
#' # conversion tables
99+
#' lapply(out$convSeparate, head)
100+
#' # aggregated count table
101+
#' head(out$countAggregated)
102+
#'
83103
#' @importFrom dplyr select rename group_by summarize across matches mutate
84104
#' @importFrom tidyr separate separate_rows
85105
#' @importFrom rlang .data

man/linkMultipleVariants.Rd

Lines changed: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)