Snp Query From Ucsc
3
2
Entering edit mode
13.4 years ago
Zhshqzyc ▴ 520

Hello, I want to a list of snps(HG18). The format likes

rs35568883 38782126 A G

I know UCSC, but how to query?

The condition is chr21:38781803-41824906

snp dbsnp • 4.3k views
ADD COMMENT
4
Entering edit mode
13.4 years ago

You can use the UCSC mysql server:

mysql --user=genome --host=genome-mysql.cse.ucsc.edu -A -D hg18 -e 'select name,chrom,chromStart,chromEnd,observed from snp130 where name="rs35568883"'
+------------+-------+------------+----------+----------+
| name       | chrom | chromStart | chromEnd | observed |
+------------+-------+------------+----------+----------+
| rs35568883 | chr21 |   38782125 | 38782126 | A/G      |
+------------+-------+------------+----------+----------+
ADD COMMENT
2
Entering edit mode
13.4 years ago

FYI, programmatic access to the UCSC database are also discussed in the following threads in BioStar.

ADD COMMENT
2
Entering edit mode
13.4 years ago
Docroberson ▴ 310

Or the UCSC table browser if you don't use mysql. http://genome.ucsc.edu/cgi-bin/hgTables?org=Human&db=hg18 Group -> Variation and repeats Track -> SNPs(130) Output Format -> Selected fields from primary and related tables. Then click 'get output' button. On the next screen check the boxes for name, chrom, chromStart, chromEnd and observed. Then click the 'get output' button on that screen.

ADD COMMENT

Login before adding your answer.

Traffic: 2362 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6