All Projects → ropensci → rsnps

ropensci / rsnps

Licence: other
Wrapper to a number of SNP web APIs

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to rsnps

Getlandsat
get landsat 8 images and metadata
Stars: ✭ 47 (+6.82%)
Mutual labels:  data, rstats, r-package
Rplos
R client for the PLoS Journals API
Stars: ✭ 289 (+556.82%)
Mutual labels:  web-api, rstats, r-package
Charlatan
Create fake data in R
Stars: ✭ 209 (+375%)
Mutual labels:  data, rstats, r-package
kaggler
🏁 API client for Kaggle
Stars: ✭ 50 (+13.64%)
Mutual labels:  data, rstats, r-package
Rgbif
Interface to the Global Biodiversity Information Facility API
Stars: ✭ 113 (+156.82%)
Mutual labels:  data, rstats, r-package
Dataspice
🌶 Create lightweight schema.org descriptions of your datasets
Stars: ✭ 137 (+211.36%)
Mutual labels:  data, rstats, r-package
Taxize
A taxonomic toolbelt for R
Stars: ✭ 209 (+375%)
Mutual labels:  data, rstats, r-package
tiler
Generate geographic and non-geographic map tiles from R
Stars: ✭ 56 (+27.27%)
Mutual labels:  rstats, r-package
antiword
R wrapper for antiword utility
Stars: ✭ 47 (+6.82%)
Mutual labels:  rstats, r-package
schtools
Schloss Lab Tools for Reproducible Microbiome Research 💩
Stars: ✭ 22 (-50%)
Mutual labels:  rstats, r-package
rinat
A programmatic interface to iNaturalist
Stars: ✭ 36 (-18.18%)
Mutual labels:  rstats, r-package
riem
✈️ ☀️ R package for accessing ASOS data via the Iowa Environment Mesonet ☁️ ✈️
Stars: ✭ 38 (-13.64%)
Mutual labels:  rstats, r-package
individual
R Package for individual based epidemiological models
Stars: ✭ 20 (-54.55%)
Mutual labels:  rstats, r-package
cyphr
Humane encryption
Stars: ✭ 91 (+106.82%)
Mutual labels:  rstats, r-package
pkgreviewr
R package to facilitate rOpenSci package reviews.
Stars: ✭ 35 (-20.45%)
Mutual labels:  rstats, r-package
rfishbase
R interface to the fishbase.org database
Stars: ✭ 79 (+79.55%)
Mutual labels:  rstats, r-package
styles
Custom themes for base plots
Stars: ✭ 32 (-27.27%)
Mutual labels:  rstats, r-package
pbapply
Adding progress bar to '*apply' functions in R
Stars: ✭ 115 (+161.36%)
Mutual labels:  rstats, r-package
checkers
⛔ ARCHIVED ⛔ Automated checking of best practices for research compendia ✔️
Stars: ✭ 53 (+20.45%)
Mutual labels:  rstats, r-package
NLMR
📦 R package to simulate neutral landscape models 🏔
Stars: ✭ 57 (+29.55%)
Mutual labels:  rstats, r-package

rsnps

cran checks R build status Build status codecov.io cran version rstudio mirror downloads

This package gives you access to data from OpenSNP and NCBI’s dbSNP SNP database.

NOTE

rsnps used to be ropensnp

Data sources

This set of functions/package accesses data from:

Install

Install from CRAN

install.packages("rsnps")

Or dev version

install.packages("remotes")
remotes::install_github("ropensci/rsnps")
library("rsnps")

Usage

NCBI dbSNP data

snps <- c("rs332", "rs420358", "rs1837253", "rs1209415715", "rs111068718")
ncbi_snp_query(snps)
#> # A tibble: 4 × 16
#>   query        chromosome        bp class rsid   gene   alleles ancestral_allele
#>   <chr>        <chr>          <dbl> <chr> <chr>  <chr>  <chr>   <chr>           
#> 1 rs332        7          117559593 del   rs121… "CFTR… TTT, d… TTT             
#> 2 rs420358     1           40341239 snv   rs420… ""     A,C,G,T A               
#> 3 rs1837253    5          111066174 snv   rs183… ""     T,C     T               
#> 4 rs1209415715 9           41782316 snv   rs120… ""     T,A,C   T               
#> # … with 8 more variables: variation_allele <chr>, seqname <chr>, hgvs <chr>,
#> #   assembly <chr>, ref_seq <chr>, minor <chr>, maf <dbl>,
#> #   maf_population <list>

openSNP data

genotypes() function

genotypes('rs9939609', userid='1,6,8', df=TRUE)
#>    snp_name snp_chromosome snp_position                 user_name user_id
#> 1 rs9939609             16     53786615 Bastian Greshake Tzovaras       1
#> 2 rs9939609             16     53786615              Nash Parovoz       6
#> 3 rs9939609             16     53786615         Samantha B. Clark       8
#>   genotype_id genotype
#> 1           9       AT
#> 2           5       AT
#> 3           2       TT

phenotypes() function

out <- phenotypes(userid=1)
out$phenotypes$`Hair Type`
#> $phenotype_id
#> [1] 16
#> 
#> $variation
#> [1] "straight"

For more detail, see the vignette: rsnps tutorial.

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for rsnsps in R doing citation(package = 'rsnps')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

ropensci_footer

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].