int_mat: Format transformation of spectral counts

Description Usage Arguments Details Value Author(s) Examples

Description

Transformation of a count matrix into an interaction table (format required for SAINT) and vice versa.

Usage

1
2
3
int2mat(IntSaint)

mat2int(mat, baittab)

Arguments

IntSaint

a data.frame. The interaction table as required for SAINT (including zero counts).

mat

matrix of spectral counts, proteins in rows and samples in columns.

baittab

a data.frame. The baittable as required for SAINT, classifying control and bait samples.

Details

The interaction table consists of four columns: IP name, bait or control name, protein name, spectral count (note: a protein which was not detected in one of the samples receives a zero count).
int2mat transfers the interaction table into a matrix form. mat2int transfers a matrix of spectral counts into the interaction table format defined by SAINT.

Value

Either a matrix of spectral counts or a data.frame representing the interaction table is returned.

Author(s)

Martina Fischer

Examples

1
2
3
4
5
intfile <- system.file("extdata", "inttable.txt", package="apmsWAPP")
interactiontable <- read.table(intfile)
count.mat <- int2mat(interactiontable)
class(count.mat)
dim(count.mat)

apmsWAPP documentation built on May 2, 2019, 3:23 a.m.