modifySettings: Modify Settings

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/chicago.R

Description

Modify the settings in a chicagoData object.

Usage

1
modifySettings(cd, designDir=NULL, settings=list(), settingsFile=NULL)

Arguments

cd

A chicagoData object.

designDir

The new location of the design directory, e.g "~/resources/path" or NULL if not modified.

settings

A named list containing settings to modify.

settingsFile

The location of a file containing settings or NULL if not provided. Each row should contain the name of a setting, followed by whitespace, followed by the value of that setting.

Details

cd's settings are updated. For a list of available settings, see defaultSettings.

Value

An object of class chicagoData.

Author(s)

Mikhail Spivakov, Jonathan Cairns, Paula Freire Pritchett

See Also

setExperiment, defaultSettings

Examples

1
2
3
4
5
6
7
8
9
designDir <- file.path(system.file("extdata", package="Chicago"), "unitTestDesign")

cd <- setExperiment(designDir)

##Suppose I want to change the number of samples drawn for dispersion estimation 
print(settings(cd)$brownianNoise.subset)

cd <- modifySettings(cd, settings=list(brownianNoise.subset = 10))
print(settings(cd)$brownianNoise.subset)

Chicago documentation built on Nov. 8, 2020, 8:15 p.m.