estimateSizeFactors: Estimate the size factors for a CountDataSet

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

Description

Estimate the size factors for a CountDataSet

Usage

1
2
## S4 method for signature 'CountDataSet'
estimateSizeFactors( object, locfunc=median, ... )

Arguments

object

a CountDataSet

locfunc

a function to compute a location for a sample. By default, the median is used. However, especially for low counts, the shorth may give better results.

...

extra arguments are ignored

Details

You need to call this function right after newCountDataSet unless you have manually specified size factors.

Typically, the function is called with the idiom

cds <- estimateSizeFactors( cds )

This estimates the size factors and stores the information in the object.

Internally, the function calls estimateSizeFactorsForMatrix. See there for more details on the calculation.

Value

The CountDataSet passed as parameters, with the size factors filled in.

Author(s)

Simon Anders, sanders@fs.tum.de

See Also

estimateSizeFactorsForMatrix

Examples

1
2
3

Example output

Loading required package: BiocGenerics
Loading required package: parallel

Attaching package: 'BiocGenerics'

The following objects are masked from 'package:parallel':

    clusterApply, clusterApplyLB, clusterCall, clusterEvalQ,
    clusterExport, clusterMap, parApply, parCapply, parLapply,
    parLapplyLB, parRapply, parSapply, parSapplyLB

The following objects are masked from 'package:stats':

    IQR, mad, sd, var, xtabs

The following objects are masked from 'package:base':

    Filter, Find, Map, Position, Reduce, anyDuplicated, append,
    as.data.frame, basename, cbind, colMeans, colSums, colnames,
    dirname, do.call, duplicated, eval, evalq, get, grep, grepl,
    intersect, is.unsorted, lapply, lengths, mapply, match, mget,
    order, paste, pmax, pmax.int, pmin, pmin.int, rank, rbind,
    rowMeans, rowSums, rownames, sapply, setdiff, sort, table, tapply,
    union, unique, unsplit, which, which.max, which.min

Loading required package: Biobase
Welcome to Bioconductor

    Vignettes contain introductory material; view with
    'browseVignettes()'. To cite Bioconductor, see
    'citation("Biobase")', and for packages 'citation("pkgname")'.

Loading required package: locfit
locfit 1.5-9.1 	 2013-03-22
Loading required package: lattice
    Welcome to 'DESeq'. For improved performance, usability and
    functionality, please consider migrating to 'DESeq2'.
       A1        A2        B1        B2        B3 
0.9773959 1.2658956 0.6735682 0.8705506 1.5389932 

DESeq documentation built on April 28, 2020, 6:37 p.m.