sam_filter function

sam_filter

sam_filter

drop duplicated samples from the same patients

sam_filter(exp)

Arguments

  • exp: TCGA or TCGA_Gtex expression set from gdc or xena

Returns

a transformed expression set without duplicated samples

Examples

cod[1:4,1:4] dim(cod) cod2 = sam_filter(cod) dim(cod2) g = make_tcga_group(cod);table(g) library(stringr) table(!duplicated(str_sub(colnames(cod[,g=="tumor"]),1,12)))

See Also

make_tcga_group;match_exp_cl

Author(s)

Xiaojie Sun

  • Maintainer: Xiaojie Sun
  • License: MIT + file LICENSE
  • Last published: 2025-03-05