Using a Python source code

Discussion in 'Software Programming & Web Scripting' started by lancea, Feb 4, 2012.

  1. lancea

    lancea Registered

    Joined:
    Feb 4, 2012
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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?
     
  2. szymczyk

    szymczyk Registered

    Joined:
    Sep 25, 2005
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  3. Mikuro

    Mikuro Crotchety UI Nitpicker

    Joined:
    Mar 21, 2005
    Messages:
    2,844
    Likes Received:
    7
    Trophy Points:
    38
    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.
     

Share This Page