Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
INTBuilder
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chloe Dequeker
INTBuilder
Commits
1c912015
Commit
1c912015
authored
Jan 02, 2017
by
Chloe Dequeker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZDOCK : init_ZDOCK function
parent
88c34cb4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
2 deletions
+28
-2
INTBuilder.c
src/INTBuilder.c
+7
-0
rotation.c
src/rotation.c
+17
-2
rotation.h
src/rotation.h
+4
-0
No files found.
src/INTBuilder.c
View file @
1c912015
...
@@ -370,6 +370,13 @@ int main(int argc, char** argv){
...
@@ -370,6 +370,13 @@ int main(int argc, char** argv){
dock_res
->
trans_Y
[
i
],
dock_res
->
trans_Z
[
i
],
dock_res
->
trans_Y
[
i
],
dock_res
->
trans_Z
[
i
],
dock_res
->
alpha
[
i
],
dock_res
->
beta
[
i
],
dock_res
->
alpha
[
i
],
dock_res
->
beta
[
i
],
dock_res
->
gamma
[
i
]);
dock_res
->
gamma
[
i
]);
}
else
if
(
ZDOCK
){
init_ZDOCK
(
&
pdbR
,
&
pdbL
);
newPDB
=
rotate_ZDOCK
(
pdbL
,
newPDB
,
dock_res
->
trans_X
[
i
],
dock_res
->
trans_Y
[
i
],
dock_res
->
trans_Z
[
i
],
dock_res
->
alpha
[
i
],
dock_res
->
beta
[
i
],
dock_res
->
gamma
[
i
]);
}
else
{
}
else
{
newPDB
=
rotate_global
(
pdbL
,
pdbR
,
newPDB
,
dock_res
->
distCenters
[
i
],
newPDB
=
rotate_global
(
pdbL
,
pdbR
,
newPDB
,
dock_res
->
distCenters
[
i
],
dock_res
->
theta
[
i
],
dock_res
->
phi
[
i
],
dock_res
->
theta
[
i
],
dock_res
->
phi
[
i
],
...
...
src/rotation.c
View file @
1c912015
...
@@ -3,8 +3,23 @@
...
@@ -3,8 +3,23 @@
#include <string.h>
#include <string.h>
#include "struct.h"
#include "struct.h"
#include "allocate.h"
#include "allocate.h"
#include "rotation.h"
void
init_ZDOCK
(
struct
pdb_values
**
pdbR_addr
,
struct
pdb_values
**
pdbL_addr
){
struct
pdb_values
*
pdbR
=
*
pdbR_addr
;
struct
pdb_values
*
pdbL
=
*
pdbL_addr
;
struct
pdb_values
*
newPDB
=
NULL
;
newPDB
=
rotate_ZDOCK
(
pdbR
,
newPDB
,
ZDOCK_REC_X_TRANS
,
ZDOCK_REC_Y_TRANS
,
ZDOCK_REC_Z_TRANS
,
ZDOCK_REC_A_ROT
,
ZDOCK_REC_B_ROT
,
ZDOCK_REC_G_ROT
);
pdbR
=
newPDB
;
newPDB
=
NULL
;
// TODO : free pdbR
newPDB
=
rotate_ZDOCK
(
pdbL
,
newPDB
,
ZDOCK_LIG_X_TRANS
,
ZDOCK_LIG_Y_TRANS
,
ZDOCK_LIG_Z_TRANS
,
ZDOCK_LIG_A_ROT
,
ZDOCK_LIG_B_ROT
,
ZDOCK_LIG_G_ROT
);
pdbL
=
newPDB
;
newPDB
=
NULL
;
// TODO : free pdbL
}
...
...
src/rotation.h
View file @
1c912015
...
@@ -12,4 +12,8 @@ void sphericToxyz(float *x, float *y, float *z, float x0, float y0, float z0, fl
...
@@ -12,4 +12,8 @@ void sphericToxyz(float *x, float *y, float *z, float x0, float y0, float z0, fl
struct
pdb_values
*
rotate_global
(
struct
pdb_values
*
pdb
,
struct
pdb_values
*
pdbR
,
struct
pdb_values
*
newPDB
,
float
R
,
float
theta
,
float
phi
,
float
alpha
,
float
beta
,
float
gamma
);
struct
pdb_values
*
rotate_global
(
struct
pdb_values
*
pdb
,
struct
pdb_values
*
pdbR
,
struct
pdb_values
*
newPDB
,
float
R
,
float
theta
,
float
phi
,
float
alpha
,
float
beta
,
float
gamma
);
struct
pdb_values
*
rotate_HEX
(
struct
pdb_values
*
pdb
,
struct
pdb_values
*
newPDB
,
float
trans_X
,
float
trans_Y
,
float
trans_Z
,
float
alpha
,
float
beta
,
float
gamma
);
struct
pdb_values
*
rotate_HEX
(
struct
pdb_values
*
pdb
,
struct
pdb_values
*
newPDB
,
float
trans_X
,
float
trans_Y
,
float
trans_Z
,
float
alpha
,
float
beta
,
float
gamma
);
struct
pdb_values
*
rotate_ZDOCK
(
struct
pdb_values
*
pdb
,
struct
pdb_values
*
newPDB
,
float
trans_X
,
float
trans_Y
,
float
trans_Z
,
float
alpha
,
float
beta
,
float
gamma
);
void
init_ZDOCK
(
struct
pdb_values
**
pdbR_addr
,
struct
pdb_values
**
pdbL_addr
);
#endif
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment