Learn R Programming

PAGWAS (version 2.0)

create.pathway.df: Creates a pathway data frame

Description

Returns a data frame with L rows and M columns. L is the number of SNPs in the genotypes data frame and M is the number of tested pathways.

Usage

create.pathway.df(genotypes,snps.paths)

Arguments

genotypes
Genotype matrix, with L SNPs (columns) and N individuals (rows)
snps.paths
A list with entries the SNP members of each pathway. The size of the list is M

Value

A data frame with columns equal to the number of pathways in the pathway.snps list and rows equal to the number of tested SNPs

See Also

SNPs, genes, snps.to.pathways snps.to.genes

Examples

Run this code
data(SNPs)
data(genes)
data(pathways)
data(genotypes)
snps.genes <- snps.to.genes(snp.info=SNPs,gene.info=genes, distance=0)
pathway.snps <- snps.to.pathways(pathways,snps.genes)
P <- create.pathway.df(genotypes=genotypes,snps.paths=pathway.snps)

Run the code above in your browser using DataLab