Re: [Tutor] arrangement of datafile

2014-01-10 Thread Amrita Kumari
Hi Peter, Thankyou very much for your kind help. I got the output like the way I wanted (which you have also shown in your output). I really appreciate your effort. Thanks for your time. Amrita On Thu, Jan 9, 2014 at 8:41 PM, Peter Otten __pete...@web.de wrote: Amrita Kumari wrote

Re: [Tutor] Fwd: arrangement of datafile

2014-01-09 Thread Amrita Kumari
residue. This arrangement I need in order to compare this chemical shift value with other web server generated program. Thanks, Amrita and got the output as: On 1/7/14, Steven D'Aprano st...@pearwood.info wrote: On Mon, Jan 06, 2014 at 04:57:38PM +0800, Amrita Kumari wrote: Hi Steven, I tried

Re: [Tutor] Fwd: arrangement of datafile

2014-01-06 Thread Amrita Kumari
and then search for similar atom and print its chemical shift value at one time along with residue no.. Thanks, Amrita On Mon, Jan 6, 2014 at 6:44 AM, Steven D'Aprano st...@pearwood.info wrote: Hi Amrita, On Sun, Jan 05, 2014 at 10:01:16AM +0800, Amrita Kumari wrote: I have saved my data in csv

[Tutor] Fwd: arrangement of datafile

2014-01-05 Thread Amrita Kumari
Sorry I forgot to add tutor mailing list.please help for the below. -- Forwarded message -- From: Amrita Kumari amrita@gmail.com Date: Fri, Jan 3, 2014 at 2:42 PM Subject: Re: [Tutor] arrangement of datafile To: Evans Anyokwu onyx...@gmail.com Hi, I have saved my data

Re: [Tutor] arrangement of datafile

2013-12-27 Thread Amrita Kumari
, 'N': 119.136}} Thanks, Amrita On Wed, Dec 25, 2013 at 7:28 PM, Dave Angel da...@davea.name wrote: On Wed, 25 Dec 2013 16:17:27 +0800, Amrita Kumari amrita@gmail.com wrote: I tried these and here is the code: f=open('filename') lines=f.readlines() new=lines.split

[Tutor] arrangement of datafile

2013-12-25 Thread Amrita Kumari
}} If not then please help to point out my mistake so that I can get the correct output. Thanking you for your help and time. Thanks, Amrita ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman

[Tutor] arrangement of datafile

2013-12-17 Thread Amrita Kumari
. As the number of atoms in different row are different and similar atom are at random position in different residue hence I don't know to to split them. Please help to solve this problem. Thanks, Amrita ___ Tutor maillist - Tutor@python.org To unsubscribe

Re: [Tutor] how to get blank value

2009-07-28 Thread amrita
lines for which C value is there but how to get those one for which it doesn't have any value, i did google search but still i am not getting. Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA

Re: [Tutor] how to get blank value

2009-07-28 Thread amrita
It is not giving any value, without any error ph08...@sys53:~ python trial.py ph08...@sys53:~ it is coming out from shell. Thanks for help. Amrita amr...@iisermohali.ac.in wrote: Sorry to say, but till now I have not got the solution of my problem, I tried with this command:- import re

Re: [Tutor] how to get blank value

2009-07-28 Thread amrita
for which N, CA and C all values are missing. Thanks for help. Amrita amr...@iisermohali.ac.in wrote: It is not giving any value, without any error ph08...@sys53:~ python trial.py ph08...@sys53:~ it is coming out from shell. Try this. I embedded the test data to simplify testing: data = 48 ALA

Re: [Tutor] how to get blank value

2009-07-28 Thread amrita
://pyparsing.wikispaces.com. -- Paul ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA ___ Tutor maillist - Tutor

[Tutor] how to get blank value

2009-07-25 Thread amrita
but still i am not getting. Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] how to get blank value

2009-07-24 Thread amrita
/ ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA

[Tutor] how to get blank value

2009-07-23 Thread amrita
N,CA and C all are missing, I tried in this way: import re expr = re.compile(C = None) f = open(helix.dat) for line in f: if expr.search(line): print line but i am not getting the desired output. Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA

[Tutor] how to fill zero value and join two column

2009-07-22 Thread amrita
CA = 54.67 HA =0.00 C =0.00|8 ALA helix (helix_alpha, helix1) I tried to merge these two files using commands like:- from collections import defaultdict def merge(sources): ... if __name__ == __main__: ...a = open(/home/amrita/alachems/chem100.txt) ...c = open(/home/amrita

Re: [Tutor] how to join two different files

2009-07-18 Thread amrita
Thankyou sir it is working.but one more thing i want to ask that if my file will have entries like:--- fileA and fileB 12 10 13 12 14 15 means if their no. of entries will not match then how to combine them(both input files have more than one column). Thanks, Amrita Maybe

[Tutor] how to join two different files

2009-07-17 Thread amrita
Hi, I have two large different column datafiles now i want to join them as single multi-column datafile:-- I tried the command:-- file('ala', 'w').write(file('/home/amrita/alachems/chem2.txt', 'r').read()+file('/home/amrita/pdbfile/pdb2.txt', 'r').read()) but it is priniting second file

Re: [Tutor] just one question

2009-07-16 Thread amrita
Thankyou very much sir now it is working..it is giving that result which i wanted. Thankyou very much.. Thanks, Amrita Please use reply-all, so that emails go to the list as well. 2009/7/16 amr...@iisermohali.ac.in: Thankyou for help it is working and giving the result

[Tutor] just one question

2009-07-15 Thread amrita
= if some value is not there then it will leave that as blank.I am new in python but this is what we want, so how can i do it using python script. Amrita Kumari Research Fellow IISER Mohali Chandigarh INDIA ___ Tutor maillist - Tutor@python.org http