getGenesByDist {FunctSNP}R Documentation

Extract gene ID within a specified distance from a SNP

Description

Extract gene ID for genes that are within a specified distance from each SNP ID entered.

Usage

getGenesByDist(ids, speciesCode, dist = 0)

Arguments

ids A vector containing SNP IDs (Mandatory)
speciesCode A 3 letter species code [Default = the species code set by setSpecies ()]
dist A search distance up and down stream (in base pairs) [Default=0]

Value

A dataframe with the following component:

Gene_ID NCBI gene ID

Author(s)

S. J. Goodswen <Stephen.Goodswen@csiro.au>

See Also

setSpecies getGeneID getGenes getNearGenes

Examples

## Not run: 
snp_ids <- c(43702346,29017382)

# Returns gene IDs for genes found 250,000 bp up or down stream from the SNP IDs entered - uses species set by setSpecies()
gene_ids <- getGenesByDist (snp_ids,dist=250000)

# Returns gene IDs for genes found 100 bp up or down stream from the SNP IDs entered (Bos taurus species)
gene_ids <- getGenesByDist (snp_ids,"bta",dist=100)
## End(Not run)

[Package FunctSNP version 1.0-1 Index]