Description Usage Arguments Value See Also Examples
Plots all samples in the output directory supplied to abseqPy's
--outdir
or -o
argument. Users can optionally specify
which samples in directory
should be compared. Doing so generates
additional plots for clonotype comparison and the usual plots will also
conveniently include these samples using additional aes
thetics.
Calling this function with a valid directory
will always return a
named list
of objects; these individual objects can be
combined using the +
operator to form a new comparison, in which the
report function accepts as its first parameter.
1 | abseqReport(directory, report, compare, BPPARAM)
|
directory |
string type. directory as specified in
|
report |
(optional) integer type. The possible values are:
each higher value also does what the previous values do. For example, |
compare |
(optional) vector of strings. From the samples in found in |
BPPARAM |
(optional) BiocParallel backend. Configures the parallel implementation. Refer to BiocParallel for more information. By default, use all available cores. |
named list. List of AbSeqRep objects. The names of
the list elements are taken directly from the repertoire object itself.
This return value is consistent with the return value of report
.
AbSeqRep
report
. Analogous function, but takes input from
an AbSeqRep or AbSeqCRep object instead.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 | # Use example data from abseqR as abseqPy's output, substitute this
# with your own abseqPy output directory
abseqPyOutput <- tempdir()
file.copy(system.file("extdata", "ex", package = "abseqR"), abseqPyOutput, recursive=TRUE)
### 1. The `report` parameter usage example:
# report = 0; don't plot, don't collate a HTML report, don't show anything interactive
samples <- abseqReport(file.path(abseqPyOutput, "ex"), report = 0)
# samples is now a named list of AbSeqRep objects
# report = 1; just plot pngs; don't collate a HTML report; nothing interactive
# samples <- abseqReport(file.path(abseqPyOutput, "ex"), report = 1)
# samples is now a named list of AbSeqRep objects
# report = 2; plot pngs; collate a HTML report; HTML report will NOT be interactive
# samples <- abseqReport(file.path(abseqPyOutput, "ex"), report = 2)
# samples is now a named list of AbSeqRep objects
# report = 3 (default); plot pngs; collate a HTML report; HTML report will be interactive
# samples <- abseqReport(file.path(abseqPyOutput, "ex"), report = 3)
# samples is now a named list of AbSeqRep objects
### 2. Using the return value of abseqReport:
# NOTE, often, this is used to load multiple samples from different directories
# using abseqReport (with report = 0), then the samples are added together
# before calling the report function. This is most useful when the samples
# live in different abseqPy output directory.
# Note that the provided example data has PCR1, PCR2, and PCR3
# samples contained within the directory
stopifnot(names(samples) == c("PCR1", "PCR2", "PCR3"))
# as a hypothetical example, say we found something
# interesting in PCR1 and PCR3, and we want to isolate them:
# we want to explicitly compare PCR1 with PCR3
pcr13 <- samples[["PCR1"]] + samples[["PCR3"]]
# see abseqR::report for more information.
# abseqR::report(pcr13) # uncomment this line to run
### BPPARAM usage:
# 4 core machine, use all cores - use whatever value that suits you
nproc <- 4
# samples <- abseqReport(file.path(abseqPyOutput, "ex"),
# BPPARAM = BiocParallel::MulticoreParam(nproc))
# run sequentially - no multiprocessing
# samples <- abseqReport(file.path(abseqPyOutput, "ex"),
# BPPARAM = BiocParallel::SerialParam())
# see https://bioconductor.org/packages/release/bioc/html/BiocParallel.html
# for more information about how to use BPPARAM and BiocParallel in general.
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.