calculateRelevantSNPs {MEAL}R Documentation

Calculate the SNPs correlated to cpgs

Description

This function estimates the correlation between the snps and the cpgs. For each pair cpg-SNP the p-value is returned.

Usage

calculateRelevantSNPs(set, snps, num_cores = 1)

Arguments

set

MethylationSet

snps

SnpSet

num_cores

Numeric with the number of cores to be used.

Value

Data.frame with the pvalues for pairs SNPs-cpgs. SNPs are in the rows and cpgs in the columns.

Examples

## Not run: 
## betamatrix: matrix of beta values
## phenodf: data.frame with the phenotypes
## snpsobject: SnpSet
set <- prepareMethylationSet(matrix = betamatrix, phenotypes = phenodf)
relevantSNPs <- calculateRelevantSNPs(set, snpsobject)

## End(Not run)

[Package MEAL version 1.10.1 Index]