---
id: "dbsnp_id"
kind: "datatype"
status: "draft"
is_pii: false
categories: ["science", "medical"]
langs: ["common"]
quality: 100
url: "http://registry.apicrafter.io/datatype/dbsnp_id"
---

# dbSNP Reference SNP number (rsID) (`dbsnp_id`)

> **Draft.** Draft records have not been reviewed yet and may be incomplete or wrong; do not treat them as authoritative for legal or compliance decisions.

Identifier of a reference SNP record (RefSNP) in dbSNP, the database of short genetic variations kept by the US National Center for Biotechnology Information (NCBI). It is the letters rs followed by a number. A RefSNP groups the submitted reports of a variant at the same location of the reference genome, so genome-wide association studies, genotyping files and variant annotations use the rsID to name a variant.

- Personal data (PII): no
- Categories: Scientific (science), Medical/pharma identifiers (medical)
- Countries: global
- Languages: Common to most languages (common)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
^rs[1-9]\d*$
```

## Examples

- `rs334` — Variant of the HBB gene behind sickle cell disease
- `rs113488022` — Example of Wikidata property P6861
- `rs121913355` — Example of Wikidata property P6861
- `ss334` (invalid example) — Submitted SNP (ss) number, not a RefSNP

## Mappings

- autotype: `SNPID_correct`
- bioregistry: `dbsnp`
- wikidata: `P6861`

## Supported by tools

- `autotype`

## Translations

- ru: Идентификатор варианта dbSNP (rsID): Номер записи RefSNP в базе генетических вариаций dbSNP (NCBI): буквы rs и число.

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/DbSNP>
- wikidata: <https://www.wikidata.org/wiki/Property:P6861>
- doc: <https://www.ncbi.nlm.nih.gov/snp/docs/RefSNP_about/>
- other: <https://github.com/congy/AutoType/blob/master/data_release/SNPID_correct.txt>

## Quality

Score 100/100.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/dbsnp_id.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/any/science/dbsnp_id.yaml>
