editBaseline: Edit the Baseline object

Description Usage Arguments Value See Also Examples

View source: R/Baseline.R

Description

editBaseline edits a field in a Baseline object.

Usage

1
editBaseline(baseline, field, value)

Arguments

baseline

Baseline object to be edited.

field

name of the field in the Baseline object to be edited.

value

value to set the field.

Value

A Baseline object with the field of choice updated.

See Also

See Baseline for the input and return object.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
# Subset example data
data(ExampleDb, package="alakazam")
db <- subset(ExampleDb, c_call == "IGHG" & sample_id == "+7d")

# 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")

shazam documentation built on July 9, 2021, 1:07 a.m.