preprocessing: Preprocessing data

Description Usage Arguments Value Examples

View source: R/preprocessing.R

Description

Preprocessing data for methylation by selecting data from two given samples if methylation probe exists in both samples on the same chromosome and position.

Usage

1
preprocessing(sample.1, sample.2)

Arguments

sample.1

a data frame with methylation data

sample.2

a data frame with methylation data

Value

data.frame with methylation values on common positions and chromosomes from sample.1 and sample.2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
# data from package
data('schizophrenia')
control <- schizophrenia %>% filter(category == 'control') %>%
dplyr::select(-category)

disease <- schizophrenia %>% filter(category == 'disease') %>%
 dplyr::select(-category)

data <- preprocessing(control, disease)
head(data)

geneticsMiNIng/metR documentation built on May 28, 2019, 8:41 p.m.