match_exp_cl: match_exp_cl

View source: R/8_tcga_group_trans_exp.R

match_exp_clR Documentation

match_exp_cl

Description

match exp and clinical data from TCGA

Usage

match_exp_cl(exp, cl, id_column = "id", sample_centric = TRUE)

Arguments

exp

TCGA expression set

cl

TCGA clinical data.frame

id_column

which column contains patient ids, column number or colnmn name.

sample_centric

logical,deault T,keep all samples from the same patients.if FALSE,keep only one tumor sample for one patient.

Value

a transformed clinical data.frame with sample ids.

Author(s)

Xiaojie Sun

See Also

make_tcga_group;sam_filter

Examples

a = match_exp_cl(exp_hub1,meta1[,2:4],"X_PATIENT")
exp_matched = a[[1]]
cl_matched = a[[2]]
b = match_exp_cl(exp_hub1,meta1[,2:4],"X_PATIENT",sample_centric = FALSE)
exp_matched = b[[1]]
cl_matched = b[[2]]

tinyarray documentation built on Aug. 18, 2023, 9:07 a.m.