OMICSBind: Merge Data of Two Types of Molecular Profiles.

Description Usage Arguments Details Value Examples

View source: R/TCGA2STAT.R

Description

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

Usage

1
OMICSBind(dat1, dat2)

Arguments

dat1

data matrix in gene x sample format.

dat2

data matrix in gene x sample format.

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.

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

Examples

1
2
3
4
5
6
7
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)

TCGA2STAT documentation built on May 29, 2017, 8:30 p.m.