Re: I used defaultdic to store some variables but the output is blank

2013-06-09 Thread Peter Otten
claire morandin wrote: > Thanks Peter, true I did not realize that ercc_contigs is empty, but I am > not sure how to "populate" the dictionary if I only have one column for > the value but no key You could use a "dummy value" ercc_contigs = {} for line in open('Faq_ERCC_contigs_name.txt'): g

Re: I used defaultdic to store some variables but the output is blank

2013-06-09 Thread claire morandin
Thanks Peter, true I did not realize that ercc_contigs is empty, but I am not sure how to "populate" the dictionary if I only have one column for the value but no key -- http://mail.python.org/mailman/listinfo/python-list

Re: I used defaultdic to store some variables but the output is blank

2013-06-09 Thread Peter Otten
claire morandin wrote: > I have the following script which does not return anything, no apparent > mistake but my output file is empty.I am just trying to extract some > decimal number from a file according to their names which are in another > file. from collections import defaultdict import nump