[Tutor] Queueing

2007-05-09 Thread Paulo Nuin
Hi Everyone I need to a write a script that would do a queuing job on a cluster running openMosix Linux. I have checked the Queue module and that part I can say it is covered. My problem regards on thecode to check if the process has ended. As some most of the jobs would be run in different no

Re: [Tutor] Queueing

2007-05-10 Thread Paulo Nuin
Hi Thanks a lot Alan and Kent for the replies. Cheers Paulo Kent Johnson wrote: > Paulo Nuin wrote: >> Hi Everyone >> >> I need to a write a script that would do a queuing job on a cluster >> running openMosix Linux. I have checked the Queue module and that >

Re: [Tutor] (no subject)

2007-05-18 Thread Paulo Nuin
Hi Richard Have you try running it with Python in front of the script name? Such as: python my_script.py Usually on Windows command prompt, if Python is not on your path you have to enter the whole path to it, something like C:\Python25\python. HTH Paulo Richard Henderson wrote: > Hello, > I

Re: [Tutor] i++

2007-06-05 Thread Paulo Nuin
Hi You can use i += 1 or i -=1 HTH Paulo scott wrote: > Hi, > > is there any way in Python to simply add or subtract one from a > variable like i++ or i--? I don't mind doing a i = i + 1, but would > prefer something more simple and faster. > > ___

Re: [Tutor] Multi-line comments?

2007-06-06 Thread Paulo Nuin
Hi Brad Use something like this '''your comments here''' Three single quotes will do it. HTH Paulo Brad Tompkins wrote: > Hello everyone, > > This may seem like a pretty basic question but it's driving me crazy. > > Is there a way to make use of multi-line comments when programming > using p

Re: [Tutor] Finding all locations of a sequence

2007-06-14 Thread Paulo Nuin
Hi Lauren You can use two approaches: 1- String method find This returns a int value with the lowest position of your search on the string (sequence) you are searching. From the documentation: *find*( sub[, start[, end]]) Return the lowest index in the string where substring sub is found, suc

Re: [Tutor] Finding all locations of a sequence

2007-06-14 Thread Paulo Nuin
Hi Lauren I use the find string method to search DNA motifs. Here is an example while sp < len(fasta[j].sequence): pos = string.find(fasta[j].sequence, motif[i], sp) if pos != -1 and pos > 0:

Re: [Tutor] green brackets?

2007-07-11 Thread Paulo Nuin
Hi f.write("n\") should be f.write("\n") Paulo elis aeris wrote: > def mousemove(x,y): > f.write("n\") > f.write("command" + " =" + " mousemove\n") > f.write("parameter_1 = " + str(x) + "\n") > f.write("parameter_2 = " + str(y) + "\n") > f.write("n\") > > > > > > for some re