| 1 |
#!/bin/bash |
| 2 |
|
| 3 |
# Public domain notice for all NCBI EDirect scripts is located at: |
| 4 |
# https://www.ncbi.nlm.nih.gov/books/NBK179288/#chapter6.Public_Domain_Notice |
| 5 |
|
| 6 |
# efetch -db snp -id 104894914,104894915,104894916,11549407,1365817067 -format docsum | |
| 7 |
# snp2hgvs | hgvs2spdi | spdi2prod |
| 8 |
|
| 9 |
xtract -set DocumentSummarySet -pattern DocumentSummary -select Id -eq SNP_ID | |
| 10 |
xtract -rec HGVS -pattern DocumentSummary -wrp Id -element SNP_ID \ |
| 11 |
-group DocumentSummary -block GENE_E -enc Gene -sep "|" -element NAME \ |
| 12 |
-group DocumentSummary -rst -hgvs DOCSUM | |
| 13 |
transmute -format |