snplist (version 0.18.1)

setGeneTable: setGeneTable

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

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

Run this code
# NOT RUN {
    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))
# }

Run the code above in your browser using DataCamp Workspace