Using a Python source code

lancea

Registered
I am a cancer therapy research scientist and am attempting to use a bioinformatics program on my mac. The source code was downloaded in a folder that contains .py files. The program is the Ribosome-Binding-Site-Calculator. A version of this program runs on the web:

https://salis.psu.edu/software/

However, it is slow due to the que of many users. I would like to run it on my mac. I am not familiar with running this type of source code. I have downloaded and installed Python 2.7 and opened up the .py files in windows in IDLE. I have opened terminal and dropped the .py files into the terminal window. It is still unclear how to run this on my mac.

Any programmers or bioinformaticists out there that can help?
 
A relatively easy option is to download the text editor TextWrangler and open the python files there. You can run python scripts from TextWrangler using the #! (shebang) menu.
 
You can always run a .py file by invoking the python command with the file as an argument. From Terminal:
Code:
python /path/to/file.py

Are there any problems specific to this program? If so, please post the output of the python command.
 
Back
Top