setSNPTable: setSNPTable

Description Usage Arguments Value Examples

View source: R/setSNPTable.R

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

1
    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

1
2
3
4
5
6
7
8
    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)

snplist documentation built on Oct. 9, 2021, 5:06 p.m.