<p>I would recommend to do this in R, using biomaRt.</p>

<p>For example if you want all the SNPs from IDH1 (ENSG00000138413) gene:</p>

<pre><code>library(biomaRt)

ensembl&lt;- useMart("ensembl")
ensembl &lt;- useDataset("hsapiens_gene_ensembl",mart=ensembl)

IDH1 &lt;- getBM(attributes=c('ensembl_gene_id','variation_name'), filters = 'ensembl_gene_id', values ="ENSG00000138413", mart = ensembl)

IDH1
</code></pre>

<p>You can add much more information, take a look at the <a href="https://bioconductor.org/packages/release/bioc/vignettes/biomaRt/inst/doc/biomaRt.html" rel="nofollow noreferrer">help page</a> of biomaRt.</p>

CC BY-SA 3.0
2018-04-07T16:21:22.280Z
2018-04-07T16:21:22.280Z
benn
<p>I am new to the field of Bioinformatics. Single Nucleotide Polymorphism or SNP data are available on the the Internet to download.SNP related data are valuable for variety of reasons ranging from  disease related charatertcics and  precision medicine to name the few.</p>

<p>Can somebody explain me the steps of downloading this kind of data from NCBI or other resource.
For example if I want to download the the SNP in bunch of humans on a particular Gene from the specific start to end. What are the sequence of steps I would do online to download such data?</p>

<p><strong>Update</strong></p>

<p>I want SNP data for example for a particular gene say X from positions in range say base pairs 100,000 to 200,000 for individuals say 100 in txt or csv format or standard format that is available?</p>

<p>Like if I choose Gene X and position ranging from 100 to 109 base pairs in 5 persons I want following kind of data in txt or csv format with say two SNV at position 101 and 109</p>

<ol>
<li>A <strong>A</strong> A A A G G G G <strong>G</strong></li>
<li>A <strong>G</strong> A A A G G G G <strong>A</strong></li>
<li>A <strong>A</strong> A A A G G G G <strong>A</strong></li>
<li>A <strong>A</strong> A A A G G G G <strong>A</strong></li>
<li>A <strong>G</strong> A A A G G G G <strong>G</strong></li>
</ol>

<p>regards </p>

CC BY-SA 3.0
2018-04-07T15:17:50.583Z
What kind of data would you need? Just the SNP position and alternative sequence? The frequency of occurrence of each SNP in different populations? What format? rsIDs? VCF files? Something else? Please [edit] your question and make it more specific.
terdon
CC BY-SA 3.0
2018-04-08T07:32:56.017Z
@terdon please see updated Question
Edison
<snp><sequence-analysis><data-download>
SNP data Download Help
# SNP data Download Help

(Asked by: username_0 on 2018-04-07)

I am new to the field of Bioinformatics. Single Nucleotide Polymorphism or SNP data are available on the the Internet to download.SNP related data are valuable for variety of reasons ranging from disease related charatertcics and precision medicine to name the few.

Can somebody explain me the steps of downloading this kind of data from NCBI or other resource.
For example if I want to download the the SNP in bunch of humans on a particular Gene from the specific start to end. What are the sequence of steps I would do online to download such data?

**Update**

I want SNP data for example for a particular gene say X from positions in range say base pairs 100,000 to 200,000 for individuals say 100 in txt or csv format or standard format that is available?

Like if I choose Gene X and position ranging from 100 to 109 base pairs in 5 persons I want following kind of data in txt or csv format with say two SNV at position 101 and 109

1. A **A** A A A G G G G **G**
2. A **G** A A A G G G G **A**
3. A **A** A A A G G G G **A**
4. A **A** A A A G G G G **A**
5. A **G** A A A G G G G **G**

regards

**Tags:** snp, sequence-analysis, data-download
> **Comments:**
> **username_1**: What kind of data would you need? Just the SNP position and alternative sequence? The frequency of occurrence of each SNP in different populations? What format? rsIDs? VCF files? Something else? Please [edit] your question and make it more specific.  
> **username_0**: @terdon please see updated Question  

---

## 1 answers

### Answer by username_2 on 2018-04-07. Score: 2

I would recommend to do this in R, using biomaRt.
For example if you want all the SNPs from IDH1 (ENSG00000138413) gene:
library(biomaRt)

ensembl<- useMart("ensembl")
ensembl <- useDataset("hsapiens_gene_ensembl",mart=ensembl)

IDH1 <- getBM(attributes=c('ensembl_gene_id','variation_name'), filters = 'ensembl_gene_id', values ="ENSG00000138413", mart = ensembl)

IDH1

You can add much more information, take a look at the help page of biomaRt.


---

