Re: [Tutor] learning curve

2007-01-29 Thread Kent Johnson
Daniel Klose wrote: > Thanks Kent, > > I now have: > > target = sys.argv[1] > > seqDictionary = {} # python 2.5 import defaultdict from collections. > structureArray = [0, 0, 0] > > #THIS TAKES THE PLACE OF THE STANDARD PERL $DIR,$file > #shorter to do the os.path.join once to a variable. > if

Re: [Tutor] learning curve

2007-01-29 Thread Daniel Klose
Thanks Kent, I now have: target = sys.argv[1] seqDictionary = {} # python 2.5 import defaultdict from collections. structureArray = [0, 0, 0] #THIS TAKES THE PLACE OF THE STANDARD PERL $DIR,$file #shorter to do the os.path.join once to a variable. if (os.path.isfile(os.path.join(structDir, tar

Re: [Tutor] learning curve

2007-01-29 Thread Kent Johnson
Daniel Klose wrote: > Hi all, > > All I would like to do is take a file and count the number of times a > letter occurs in it. It so happens that there letters are amino acids. > There are also some other checks in the script but these are not a > concern just yet. > > What I would like to do is

[Tutor] learning curve

2007-01-29 Thread Daniel Klose
Hi all, All I would like to do is take a file and count the number of times a letter occurs in it. It so happens that there letters are amino acids. There are also some other checks in the script but these are not a concern just yet. What I would like to do is create a dictionary of arrays. In p