Follow us on...
Follow us on Twitter Follow us on Facebook
Register
Results 1 to 3 of 3
  1. #1
    lancea is offline Registered User
    Join Date
    Feb 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Using a Python source code

    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. #2
    szymczyk is offline Registered User
    Join Date
    Sep 2005
    Posts
    52
    Thanks
    0
    Thanked 2 Times in 2 Posts
    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.
    Mark Szymczyk
    Author, Xcode Tools Sensei
    http://www.meandmark.com

  3. #3
    Mikuro's Avatar
    Mikuro is offline Crotchety UI Nitpicker
    Join Date
    Mar 2005
    Posts
    2,832
    Thanks
    10
    Thanked 74 Times in 64 Posts
    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.
    Mac mini 1.25GHz G4, 1GB RAM OS 10.5.8
    MacBook Pro 2.26GHz C2D, 8GB RAM OS 10.6.8

    Useful programs: Privoxy, Butler, ffmpegX, VLC, Perian, Tofu, Wcalc

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •