getter_setter_functions: Getter/Setter functions

Description Usage Arguments Value Functions Examples

Description

This is a collection of small accessor/setter functions for easy access to the values within the FRASER model.

Usage

 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
featureExclusionMask(fds, type = currentType(fds))

featureExclusionMask(fds, type = currentType(fds)) <- value

rho(fds, type = currentType(fds))

zScores(fds, type = currentType(fds), byGroup = FALSE, ...)

pVals(fds, type = currentType(fds), level = "site", dist = "BetaBinomial", ...)

padjVals(fds, type = currentType(fds), dist = c("BetaBinomial"), ...)

predictedMeans(fds, type = currentType(fds))

deltaPsiValue(fds, type = currentType(fds))

currentType(fds)

currentType(fds) <- value

pseudocount(value = NULL)

hyperParams(fds, type = currentType(fds), all = FALSE)

bestQ(fds, type = currentType(fds))

dontWriteHDF5(fds)

dontWriteHDF5(fds) <- value

verbose(fds)

verbose(fds) <- value

Arguments

fds

An FraserDataSet object.

type

The type of psi (psi5, psi3 or theta)

value

The new value to be assigned.

byGroup

If TRUE, aggregation by donor/acceptor site will be done.

...

Internally used parameteres.

level

Indicates if the retrieved p values should be adjusted on the donor/acceptor site-level (default) or if unadjusted junction-level p values should be returned.

dist

Distribution for which the p-values should be extracted.

all

Logical value indicating whether hyperParams(fds) should return the results of all evaluated parameter combinations or only for the optimal parameter combination.

Value

A (delayed) matrix or vector dependent on the type of data retrieved.

Functions

Examples

 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
fds <- createTestFraserDataSet()

# should assays be saved as hdf5? 
dontWriteHDF5(fds)
dontWriteHDF5 <- TRUE

# get/set the splice metric for which results should be retrieved 
currentType(fds) <- "psi5"
currentType(fds)

# get fitted parameters
bestQ(fds)
predictedMeans(fds)
rho(fds)

# get statistics
pVals(fds)
padjVals(fds)
zScores(fds)

# set and get pseudocount
pseudocount(4L)
pseudocount()

# retrieve or set a mask to exclude certain junctions in the fitting step
featureExclusionMask(fds, type="theta") <- sample(
        c(FALSE, TRUE), nrow(mcols(fds, type="theta")), replace=TRUE)
featureExclusionMask(fds, type="theta")

# controlling the verbosity level of the output of some algorithms
verbose(fds) <- 2
verbose(fds)

FRASER documentation built on Feb. 3, 2021, 2:01 a.m.