estimateScalingFactors: Compute scaling factors to perform spike-in normalization

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

Description

Compute scaling factors for endogenous and exogenous experiment from 'Experiment', 'ExperimentLoaded', 'ChIPSeqSpikeDataset', 'ChIPSeqSpikeDatasetBoost', 'ChIPSeqSpikeDatasetList', and 'ChIPSeqSpikeDatasetListBoost'

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
estimateScalingFactors(theObject, paired = FALSE, verbose = TRUE)

## S4 method for signature 'Experiment'
estimateScalingFactors(theObject, paired = FALSE, 
verbose = TRUE)

## S4 method for signature 'ExperimentLoaded'
estimateScalingFactors(theObject, paired = FALSE, 
verbose = TRUE)

## S4 method for signature 'ChIPSeqSpikeDataset'
estimateScalingFactors(theObject, 
paired = FALSE, verbose = TRUE)

## S4 method for signature 'ChIPSeqSpikeDatasetBoost'
estimateScalingFactors(theObject, 
paired = FALSE, verbose = TRUE)

## S4 method for signature 'ChIPSeqSpikeDatasetList'
estimateScalingFactors(theObject, 
paired = FALSE, verbose = TRUE)

## S4 method for signature 'ChIPSeqSpikeDatasetListBoost'
estimateScalingFactors(theObject, 
paired = FALSE, verbose = TRUE)

Arguments

theObject

ChIPSeqSpike dataset (see ?spikeDataset)

paired

Indicate if sequences are single- or paired-ended. Default is FALSE

verbose

If False, do not output processing messages. Default is TRUE

Details

Estimating scaling factors is the first step to perform on a dataset. A scaling factor is defined as:

bam_count being the number of reads aligned to the genome. The count is determined for the endogenous and exogenous experiments.

Scaling factors will the be applied to the bigwig files in the following steps of the procedure. After estimating scaling factors, RPM normalization should be performed.

Value

Return an object of the same class of the input object containing computed scaling factors.

Methods (by class)

Author(s)

Nicolas Descostes

See Also

spikeSummary scaling spikePipe

Examples

1
2
3
4
5
6
7
8
9
## Mock example on a restricted number of reads
info_file_csv <- system.file("extdata/info.csv", package="ChIPSeqSpike")
bam_path <- system.file(c("extdata/bam_files"), package="ChIPSeqSpike")
bigwig_path <- system.file(c("extdata/bigwig_files"), package="ChIPSeqSpike")

csds <- spikeDataset(infoFile = info_file_csv, bamPath = bam_path, 
                     bigWigPath = bigwig_path)

csds <- estimateScalingFactors(csds)

ChIPSeqSpike documentation built on Nov. 8, 2020, 5:29 p.m.