Learn R Programming

MEAL (version 1.2.3)

calculateRelevantSNPs: 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

Run this code
## 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)

Run the code above in your browser using DataLab