qualStudy: Quality of a study

Description Usage Arguments Details See Also Examples

View source: R/SNAGEE.R

Description

Calculate the quality of a study.

Usage

1
qualStudy(d,mode="complete",cc=NULL,disattenuate=TRUE)

Arguments

d

The study data. If an Eset, toSnageeFormat is called on it. Otherwise, must be a list with fields 'genes' containing the vector of gene IDs (from NCBI's Gene DB) and 'data' containing the actual data.

mode

Which gene-gene correlation matrix should be used. Can be 'complete' (using all platforms) or 'woAffy' (without the Affy platforms).

cc

Can be used if wishing to use a custom gene-gene correlation matrix. Must be a list with fields 'g' containing the gene IDs and 'cc' containing the (upper triangular part of the) correlations.

disattenuate

Should the qualities be disattenuated?

Details

The function calculates the quality of a study. The numerical values of the study (the 'data' field) should be in log-scale, and normalized. It is recommended to used medpolish on the data.

Each gene should only appear once in the gene list. Duplicated genes must be merged before using the function.

The mode 'woAffy' may be useful to compare Affymetrix to not Affymetrix studies. As the median gene correlation matrix was calculated with a majority of Affymetrix platforms, those platforms tend to be given higher quality than the others with the 'complete' mode, which may be misleading.

See Also

SNAGEE, qualSample, linktoSnageeFormat

Examples

1
2
3
4
5
6
# Get the list of genes
geneList = getCC()$g;
# Create a random data set
d=list(genes=geneList, data=matrix(rnorm(length(geneList)*50),ncol=50));
# And calculate its quality (it's going to be close to 0)
qualStudy(d, disattenuate=FALSE);

SNAGEE documentation built on Nov. 8, 2020, 8:02 p.m.