Skip to the content.

sEst

An R-package for estimating the sex from DNA methylation microarray data

Installation

1) Click on the package source file (‘sest.tar’).

2) Click on the ‘Download’ button.

3) Install the package from source:

a) In command line:

R CMD INSTALL '/path/to/package source'

b) Or, in R environment:

install.packages(pkgs="/path/to/package source", repos=NULL, type="source")

Alternatively:

install.packages(pkgs="https://github.com/jungch/sest/raw/master/sest.tar", repos=NULL, type="source")

Example codes

Here is an example scenario of estimating the sex of HM450k data samples. This example uses a publicly available dataset from GEO (GSE51032).

Functions:

‘estimateSex’

usage:
estimateSex(beta.value = NULL, detecP = NULL,
  beta.intervals.X = seq(0, 1, 0.1),
  beta.intervals.Y = seq(0, 1, 0.1),
  p.intervals.X = c(-18, -5, -2, 0),
  p.intervals.Y = c(-18, -5, -2, 0),
  return_with_reference = FALSE)
Arguments:

name | description

‘plotSexEstimation’

Description:

This function generates a scatter plot using ‘ggplot’ showing the first principal component of two principal component analysis results (pincipal component analysis using the data from X chromosome and the data from Y chromosome)

Usage:
plotSexEstimation(sex_estimation = NULL, samples = NULL,
  main = "", filename = NULL,
  include_reference = FALSE)
Arguments:

name | Description

Examples:
plotSexEstimation(sex_estimation = sexEst)

‘plotSexDistribution’

Description:

This function generates a line chart using ‘ggplot’ showing the distribution of beta-values of chrX and chrY and detection p-values of chrY.

Usage:
plotSexDistribution(beta.value = NULL, detecP = NULL,
  beta.intervals.X = seq(0, 1, 0.1),
  beta.intervals.Y = seq(0, 1, 0.1),
  p.intervals.X = c(-18, -5, -2, 0),
  p.intervals.Y = c(-18, -5, -2, 0),
  samples = NULL, filename = NULL,
  include_reference = TRUE,
  color = NULL)
Arguments:

name | description

Examples:
plotSexDistribution(beta.value=beta, detecP=pval)

‘get.proportion_table’

Description:

This function returns the beta-value and detection p-value proportion table within each intervals specified by parameters.

Usage:
get.proportion_table(beta.value = NULL, detecP = NULL,
   beta.intervals.X = seq(0, 1, 0.1),
   beta.intervals.Y = seq(0, 1, 0.1),
   p.intervals.X = c(-18, -5, -2, 0),
   p.intervals.Y = c(-18, -5, -2, 0),
   samples = NULL)
Arguments:

name | description

Examples:
proportion_table <- get.proportion_table(beta.value=beta,
  detecP=detecP)