processData: Process data into a dataframe for connections

Description Usage Arguments Value Examples

View source: R/processingDistances.R

Description

Process data into a dataframe for connections

Usage

1
2
3
4
5
6
7
8
processData(
  data,
  positions = 0,
  studies = 0,
  studByTraits = 0,
  maxPositions = FALSE,
  minSampleSize = 100
)

Arguments

data

A dataframe of general data

positions

An array of cg positions in the new study that wants to be checked, 0 by default - all positions included

studies

An array of study names that wants to be checked, 0 by default - all study names included

studByTraits

A list of trait names to be filtered by. 0 by default

maxPositions

Set to FALSE by Default. If set to TRUE, 900k positions will be used in general

minSampleSize

Minimal sample size to be used. Set to 100 by default

Value

A matrix of positions x studies with TRUE/FALSE values. If a cg position is found in specific study - valuse set to TRUE

Examples

1
2
3
data1 <- processData(data, col)
data1 <- processData(data, col, positions, studies)
data1 <- processData(data, col, positions, minSampleSize = 500)

askv4694/ewasvisual documentation built on Dec. 19, 2021, 5:36 a.m.