Hi,
I have two files:
ENDMDL is coming many times in 11.txt. I wish to retreive that pattern corresponds to the value of Id. It means, if I give input of 004 (Id) from group 2, then it should output the fourth repeat from 11. txt ending with ENDMDL.
So, corresponding to value of Id from c.txt, I want to retreive the repeat at the number from 11.txt.
Please guide, how, corresponding to value of Id from c.txt, I can retreive the repeat at the number from 11.txt.
Also, I wish to retreive these patterns in individual files based on their Id, group, centre. For example:
group0.txt contains all patterns with Id
group1.txt contains all patterns with Id
group2.txt contains all patterns with Id
One file containing patterns with corresponding to centre ID
Id001.txt
Id002.txt
Id009.txt
............
............
Thanks
I have two files:
Quote:
11.txt showing two patterns: ATOM 1 N SER A 1 35.092 83.194 140.076 1.00 0.00 N ATOM 2 CA SER A 1 35.216 83.725 138.725 1.00 0.00 C TER ENDMDL ATOM 1 N SER A 1 35.683 81.326 139.778 1.00 0.00 N ATOM 2 CA SER A 1 35.422 82.736 139.929 1.00 0.00 C TER ENDMDL File: c.txt Number of groups: 40 3.95 Group: 0 Branches: 1 0 001 Centre: 001 Nodes: 1 Group: 1 Branches: 1 0 002 Centre: 002 Nodes: 1 Group: 2 Branches: 6 0 009 1 004 2 008 3 007 4 005 5 006 Centre: 006 Nodes: 6 |
Quote:
Id004.txt Group2: Id 004 ATOM 1 N SER A 1 35.092 83.194 140.076 1.00 0.00 N ATOM 2 CA SER A 1 35.216 83.725 138.725 1.00 0.00 C TER ENDMDL |
Please guide, how, corresponding to value of Id from c.txt, I can retreive the repeat at the number from 11.txt.
Also, I wish to retreive these patterns in individual files based on their Id, group, centre. For example:
group0.txt contains all patterns with Id
group1.txt contains all patterns with Id
group2.txt contains all patterns with Id
One file containing patterns with corresponding to centre ID
Id001.txt
Id002.txt
Id009.txt
............
............
Thanks