[Tutor] Zip Command

2010-10-13 Thread delegbede
Hi all, Does window os have a zip command for python like linux and unix. If yes, please what is it. If no, please what does it use to create a zip folder. I am working on an example in byte of python but the zip command is from linux but I use windows. Thank you. Sent from my BlackBerry wireless

Re: [Tutor] Merging Text Files

2010-10-13 Thread Ara Kooser
Thank you for all of the advice. I am going to try the dictionary route first thing tomorrow. This code is a part of larger code theat: 1) quires the BLAST database using BioPython 2) parses the data using BioPython, 3) dumps to text files 4) then merges the text files and sorts them. Somewhere do

Re: [Tutor] Ide To use? Other extras to install?

2010-10-13 Thread Bill Allen
On Mon, Oct 11, 2010 at 8:53 AM, Jed Smith wrote: > On Sun, Oct 10, 2010 at 9:31 PM, Jorge Biquez wrote: > > > What would be the IDE you recommend me to install that would be almost > > transparent to be using in both platforms? > > > I personally best like the one that is most closely associate

Re: [Tutor] Merging Text Files

2010-10-13 Thread Alan Gauld
"Ara Kooser" wrote I was thinking about writing the text files into a dictionary and then searching for each ID and then insert the content from file TWO into where the IDs match. But I am not sure how to start. Is there a more pythony way to go about doing this? Thats exactly how I would

Re: [Tutor] Merging Text Files

2010-10-13 Thread Matt Williams
Dear Ara, I have been working on something similar. In the end I used a dictionary for each line in the file, and stored data from each file in a different set. I then matched using one (or more) element from each dictionary. This is really very close doing a join in a database, though, and i

Re: [Tutor] Merging Text Files

2010-10-13 Thread Emile van Sebille
On 10/13/2010 1:16 PM Ara Kooser said... Hello all, I am working on merging two text files with fields separated by commas. The files are in this format: File ONE: *Species, Protein ID, E value, Length* Streptomyces sp. AA4, ZP_05482482, 2.82936001e-140, 5256, Streptomyces sp. AA4, Z

Re: [Tutor] Merging Text Files

2010-10-13 Thread Robert Jackiewicz
On Wed, 13 Oct 2010 14:16:21 -0600, Ara Kooser wrote: > Hello all, > > I am working on merging two text files with fields separated by > commas. > The files are in this format: > > File ONE: > *Species, Protein ID, E value, Length* Streptomyces sp. AA4, > ZP_05482482, 2.82936001e-140

[Tutor] Merging Text Files

2010-10-13 Thread Ara Kooser
Hello all, I am working on merging two text files with fields separated by commas. The files are in this format: File ONE: *Species, Protein ID, E value, Length* Streptomyces sp. AA4, ZP_05482482, 2.82936001e-140, 5256, Streptomyces sp. AA4, ZP_05482482, 8.03332997e-138, 5256, S

Re: [Tutor] SQLite3 DB Field Alphabetizing

2010-10-13 Thread David Hutto
On Wed, Oct 13, 2010 at 9:27 AM, Steven D'Aprano wrote: > On Thu, 14 Oct 2010 12:13:50 am David Hutto wrote: >> I see it now. I knew that the u outside ' ' is the coding for the >> string, but I thought I had to strip it before using it since that >> was how it showed up. The bug of course would b

Re: [Tutor] SQLite3 DB Field Alphabetizing

2010-10-13 Thread Steven D'Aprano
On Thu, 14 Oct 2010 12:13:50 am David Hutto wrote: > I see it now. I knew that the u outside ' ' is the coding for the > string, but I thought I had to strip it before using it since that > was how it showed up. The bug of course would be that graphs that > start with u would go to the second lette

Re: [Tutor] SQLite3 DB Field Alphabetizing

2010-10-13 Thread David Hutto
On Wed, Oct 13, 2010 at 8:17 AM, Joel Goldstick wrote: > > > On Wed, Oct 13, 2010 at 4:01 AM, Alan Gauld > wrote: >> >> "David Hutto" wrote >> >>> Below is the output before converting: >>> >>> [(u'.hjvkjgfkj/bdgfkjbg', u''), (u'uuz', u'Pie >>> Chart'), (u'jgkgyckghc', u''),

Re: [Tutor] SQLite3 DB Field Alphabetizing

2010-10-13 Thread Joel Goldstick
On Wed, Oct 13, 2010 at 4:01 AM, Alan Gauld wrote: > "David Hutto" wrote > > Below is the output before converting: >> >> [(u'.hjvkjgfkj/bdgfkjbg', u''), (u'uuz', u'Pie >> Chart'), (u'jgkgyckghc', u''), (u'kfhhv ', u''), (u'khfhf', u''), >> (u'test', u''), (u'test10', u''), (

Re: [Tutor] SQLite3 DB Field Alphabetizing

2010-10-13 Thread Alan Gauld
"David Hutto" wrote Below is the output before converting: [(u'.hjvkjgfkj/bdgfkjbg', u''), (u'uuz', u'Pie Chart'), (u'jgkgyckghc', u''), (u'kfhhv ', u''), (u'khfhf', u''), (u'test', u''), (u'test10', u''), (u'test2', u'Dashed/Dotted'), (u'test3', u'Pie Chart'), (u'test346w4