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

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

2013-06-09 Thread claire morandin
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 numpy as np [code]ercc_contigs=

Re: Issue values dictionary

2013-06-04 Thread claire morandin
@alex23 I can't thank you enough this really helped me so much, not only fixing my issue but also understanding where was my original error Thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Issue values dictionary

2013-06-04 Thread claire morandin
I have two text file with a bunch of transcript name and their corresponding length, it looks like this: ERCC.txt ERCC-2 1061 ERCC-3 1023 ERCC-4 523 ERCC-9 984 ERCC-00012 994 ERCC-00013 808 ERCC-00014 1957 ERCC-00016 844 ERCC-00017 1136