getGeneSetComposition: getGeneSetComposition

Description Usage Arguments Value Author(s) See Also Examples

Description

This function retrieves the size of each gene in the gene set and returns a table specifying the number of genes of each size.

Usage

1
getGeneSetComposition(geneSnpCounts, geneSet)

Arguments

geneSnpCounts

A list of gene sizes (number of SNPs), as created with the function getGeneSizes.

geneSet

A vector of gene IDs.

Value

Returns a table specifying the number of genes of each size.

Author(s)

Michael Mooney <mooneymi@ohsu.edu>

See Also

getGeneSizes

Examples

1
2
3
4
5
6
7
data(sampleGSA)

# Get gene sizes, and bin genes by size
snpCounts = getGeneSizes(snpMap)
  
# Get the composition of the target pathway (gene set)
gsComp = getGeneSetComposition(snpCounts, pathways[[1]])

mooneymi/gsaPermute documentation built on May 23, 2019, 6:11 a.m.