editBaseline {shazam} | R Documentation |
Edit the Baseline object
Description
editBaseline
edits a field in a Baseline
object.
Usage
editBaseline(baseline, field, value)
Arguments
baseline |
|
field |
name of the field in the |
value |
value to set the |
Value
A Baseline
object with the field of choice updated.
See Also
See Baseline for the input and return object.
Examples
# Subset example data as a demo
data(ExampleDb, package="alakazam")
db <- subset(ExampleDb, c_call == "IGHG" & sample_id == "+7d")
set.seed(112)
db <- dplyr::slice_sample(db, n=100)
# Make Baseline object
baseline <- calcBaseline(db,
sequenceColumn="sequence_alignment",
germlineColumn="germline_alignment_d_mask",
testStatistic="focused",
regionDefinition=IMGT_V,
targetingModel=HH_S5F,
nproc=1)
# Edit the field "description"
baseline <- editBaseline(baseline, field="description",
value="+7d IGHG")
[Package shazam version 1.2.0 Index]