setSNPTable {snplist}R Documentation

setSNPTable

Description

Takes a file or data.frame object with columns 'chr','pos', and 'rsid', and creates an SQLite table of the information. Returns a count of the number of SNPs in the table.

Usage

    setSNPTable(snpInfo,table='allchrpos',db='snplistdb')

Arguments

snpInfo

A data.frame object of SNP location info with columns 'chr','pos', and 'rsid', or a tab-delimited file with those columns and one record per row.

table

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

db

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

Value

Count of genes included in table.

Examples

    snpInfo <- cbind(c(17,17,13,13),
		     c(41211653, 41213996, 32890026,32890572),
		     c("rs8176273","rs8176265","rs9562605","rs1799943") )
    colnames(snpInfo) <- c('chr','pos','rsid')
    ## Not run: 
    setSNPTable(as.data.frame(snpInfo))
    
## End(Not run)

[Package snplist version 0.18.2 Index]