Learn R Programming

TCGA2STAT (version 1.2)

OMICSBind: Merge Data of Two Types of Molecular Profiles.

Description

Combine the data matrix of two types of molecular profiles for the same tumor samples.

Usage

OMICSBind(dat1, dat2)

Arguments

dat1
data matrix in gene x sample format.
dat2
data matrix in gene x sample format.

Value

A list of three elements:
merged.data
a matrix in sample x gene format
X
a matrix in sample x "gene from dat1" format with samples in the same order as Y
Y
a matrix of size sample x "gene from dat2" format with samples in the same order as X

Details

This function combines data matrices of two types of molecular profiles for the same set of tumor samples in the correct patient order. The number of genes returned is the sum of genes from two input matrices; the number of samples returned will be the tumor samples common to both input matrices. Gene names in the returned data will be suffixed by "d1" or "d2" to indicate if the gene is from the first or the second input matrix.

Examples

Run this code

library(TCGA2STAT)

seq <- getTCGA(disease="OV", data.type="RNASeq2")
mut <- getTCGA(disease="OV", data.type="Mutation", type="all")

seq.mut <- OMICSBind(dat1 = seq$dat, dat2 = mut$dat)
str(seq.mut)

Run the code above in your browser using DataLab