-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #74 from wehs7661/bug-fix
Increase flexibility of default coordinate swap function and fix minor bugs
- Loading branch information
Showing
10 changed files
with
498 additions
and
597 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
125 changes: 125 additions & 0 deletions
125
ensemble_md/tests/data/coord_swap/atom_name_mapping.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
,resname A,resname B,atomid A,atom name A,atomid B,atom name B | ||
0,A2B,B2C,1,S1,1,S1 | ||
1,A2B,B2C,1,S1,1,S1 | ||
2,A2B,B2C,2,C2,2,C2 | ||
3,A2B,B2C,2,C2,2,C2 | ||
4,A2B,B2C,3,N3,3,N3 | ||
5,A2B,B2C,3,N3,3,N3 | ||
6,A2B,B2C,4,C4,4,C4 | ||
7,A2B,B2C,4,C4,4,C4 | ||
8,A2B,B2C,5,C5,5,C5 | ||
9,A2B,B2C,5,C5,5,C5 | ||
10,A2B,B2C,6,C6,6,C6 | ||
11,A2B,B2C,6,C6,6,C6 | ||
12,A2B,B2C,7,H1,8,H1 | ||
13,A2B,B2C,7,H1,8,H1 | ||
14,A2B,B2C,8,H2,9,H2 | ||
15,A2B,B2C,8,H2,9,H2 | ||
16,A2B,B2C,9,H3,10,H3 | ||
17,A2B,B2C,9,H3,10,H3 | ||
18,A2B,B2C,10,H4,11,H4 | ||
19,A2B,B2C,10,H4,11,H4 | ||
20,A2B,B2C,12,DC7,7,C7 | ||
21,A2B,B2C,13,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| ||
9,C2D,D2E,5,C5,5,C5 | ||
10,C2D,D2E,6,C6,6,C6 | ||
11,C2D,D2E,6,C6,6,C6 | ||
12,C2D,D2E,7,C7,7,C7 | ||
13,C2D,D2E,7,C7,7,C7 | ||
14,C2D,D2E,8,C8,18,DC8 | ||
15,C2D,D2E,9,H1,9,H1 | ||
16,C2D,D2E,9,H1,9,H1 | ||
17,C2D,D2E,10,H2,10,H2 | ||
18,C2D,D2E,10,H2,10,H2 | ||
19,C2D,D2E,11,H3,11,H3 | ||
20,C2D,D2E,11,H3,11,H3 | ||
21,C2D,D2E,13,H6,13,H6 | ||
22,C2D,D2E,13,H6,13,H6 | ||
23,C2D,D2E,14,H7,14,H7 | ||
24,C2D,D2E,14,H7,14,H7 | ||
25,C2D,D2E,15,H8,19,HV8 | ||
26,C2D,D2E,16,H9,20,HV9 | ||
27,C2D,D2E,17,H10,21,HV10 | ||
28,C2D,D2E,18,DC9,8,C9 | ||
29,C2D,D2E,19,HV5,12,H5 | ||
30,C2D,D2E,20,HV11,15,H11 | ||
31,C2D,D2E,21,HV12,16,H12 | ||
32,C2D,D2E,22,HV13,17,H13 | ||
0,D2E,E2F,1,S1,1,S1 | ||
1,D2E,E2F,1,S1,1,S1 | ||
2,D2E,E2F,2,C2,2,C2 | ||
3,D2E,E2F,2,C2,2,C2 | ||
4,D2E,E2F,3,N3,3,N3 | ||
5,D2E,E2F,3,N3,3,N3 | ||
6,D2E,E2F,4,C4,4,C4 | ||
7,D2E,E2F,4,C4,4,C4 | ||
8,D2E,E2F,5,C5,5,C5 | ||
9,D2E,E2F,5,C5,5,C5 | ||
10,D2E,E2F,6,C6,6,C6 | ||
11,D2E,E2F,6,C6,6,C6 | ||
12,D2E,E2F,7,C7,7,C7 | ||
13,D2E,E2F,7,C7,7,C7 | ||
14,D2E,E2F,8,C9,9,C9 | ||
15,D2E,E2F,8,C9,9,C9 | ||
16,D2E,E2F,9,H1,10,H1 | ||
17,D2E,E2F,9,H1,10,H1 | ||
18,D2E,E2F,10,H2,11,H2 | ||
19,D2E,E2F,10,H2,11,H2 | ||
20,D2E,E2F,11,H3,12,H3 | ||
21,D2E,E2F,11,H3,12,H3 | ||
22,D2E,E2F,13,H6,13,H6 | ||
23,D2E,E2F,13,H6,13,H6 | ||
24,D2E,E2F,14,H7,14,H7 | ||
25,D2E,E2F,14,H7,14,H7 | ||
26,D2E,E2F,15,H11,18,H11 | ||
27,D2E,E2F,15,H11,18,H11 | ||
28,D2E,E2F,16,H12,19,H12 | ||
29,D2E,E2F,16,H12,19,H12 | ||
30,D2E,E2F,17,H13,20,H13 | ||
31,D2E,E2F,17,H13,20,H13 | ||
32,D2E,E2F,18,DC8,8,C8 | ||
33,D2E,E2F,19,HV8,15,H8 | ||
34,D2E,E2F,20,HV9,16,H9 | ||
35,D2E,E2F,21,HV10,17,H10 |
20 changes: 20 additions & 0 deletions
20
ensemble_md/tests/data/coord_swap/atom_name_mapping_alt.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
,resname A,resname B,atomid A,atom name A,atomid B,atom name B | ||
0,I2J,J2K,1,O,1,O | ||
1,I2J,J2K,2,C1,2,C1 | ||
2,I2J,J2K,3,C2,3,C2 | ||
3,I2J,J2K,4,C3,4,C3 | ||
4,I2J,J2K,5,C4,5,C4 | ||
5,I2J,J2K,6,CV5,6,C5 | ||
6,I2J,J2K,7,CV6,7,C6 | ||
7,I2J,J2K,8,H1,10,H1 | ||
8,I2J,J2K,9,H2,11,H2 | ||
9,I2J,J2K,10,H3,12,H3 | ||
10,I2J,J2K,11,H4,13,H4 | ||
11,I2J,J2K,12,H5,14,H5 | ||
12,I2J,J2K,13,H6,15,H6 | ||
13,I2J,J2K,14,H7,16,H7 | ||
14,I2J,J2K,16,HV9,17,H9 | ||
15,I2J,J2K,17,HV10,18,H10 | ||
16,I2J,J2K,18,HV11,19,H11 | ||
17,I2J,J2K,19,HV12,20,H12 | ||
18,I2J,J2K,20,HV13,21,H13 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,7 @@ | ||
,index,Name,Atom Name Number,Element,Direction,Swap,File line,Final Type,X Coordinates,Y Coordinates,Z Coordinates | ||
0,0,H5,5,H,miss,A2B,13,real,0.09260503947734833,1.6340194940567017,0.3355029225349426 | ||
1,1,DC8,8,C,D2R,A2B,19,real,,, | ||
2,2,HV8,8,H,D2R,A2B,20,real,,, | ||
3,3,HV9,9,H,D2R,A2B,21,real,,, | ||
4,4,HV10,10,H,D2R,A2B,22,real,,, | ||
5,0,C8,8,C,R2D,B2A,9,dummy,,, | ||
6,1,H8,8,H,R2D,B2A,16,dummy,,, | ||
7,2,H9,9,H,R2D,B2A,17,dummy,,, | ||
8,3,H10,10,H,R2D,B2A,18,dummy,,, | ||
9,4,DC10,10,C,miss,B2A,22,dummy,2.620028495788574,1.403925895690918,2.7885396480560303 | ||
10,5,HV4,4,H,miss,B2A,23,dummy,2.3651702404022217,1.4678032398223877,2.8239073753356934 | ||
11,6,HV14,14,H,miss,B2A,24,dummy,2.678273916244507,1.464888095855713,2.8585944175720215 | ||
12,7,HV15,15,H,miss,B2A,25,dummy,2.6814169883728027,1.340580940246582,2.7234597206115723 | ||
13,8,HV16,16,H,miss,B2A,26,dummy,2.5583090782165527,1.3370134830474854,2.8496134281158447 | ||
,Name,Swap,X Coordinates,Y Coordinates,Z Coordinates | ||
0,DC10,A2B,2.620028018951416,1.4039266109466553,2.7885406017303467 | ||
1,HV14,A2B,2.6782684326171875,1.4648889303207397,2.8585996627807617 | ||
2,HV15,A2B,2.6814215183258057,1.3405863046646118,2.723461389541626 | ||
3,HV16,A2B,2.5583088397979736,1.3370097875595093,2.849609851837158 | ||
4,HV4,A2B,2.3651702404022217,1.4678034782409668,2.8239071369171143 | ||
5,H5,B2A,0.09260530769824982,1.6340194940567017,0.33550316095352173 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
,Name,Swap | ||
0,DC10,A2B | ||
1,HV14,A2B | ||
2,HV15,A2B | ||
3,HV16,A2B | ||
4,HV4,A2B | ||
5,H5,B2A |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.