how two join and arrange two files together
amrita at iisermohali.ac.in
amrita at iisermohali.ac.in
Sat Jul 18 03:09:21 EDT 2009
Hi,
I have two files having entries like:--
fileA
8 ALA H = 7.85 N = 123.95 CA = 54.67 HA = 2.98 C = 179.39
15 ALA H = 8.05 N = 119.31 CA = 52.18 HA = 4.52 C = 177.18
23 ALA H = 8.78 N = 120.16 CA = 55.84 HA = 4.14 C = 179.93
and
fileB
ChainA: ALA8 -67.217297 -37.131330
ChainA: ALA21 -69.822977 -48.871282
ChainA: ALA23 -59.148095 -46.540043
ChainA: ALA33 -65.459303 -43.269718
i want to join thses two files in such a way that the output file will
contain column of both the files and the enties of similar position of ALA
will be together.so the output file should look something like:----
fileC
8 ALA H = 7.85 N = 123.95 CA = 54.67 HA = 2.98 C = 179.39 ChainA:
ALA8 -67.217297 -37.131330
15 ALA H = 8.05 N = 119.31 CA = 52.18 HA = 4.52 C = 177.18
ChainA:
ALA21 -69.822977 -48.871282
23 ALA H = 8.78 N = 120.16 CA = 55.84 HA = 4.14 C = 179.93 ChainA:
ALA23 -59.148095 -46.540043
ChainA:
ALA33 -65.459303 -43.269718
Thanks,
Amrita Kumari
Research Fellow
IISER Mohali
Chandigarh
INDIA
More information about the Python-list
mailing list