how to connect standalone clustalW to database using php code.Is it possible?
thanks in advance
how to connect standalone clustalW to database using php code.Is it possible?
thanks in advance
See also the "See also" on the page in Pierre's answer, in particular exec() and backtick operator. Other things to think about:
Whether you want the output returned as a variable, or not, calling external programs can be a security hole unless you're careful. Long processes will hang the browser (if you're writing for the web), so use shell_exec()
if that's an issue
EDIT: I just noticed the "connect to database" part of your question. I'm unsure what you mean. If you want to store the clustalw results in a database, I guess you need parser code too, unless you plan to store all the output in one field.
you can invoke any external program from PHP using a system command: see here
Once you have the ClustalW results using system command as explained by Pierre, I would recommend to use MView for visualization in HTML. It's a neat command line tool that can generate pretty HTML from alignment (BLAST, ClustalW and other alignment programs) files. Once you have the HTML you can be print on to your PHP code on the fly. You can download MView from sourceforge.
Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
NOTE: When you downvote a question, it is both a form of respect for a new participant on the forum and an investment in developing sound posting habits for all participants to take a few seconds and write a comment describing why you downvoted a post and how to improve it. Cheers ;)
Dear @Aparna, welcome to the forum. Please take some time to write more detailed questions describing you data, needs, expected results and maybe putting an example of the code you tried. This will help other user to give you more satisfying answers. In turn, your post will become more useful to other participants. Thanks!