image
image

Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
LinkBack Thread Tools
  #1  
Old February 4th, 2012, 12:55 PM
Registered User
 
Join Date: Feb 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
lancea is on a distinguished road
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?
Reply With Quote
  #2  
Old February 6th, 2012, 01:20 PM
Registered User
 
Join Date: Sep 2005
Posts: 50
Thanks: 0
Thanked 1 Time in 1 Post
szymczyk is on a distinguished road
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
Reply With Quote
  #3  
Old February 6th, 2012, 09:16 PM
Mikuro's Avatar
Crotchety UI Nitpicker
 
Join Date: Mar 2005
Posts: 2,819
Thanks: 8
Thanked 74 Times in 64 Posts
Mikuro has a spectacular aura aboutMikuro has a spectacular aura about
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
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT -5. The time now is 10:12 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Copyright 2000-2010 DigitalCrowd, Inc.