Learn R Programming

snplist (version 0.18.3)

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')

Value

Count of genes included in table.

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'.

Examples

Run this code
    geneInfo <- cbind(c('BRCA1','BRCA2'),c(17,13),c(41196312,32889611),c(41277500,32973805))
    colnames(geneInfo) <- c('gene','chr','start','end')
    if (FALSE) {
    setGeneTable(as.data.frame(geneInfo))
    }

Run the code above in your browser using DataLab