-
Notifications
You must be signed in to change notification settings - Fork 12
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 #50 from HITS-MBM/issue-48
Issue 48: fix residue coordinates by aligning index group
- Loading branch information
Showing
17 changed files
with
1,295 additions
and
111 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,6 +4,7 @@ pipeline { | |
|
||
agent { | ||
dockerfile { | ||
label 'docker-gpu-host' | ||
filename 'devel/Dockerfile' | ||
} | ||
} | ||
|
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
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,36 @@ | ||
/* | ||
* GraphTest.cpp | ||
* | ||
* Created on: Oct 17, 2022 | ||
* Author: Bernd Doser, HITS gGmbH <[email protected]> | ||
*/ | ||
|
||
#include <iostream> | ||
#include <string> | ||
#include <vector> | ||
#include <gtest/gtest.h> | ||
#include "gromacs/gmxana/fda/Graph.h" | ||
#include "testutils/cmdlinetest.h" | ||
|
||
using namespace fda_analysis; | ||
|
||
//! Test fixture for FDA | ||
class GraphTest : public gmx::test::CommandLineTestBase | ||
{}; | ||
|
||
TEST_F(GraphTest, empty) | ||
{ | ||
Graph graph; | ||
} | ||
|
||
TEST_F(GraphTest, residue) | ||
{ | ||
std::vector<double> forceMatrix{1.0, 1.0, 1.0, 1.0}; | ||
rvec coord_traj[3] = {{1.0, 1.1, 1.2}, {2.0, 2.1, 2.2}, {3.0, 3.1, 3.2}}; | ||
int index[2] = {0, 1}; | ||
int isize = 2; | ||
|
||
Graph graph(forceMatrix, coord_traj, index, isize); | ||
|
||
std::cout << graph << std::endl; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/gromacs/gmxana/fda/tests/data/alagly/FDAGraphTest.ref8.pdb
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,4 @@ | ||
ATOM 1 2 -0.000 0.060 -0.490 1.003437.44 AA | ||
ATOM 2 3 3.700 0.320 -1.170 1.003437.44 AA | ||
CONECT 1 2 | ||
ENDMDL |
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,46 +1,22 @@ | ||
[ all ] | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
|
||
[ ala ] | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
|
||
[ gly ] | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
|
||
[ System ] | ||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ||
16 17 18 19 20 | ||
[ Protein ] | ||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ||
16 17 18 19 20 | ||
[ Protein-H ] | ||
1 5 7 11 12 13 15 18 19 20 | ||
[ C-alpha ] | ||
1 1 5 15 | ||
[ Backbone ] | ||
1 5 11 13 15 18 | ||
[ MainChain ] | ||
1 5 11 12 13 15 18 19 20 | ||
[ MainChain+Cb ] | ||
1 5 7 11 12 13 15 18 19 20 | ||
[ MainChain+H ] | ||
1 2 3 4 5 11 12 13 14 15 18 19 20 | ||
[ SideChain ] | ||
6 7 8 9 10 16 17 | ||
[ SideChain-H ] | ||
7 |
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,41 @@ | ||
ATOM 1 2 -0.410 -1.740 -1.310 1.003437.44 AA | ||
ATOM 2 3 -0.410 -1.740 0.330 1.003437.44 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.414 -1.736 -1.304 1.003012.43 AA | ||
ATOM 2 3 -0.358 -1.713 0.330 1.003012.43 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.415 -1.736 -1.301 1.002642.37 AA | ||
ATOM 2 3 -0.306 -1.687 0.331 1.002642.37 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.412 -1.739 -1.304 1.001851.51 AA | ||
ATOM 2 3 -0.255 -1.664 0.332 1.001851.51 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ENDMDL | ||
ATOM 1 2 -0.398 -1.752 -1.316 1.001287.64 AA | ||
ATOM 2 3 -0.175 -1.620 0.323 1.001287.64 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.391 -1.758 -1.321 1.002612.83 AA | ||
ATOM 2 3 -0.151 -1.599 0.311 1.002612.83 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.384 -1.762 -1.322 1.003843.68 AA | ||
ATOM 2 3 -0.136 -1.581 0.296 1.003843.68 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.380 -1.761 -1.318 1.004795.50 AA | ||
ATOM 2 3 -0.131 -1.566 0.281 1.004795.50 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.378 -1.758 -1.310 1.005377.95 AA | ||
ATOM 2 3 -0.131 -1.558 0.270 1.005377.95 AA | ||
CONECT 1 2 | ||
ENDMDL | ||
ATOM 1 2 -0.377 -1.754 -1.301 1.005551.85 AA | ||
ATOM 2 3 -0.133 -1.557 0.266 1.005551.85 AA | ||
CONECT 1 2 | ||
ENDMDL |
4 changes: 4 additions & 0 deletions
4
src/gromacs/gmxana/fda/tests/data/alagly_binary/FDAGraphTest.ref8.pdb
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,4 @@ | ||
ATOM 1 2 -0.000 0.060 -0.490 1.003437.44 AA | ||
ATOM 2 3 3.700 0.320 -1.170 1.003437.44 AA | ||
CONECT 1 2 | ||
ENDMDL |
68 changes: 22 additions & 46 deletions
68
src/gromacs/gmxana/fda/tests/data/alagly_binary/index.ndx
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,46 +1,22 @@ | ||
[ all ] | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
|
||
[ ala ] | ||
1 | ||
2 | ||
3 | ||
4 | ||
5 | ||
6 | ||
7 | ||
8 | ||
9 | ||
10 | ||
11 | ||
12 | ||
|
||
[ gly ] | ||
13 | ||
14 | ||
15 | ||
16 | ||
17 | ||
18 | ||
19 | ||
20 | ||
|
||
[ System ] | ||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ||
16 17 18 19 20 | ||
[ Protein ] | ||
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ||
16 17 18 19 20 | ||
[ Protein-H ] | ||
1 5 7 11 12 13 15 18 19 20 | ||
[ C-alpha ] | ||
1 1 5 15 | ||
[ Backbone ] | ||
1 5 11 13 15 18 | ||
[ MainChain ] | ||
1 5 11 12 13 15 18 19 20 | ||
[ MainChain+Cb ] | ||
1 5 7 11 12 13 15 18 19 20 | ||
[ MainChain+H ] | ||
1 2 3 4 5 11 12 13 14 15 18 19 20 | ||
[ SideChain ] | ||
6 7 8 9 10 16 17 | ||
[ SideChain-H ] | ||
7 |
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
Oops, something went wrong.