Automating UCSC's BLAT
1
1
Entering edit mode
9.6 years ago

I do not want to use command line BLAT.

It cannot detect inserts. I have written scripts that can extract information in HTML files, but I had the urls.

I want to automate a web query script that can send fasta queries to UCSC's website. Then parse out alignments in the top matches. See picture of insert below.

Does anyone know a way to accomplish this using perl, python, java, or R?

blat ucsc web-query • 3.3k views
ADD COMMENT
1
Entering edit mode

Accomplish what? This is hardly intelligible, please rephrase.

ADD REPLY
0
Entering edit mode
9.6 years ago
sfcarroll ▴ 80

Please elaborate your question a little, but I think you can achieve what you want using the Ruby mechanize library.

require 'mechanize'
a = Mechanize.new
url = 'http://genome.ucsc.edu/cgi-bin/hgPcr?command=start'
page = a.post(url, {"wp_f" => 'AAGTCTTCATATCATCCTTGTT', "wp_r" => 'GTAGCTGAACTTGGTTCTTTC'})
puts page.body
puts page.link_with(:href => /hgPcrResult/).href

Please note that UCSC has a poicy against extended use of automated queries: hitting it too hard might get your IP banned.

ADD COMMENT

Login before adding your answer.

Traffic: 2274 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