hi everybody, I have a file 2709852 2709911 A_16_P21360207 405 -59 2710316 2710367 A_14_P136880 -42 -51 2710325 2710384 A_16_P21360209 876 -59 2711260 2711319 A_16_P21360210 -22 -59 2711297 2711356 A_16_P03641959 254 -59 2711610 2711659 A_16_P03641960 982 -49 2712641 2712696 A_16_P03641962 1011 -55 2713707 2713765 A_16_P41563648 43 -58 2713808 2713861 A_16_P03641963 -16 -53 2713845 2713893 A_16_P41563649 3460 -48 2717353 2717412 A_16_P03641964 214 -59 2717626 2717685 A_16_P41563655 25 -59 2717710 2717754 A_16_P03641965 1250 -44 2719004 2719063 A_16_P03641966 -36 -59
I need the result like this A_16_P21360207 [405 , -59 , -42] A_14_P136880 [42 , -51, 876] A_16_P21360209 [876 , -59, -22] That is the list has an overlapping with the next lines ..... My script: d = {} fh = open('final_lenght_probe_span','r') while fh: a, b, c, span,len = fh.readline().strip().split('\t') a1,b1,c1,span1,len1 = fh.readline().strip().split('\t') probe_id = c d[probe_id] = [] d[probe_id] = [span,len,span1] for key in d.keys(): print key, d[key] but i am not able to achive at my result what should i do for it.....
-- http://mail.python.org/mailman/listinfo/python-list