getGenesByDist {FunctSNP} | R Documentation |
Extract gene ID for genes that are within a specified distance from each SNP ID entered.
getGenesByDist(ids, speciesCode, dist = 0)
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] |
A dataframe with the following component:
Gene_ID |
NCBI gene ID |
S. J. Goodswen <Stephen.Goodswen@csiro.au>
setSpecies
getGeneID
getGenes
getNearGenes
## 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)