pbrun dbsnp
===
###### tags: `Parabricks-v4.0`
###### tags: `genomics`, `NVIDIA`, `Clara`, `Parabricks`, `pbrun`, `vcf`
<br>
[TOC]
<br>
## dbsnp (單核苷酸多型性資料庫)
> https://docs.nvidia.com/clara/parabricks/4.0.0/Documentation/ToolDocs/man_dbsnp.html
### Intro
**Annotate variants based on a variant database.**
根據變異資料庫,對變異進行標記。
**This tool annotates the variant calls within a VCF file using the dbSNP database.**
這個工具使用 dbSNP 資料庫對 VCF 檔案中的變異偵測進行標記。
**The dbSNP database is a public archive of genetic variant information, consisting of known variants and data on whether each of these are considered to be neutral polymorphisms, polymorphisms with associated phenotypes, or regions of no variation.**
這個 dbSNP 資料庫是一個遺傳變異資訊的公開檔案,由已知變異、以及關於這些變異是否被視為中性多型性、具有相關表現型的多型性或無變異區域的資料所組成。
<br>
### 執行範例
```bash
$ pbrun dbsnp \
--in-vcf output.vcf \
--out-vcf output-annotated.vcf \
--in-dbsnp-file ref/Homo_sapiens_assembly38.known_indels.vcf.gz
```
<br>
### 標記結果1:germline-knownsites: dbsnp 標記前後
> 資料來源:
> https://github.com/ESR-NZ/human_genomics_pipeline/tree/master/test/single/fastq
> NA24631_1.fastq.gz
> NA24631_1.fastq.gz
> 步驟:
> 1. germline 未帶入 `--knownSites` 和 `--out-recal-file` 參數
> 2. 其產出在透過 pbrun dbsnp 來標記
執行 pbrun dbsnp 的結果如下,以最末端幾個標記為例:
(左邊:標記前,右邊:標記後)
[](https://i.imgur.com/C7eXSHe.png)
[](https://i.imgur.com/Ckeez81.png)
[](https://i.imgur.com/94M5UA1.png)
以最後一個 `rs34144163` 為例,前往 [NCBI / NIH / SNP](https://www.ncbi.nlm.nih.gov/snp/) 資料庫查詢:
[](https://i.imgur.com/Y3Vvlu2.png)
- ### [rs34144163](https://www.ncbi.nlm.nih.gov/snp/?term=rs34144163)
- 
- 對照原始資料:
chrX, 113663406, GT -> G, 表示少了 T (位置113663407)
<br>
### 標記結果2:germline+knownsites: dbsnp 標記前後
承上,germline 有帶入 `--knownSites` 和 `--out-recal-file` 參數,其產出在透過 pbrun dbsnp 來標記
[](https://i.imgur.com/RQugfby.png)
<br>
### 標記結果3:germline+knownsite vs germline-knownsite+dbsnp
[](https://i.imgur.com/8hNL4gB.png)
<br>
<hr>
<br>
## D15780
> 標記後的結果
### HEADER 多出一行
```
##INFO=<ID=DB,Number=0,Type=Flag,Description="dbSNP Membership">
```
- 大概是說(推測):
- **ID: DB**
INFO 欄位中的資訊,多出 `DB` Key
[](https://i.imgur.com/sxYM1iM.png)
- **Number: 0**
不清楚意義
- **Type=Flag**
類型是旗標 (有 key 無 value),註記 pbrub 有修改過
[](https://i.imgur.com/sxYM1iM.png)
- **Description="dbSNP Membership"**
描述:dbSNP 會員身分
### 0