Analysis pipelines

One of the many uses of python is as a glue for running many analyses together. There are many different ways to construct data analysis pipelines, but here I will give some brief examples of how you can construct these pipelines using python.

One simple command that can be good to know is how to get the system to run a program or a command. You can do this with


import os
cmd = "ls"
os.system(cmd)
1
2
3
import os
cmd = "ls"
os.system(cmd)

There are other ways to run commands, for example you can spawn a process, however, I find that, even though it isn’t the safest method, it os.system() is the most convenient way to run a command.

Leave a Reply