开发者

How to Send Sequence to Web Gene Prediction Server in Python?

开发者 https://www.devze.com 2023-04-04 12:54 出处:网络
I am currently doing some projects about \'ab initio gene prediction\' programs. I found some interesting web gene prediction servers such as \'FGENESH\' and \'GenS开发者_StackOverflowcan\'.

I am currently doing some projects about 'ab initio gene prediction' programs. I found some interesting web gene prediction servers such as 'FGENESH' and 'GenS开发者_StackOverflowcan'. Url Below: http://linux1.softberry.com/berry.phtml?topic=fgenesh&group=programs&subgroup=gfind

What I want to ask you is how I can send DNA sequence file in my computer through python script, not using web browser. Also, I want to know how to parse the result.

Thanks.


The raw way for your problem is to use mechanize (kind of simulates the browser). And then for parsing XML/HTML-results, you probably want to use BeautifulSoup, which allows you to get the XML-structure in a composited object-oriented format, from where you can access text and attributes. There are dozens of examples for usage of both libraries on the web.

However, these web-service typically have some more programmer-friendly API for processing requests, which you can use most easily access with urllib. I guess there are many example scripts already doing stuff with PDB (quick googling brought this one) or similar, so these might be good starting points.

0

精彩评论

暂无评论...
验证码 换一张
取 消