Re: Creating a PYD file

2010-08-23 Thread Philipp Pagel
.. cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://webclu.bio.wzw.tum.de/~pagel/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Reading a file

2009-02-14 Thread Philipp Pagel
teria for picking the values are, of course. cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: Install modules with no root privilegies

2008-11-24 Thread Philipp Pagel
s" documentation: http://docs.python.org/install/index.html Have a look at Section 3 "Alternate installation". cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: Renumbering

2008-09-03 Thread Philipp Pagel
sh that way. Biopython has such a parser: www.biopython.org cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: How to covert ASCII to integer in Python?

2008-05-31 Thread Philipp Pagel
Mensanator <[EMAIL PROTECTED]> wrote: > On May 30, 10:03???am, Philipp Pagel <[EMAIL PROTECTED]> > wrote: > > 'P' is obviously not an ASCII representation of a number. > It is in base 36. Sure, but if that was the OP's intent he would most likely ha

Re: How to covert ASCII to integer in Python?

2008-05-30 Thread Philipp Pagel
t(a) > and what you will get ? An error !!! 'P' is obviously not an ASCII representation of a number. What did you expect? The closest number by visual appearance? cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http

Re: Python Success stories

2008-04-23 Thread Philipp Pagel
azrael <[EMAIL PROTECTED]> wrote: > A friend of mine i a proud PERL developer which always keeps making > jokes on python's cost. There is only one sane way to deal with this situation: You need a common enemy. Java comes to mind ;-) cu Philipp -- Dr. Philipp

Re: Graphs in Python

2008-04-11 Thread Philipp Pagel
ense but I don't think that's a good solution to the OP's problem. cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: Graphs in Python

2008-04-11 Thread Philipp Pagel
s. - More specific stuff e.g. in A. Gibbons "Algorithmic Graph Theory". cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: Delete hidden files on unix

2008-03-03 Thread Philipp Pagel
also do this: import os os.system('rm .lock*') cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bioinformatik Technische Universität München http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: rstrip error python2.4.3 not in 2.5.1?

2008-02-29 Thread Philipp Pagel
e date_string and format can't be parsed by time.strptime() or if it returns a value which isn't a time tuple. New in version 2.5. -- cu Philipp -- Dr. Philipp Pagel Lehrstuhl f. Genomorientierte Bio

Re: How to pass shell variable to shell script from python

2008-02-27 Thread Philipp Pagel
Gerardo Herzig <[EMAIL PROTECTED]> wrote: > Rockins Chen wrote: > Well, if you have to use os.system, that could be > os.system("export target=localhost.localdomain.org; ./callee.sh") Or os.system("env target=localhost.localdomain.org ./callee.sh") cu

Re: a=b change b a==b true??

2007-02-26 Thread Philipp Pagel
you want: >>> import copy >>> a=[[2,4],[9,3]] >>> b = copy.deepcopy(a) >>> [map(list.sort,b)] [[None, None]] >>> a [[2, 4], [9, 3]] >>> b [[2, 4], [3, 9]] cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131

Re: CSV(???)

2007-02-23 Thread Philipp Pagel
t: either upgrade to something less outdated or see if you can get todays csv to work with the oldtimer. cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented BioinformaticsFax. +49-8161-71 2186 Technical University of Munich http://mip

Re: Finding a tuple in a tuple

2007-02-22 Thread Philipp Pagel
quot;) > What I want to do is return true if any member of tuple t1 is found in > the remaining tuples. Another way to go instead of using sets, although probably less elegant: >>> True in [x in t1 for x in t2] True >>> True in [x in t1 for x in t3] True >>> Tru

Re: Glob returning an empty list when passed a variable

2007-02-09 Thread Philipp Pagel
ea_name) '"*Foo*"' Unless there are files with funny names containing '"' you will not get a match. cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented BioinformaticsFax. +49-8161-71 2186 Technical University of Munich http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Chris <[EMAIL PROTECTED]> wrote: > It could easily be the 2gig file size limitation, how large are the > extracts? The files are much smaller than that, so that's not the issue. Anyway, Antoon pointed me in the right direction. Thanks for the help Philipp --

Re: os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
Antoon Pardon <[EMAIL PROTECTED]> wrote: > On 2007-02-09, Philipp Pagel <[EMAIL PROTECTED]> wrote: > > for filename in file_list: > > file = os.popen('uncompress -c '+filename, 'r') > > do_something(file) > > file.cl

os.popen and broken pipes

2007-02-09 Thread Philipp Pagel
compress changes the wording of the error message but not the result. I tried to give popen a large bufsize argument but that didn't really help. Probably I'm overlooking something obvious here but right now I can't see it. Any hints? cu Philipp -- Dr. Philipp Pagel

Re: Programmatically finding "significant" data points

2006-11-14 Thread Philipp Pagel
differetn groupos of some kind? Or are you just looking for extreme values (outliers maybe?)? So it's more of statistical question than a python one. cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented BioinformaticsFax. +49-

Re: Better way to replace/remove characters in a list of strings.

2006-09-04 Thread Philipp Pagel
foo.replace('a', 'b'), x) cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented BioinformaticsFax. +49-8161-71 2186 Technical University of Munich http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list

Re: where or filter on list

2006-08-30 Thread Philipp Pagel
extend this function to any given value ? By subtracting the desired value from foo. cu Philipp -- Dr. Philipp Pagel Tel. +49-8161-71 2131 Dept. of Genome Oriented BioinformaticsFax. +49-8161-71 2186 Technical University of Munich http://mips.gsf.de/staff/pagel -- http://mail.python.org/mailman/listinfo/python-list