{"id":32175138,"url":"https://github.com/ropensci/rsnps","last_synced_at":"2026-02-22T19:03:29.572Z","repository":{"id":2258316,"uuid":"3213870","full_name":"ropensci/rsnps","owner":"ropensci","description":"Wrapper to a number of SNP web APIs","archived":false,"fork":false,"pushed_at":"2023-11-24T05:28:39.000Z","size":3769,"stargazers_count":55,"open_issues_count":15,"forks_count":22,"subscribers_count":6,"default_branch":"master","last_synced_at":"2026-01-28T05:19:27.656Z","etag":null,"topics":["data","r","r-package","rstats","snps","web-api"],"latest_commit_sha":null,"homepage":"https://docs.ropensci.org/rsnps","language":"R","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ropensci.png","metadata":{"files":{"readme":"README.Rmd","changelog":"NEWS.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":"codemeta.json","zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-01-19T00:19:21.000Z","updated_at":"2025-08-19T09:51:11.000Z","dependencies_parsed_at":"2023-07-05T18:31:11.171Z","dependency_job_id":"915184d5-6fd5-4d7e-8af4-a9c8ac2a8b56","html_url":"https://github.com/ropensci/rsnps","commit_stats":{"total_commits":373,"total_committers":11,"mean_commits":33.90909090909091,"dds":0.5603217158176943,"last_synced_commit":"1a604aef7815f4c9d9b2dd35fc77c8926ca3377a"},"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/ropensci/rsnps","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frsnps","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frsnps/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frsnps/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frsnps/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ropensci","download_url":"https://codeload.github.com/ropensci/rsnps/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ropensci%2Frsnps/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29723574,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-22T15:10:41.462Z","status":"ssl_error","status_checked_at":"2026-02-22T15:10:04.636Z","response_time":110,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["data","r","r-package","rstats","snps","web-api"],"created_at":"2025-10-21T19:25:43.038Z","updated_at":"2026-02-22T19:03:29.566Z","avatar_url":"https://github.com/ropensci.png","language":"R","readme":"---\noutput: github_document\n---\n\u003c!-- README.md is generated from README.Rmd. Please edit that file --\u003e\n\nrsnps\n=====\n\n```{r, eval=TRUE, echo=FALSE}\nknitr::opts_chunk$set(\n  warning=FALSE,\n  message=FALSE,\n  comment=\"#\u003e\"\n)\n```\n\n\n[![R build status](https://github.com/ropensci/rsnps/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/rsnps/actions)\n[![Build status](https://ci.appveyor.com/api/projects/status/d2lv98726u6t9ut5/branch/master)](https://ci.appveyor.com/project/sckott/rsnps/branch/master/)\n[![Codecov test coverage](https://codecov.io/gh/ropensci/rsnps/branch/master/graph/badge.svg)](https://app.codecov.io/gh/ropensci/rsnps?branch=master)\n[![cran version](https://www.r-pkg.org/badges/version/rsnps)](https://cran.r-project.org/package=rsnps)\n[![rstudio mirror downloads](https://cranlogs.r-pkg.org/badges/rsnps?color=E664A4)](https://github.com/r-hub/cranlogs.app)\n\n\nThis package gives you access to data from OpenSNP and NCBI's dbSNP SNP database.\n\n## NOTE\n\n`rsnps` used to be `ropensnp`\n\n\n## Data sources\n\nThis set of functions/package accesses data from:\n\n+ openSNP.org\n\t+ \u003chttps://opensnp.org\u003e\n\t+ See documentation on the openSNP API \u003chttps://opensnp.org/faq#api\u003e\n\t+ See blog post about their API \u003chttps://opensnp.wordpress.com/2012/01/18/some-progress-on-the-api-json-endpoints/\u003e\n\t+ Relevant functions:\n\t\t+ `allgensnp()`, `allphenotypes()`, `annotations()`, `download_users()`, \n\t\t`fetch_genotypes()`, `genotypes()`, `phenotypes()`, `phenotypes_byid()`, `users()`\n\n+ NCBI's dbSNP SNP database\n\t+ See \u003chttps://www.ncbi.nlm.nih.gov/snp/\u003e for more details\n\t+ Relevant function:\n\t\t+ `ncbi_snp_query()`\n\n## Install\n\nInstall from CRAN\n\n```{r eval=FALSE}\ninstall.packages(\"rsnps\")\n```\n\nOr dev version\n\n```{r eval=FALSE}\ninstall.packages(\"remotes\")\nremotes::install_github(\"ropensci/rsnps\")\n```\n\n```{r}\nlibrary(\"rsnps\")\n```\n\n## Usage\n\n### NCBI dbSNP data\n\n```{r}\nsnps \u003c- c(\"rs332\", \"rs420358\", \"rs1837253\", \"rs1209415715\", \"rs111068718\")\nncbi_snp_query(snps)\n```\n\nThe `ncbi_snp_query()` function can be used with an NCBI API which gives access \nhigher numbers of API requests per second. More information about setting this \nup can be found in the package help accessed via `?rsnps`. \n\n### openSNP data\n\n`genotypes()` function\n\n```{r}\ngenotypes('rs9939609', userid='1,6,8', df=TRUE)\n```\n\n`phenotypes()` function\n\n```{r}\nout \u003c- phenotypes(userid=1)\nout$phenotypes$`Hair Type`\n```\n\nFor more detail, see the [vignette: rsnps tutorial](https://github.com/ropensci/rsnps/tree/master/vignettes).\n\n## Meta\n\n* Please [report any issues or bugs](https://github.com/ropensci/rsnps/issues/).\n* License: MIT\n* Get citation information for `rsnsps` in R doing `citation(package = 'rsnps')`\n* Please note that this package is released with a [Contributor Code of Conduct](https://ropensci.org/code-of-conduct/). By contributing to this project, you agree to abide by its terms.\n\n[![ropensci_footer](https://ropensci.org/public_images/github_footer.png)](https://ropensci.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Frsnps","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fropensci%2Frsnps","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fropensci%2Frsnps/lists"}