methyl_MDS_plot: Multidimensional scaling plot of distances between...

Description Usage Arguments Value Examples

View source: R/methyl_MDS_plot.R

Description

Same as plotMDS, except for an arc-sine transformation of the methylation proportions.

Usage

1
methyl_MDS_plot(x, group, top = 1000, coverage = 5, adj = 0.02, pointSize = 4)

Arguments

x

RangedSummarizedExperiment, output from calc_derivedasm or calc_asm.

group

Vector of group or any other labels, same length as number of samples.

top

Number of top CpG sites used to calculate pairwise distances.

coverage

Minimum number of reads covering a CpG site on each allele. Default = 5.

adj

Text adjustment in y-axis. Default = 0.2.

pointSize

Default = 4.

Value

Two-dimensional MDS plot.

Examples

1
2
3
4
data(readtuples_output)
ASM <- calc_asm(readtuples_output)
grp <- factor(c(rep('CRC',3),rep('NORM',2)), levels = c('NORM', 'CRC'))
methyl_MDS_plot(ASM, grp)

DAMEfinder documentation built on Nov. 8, 2020, 11:10 p.m.