compareData: Compare data from the same source but different scale

View source: R/base_compareData.R

compareDataR Documentation

Compare data from the same source but different scale

Description

Compare data from the same source but different scale

Usage

compareData(
  X1,
  X2,
  names = c("X1", "X2"),
  width = 10,
  height = 10,
  savePath = "."
)

Arguments

X1

Matrix with sample col and gene row

X2

Matrix with sample col and gene row

names

Label of X1 and X2

width, height

Plot parameters

savePath

Plot saved path

Author(s)

Weibin Huang<654751191@qq.com>

Examples

## PAD genes
PAD <- readRDS(system.file("extdata", 'PAD.rds', package = "GSClassifier"))
tgene <- as.character(unlist(PAD$geneSet))
X1 <- stad_fpkm[tgene,]
X2 <- stad_tpm[tgene,]

## Compare FPKM with TPM matrix
res <- compareData(X1,X2,
                   names=c('FPKM','TPM'),
                   width = 10,
                   height = 10,
                   savePath = '.')
res2 <- compareData(log2(X1+1),log2(X2+1),
                    names=c('log2FPKM','log2TPM'),
                    width = 10,
                    height = 10,
                    savePath = '.')

huangwb8/GSClassifier documentation built on July 12, 2024, 5:10 p.m.