readA: read A

Description Usage Arguments Details Value Author(s)

View source: R/functions.R

Description

readA

Usage

1
  readA(Afile, datfile, dat, annot = TRUE)

Arguments

Afile

The file which contains the matrix of sample contributions. It must be a txt file where the separator is white space, that is one or more spaces, tabs, newlines or carriage returns

datfile

The file which contains the matrix (of dimension features x samples) based on which the matrix A was calculated

dat

The data based on which the matrix A was calculated (features x samples)

annot

TRUE (default) if the Afile contains rownames of matrix A, FALSE if the rownames has to be extracted from dat

Details

This function reads and annotates matrix A.

The matrix dat must be the one on which the matrix A was calculated. It is assumed that the number of components is lower than the number of samples, the matrix will be transposed to have dimension 'samples x components' according to this assumption. If annot is FALSE, colnames of dat are used to annotate rownames of A.

Value

This function returns a matrix of dimension samples x components with rownames filled with sample IDs.

Author(s)

Anne Biton


Bioconductor-mirror/MineICA documentation built on May 29, 2017, 8:30 a.m.