Description Usage Arguments Value Author(s) See Also Examples
getZScores
calculates the z-score for each fragment within a
distance from the viewpoint defined by distAroundVP
. For the
calculation the count data is first transformed with a variance stabilizing
transformation from the DESeq2
package. The decay trend of this transformed
data with distance from the viewpoint is fitted either with local regression
model using locfit
or a monotone decay fit using the fda
package.
z-scores are finally calculated from the residuals of the fit values.
1 2 3 4 5 6 7 8 9 | getZScores(
object,
removeZeros = TRUE,
minCount = 40,
minDist = NULL,
fitFun = "distFitMonotoneSymmetric",
sdFun = mad,
...
)
|
object |
A |
removeZeros |
Parameter to define if fragments with zero counts across
all replicates and conditions should be removed from the calculation.
Default is |
minCount |
The minimum median count value across replicates, a fragment
has to have to be used for the calculation of z-scores. Default is |
minDist |
Define a minimum distance to both sides of the viewpoint that is
discarded for analysis. If undefined ( |
fitFun |
Fit function to be used. Either |
sdFun |
Function to calculate the variation of the data. Default is |
... |
Additional Parameters passed to the distance fit function specified in
fitFun (e.g. |
Returns a FourC
object for the selected viewpoint
with z-score values for all fragments on the viewpoint chromosome that
passed the minCount
threshold and that were not too close to the
viewpoint. All additional required data is saved in the object. Especially
the following information is added to the FourC
object:
metadata: parameters passed to the getZScore function.
colData: sdFun values calculated from the fit residuals
rowRanges: the distance information to the viewpoint and information calculated for the variance stabilizing data are added.
assays: variance stabilized count values (trafo), fit values (fit), z-score values (zScore), associated p-values (pValue) and adjusted p-values (pAdjusted)
Felix A. Klein, felix.klein@embl.de
FourC
, countFragmentOverlaps
,
distFitMonotone
, distFitMonotoneSymmetric
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.