Hello, I'm quite a bit newbie with bioinformatics.
To make my job easier I want to call other applications from a Python script.
Does anyone knows how to achieve this?
Hello, I'm quite a bit newbie with bioinformatics.
To make my job easier I want to call other applications from a Python script.
Does anyone knows how to achieve this?
-- Is hard to be free, but when it works it sure is worth it (Janis Joplin). --
Command line programs can be called with the subprocess module. However, it's likely to be disabled on X10 for security purposes, if that's where you're running the Python script.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.
Actually I run it on my own pc. It was just a general programming question. If somethings are blocked for security issues, that may let me know how it works on my pc.
Perhaps I should get a server at home :D
-- Is hard to be free, but when it works it sure is worth it (Janis Joplin). --
You should always develop on your own machine, pushing to the production server only when stable. For one thing, you have more control over your own server and can debug apps interactively.
Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.Misson, not Mission.