sampleClusterdData {clippda} | R Documentation

## A function to arrange the data in sample-wise pairs

### Description

This function arranges the duplicate data, grouped by samples, in a form which can be averaged using the `limma` function `avedups`.

### Usage

    sampleClusteredData(Data, no.peaks)

### Arguments

`Data` | A data frame of duplicate data from the biomarker wizard.
`no.peaks` | The number of peaks detected by the biomarker wizard.

### Details

The output is a dataframe of repeated sample expression values, clustered by samples. This data is used as an input to the `betweensampleVariance` function, and is then averaged and used to compute the biological variance as well as the mean difference in the expression values between cancer and noncancer controls.

### Value

The output is a dataframe of repeated sample expression values, clustered by samples.

### Author(s)

Stephen Nyangoma

### Examples

    # arrange the data in a form which can be averaged by the limma function dupcor
    # use the function called limmaData

    data(liverdata)

    no.peaks <- 53

    Data <- liverdata

    JUNK_DATA <- sampleClusteredData(Data,no.peaks)

[Package clippda version 1.44.0 Index]