setGeneTable: setGeneTable

Description Usage Arguments Value Examples

View source: R/setGeneTable.R

Description

Takes a data.frame object with columns 'gene','chr','start', and 'end', and creates an SQLite table of the information. Returns a count of the number of genes in the table.

Usage

1
    setGeneTable(geneInfo,table='gene',db='snplistdb') 

Arguments

geneInfo

A data.frame object of gene location info with columns 'gene','chr','start', and 'end'.

table

Name of the SQLite table to be created. Default is 'gene'.

db

Name of the SQLite database in which to create table. Default is 'snplistdb'.

Value

Count of genes included in table.

Examples

1
2
3
    geneInfo <- cbind(c('BRCA1','BRCA2'),c(17,13),c(41196312,32889611),c(41277500,32973805))
    colnames(geneInfo) <- c('gene','chr','start','end')
    setGeneTable(as.data.frame(geneInfo))

snplist documentation built on Dec. 12, 2017, 1:05 a.m.