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
b20bc0f0
Commit
b20bc0f0
authored
Dec 02, 2016
by
Chloe Dequeker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modif clash system : per res
parent
a99f026d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
INTBuilder.c
src/INTBuilder.c
+4
-2
struct.h
src/struct.h
+1
-1
No files found.
src/INTBuilder.c
View file @
b20bc0f0
...
...
@@ -112,7 +112,7 @@ void getInterface(struct pdb_values* pdbR, struct pdb_values* pdbL, int confID){
* final quadratic complexity
*/
int
i
=
0
,
j
=
0
,
k
=
0
,
l
=
0
;
int
i
=
0
,
j
=
0
,
k
=
0
,
l
=
0
,
isClashed
=
0
;
int
oldCandL
=
-
1
,
oldCandR
=
-
1
;
float
x1
=
0
,
y1
=
0
,
z1
=
0
;
float
x2
=
0
,
y2
=
0
,
z2
=
0
;
...
...
@@ -194,6 +194,7 @@ void getInterface(struct pdb_values* pdbR, struct pdb_values* pdbL, int confID){
/* For each candidate residue of the receptor */
for
(
i
=
0
;
i
<
nbCandR
;
i
++
){
isClashed
=
0
;
for
(
j
=
0
;
j
<
t_candidateR
[
i
]
->
nbAtom
;
j
++
){
x1
=
t_candidateR
[
i
]
->
x
[
j
];
y1
=
t_candidateR
[
i
]
->
y
[
j
];
...
...
@@ -208,8 +209,9 @@ void getInterface(struct pdb_values* pdbR, struct pdb_values* pdbL, int confID){
dist
=
sqrt
((
x1
-
x2
)
*
(
x1
-
x2
)
+
(
y1
-
y2
)
*
(
y1
-
y2
)
+
(
z1
-
z2
)
*
(
z1
-
z2
));
if
(
dist
<
DIST_FOR_CLASH
){
if
(
!
force
)
if
(
!
force
&&
!
isClashed
)
clash
++
;
isClashed
=
1
;
if
(
clash
>=
TOO_MANY_CLASHES
){
break
;
}
...
...
src/struct.h
View file @
b20bc0f0
...
...
@@ -11,7 +11,7 @@
#define COEF_DEGREE_TO_RADIAN 0.017453293
/* Coefficient to convert degrees to radians */
#define NB_MAX_ATOM_PER_RES 100
/* No residue has more atoms than that */
#define TOO_MANY_CLASHES
4
0
/* If not forcing, program will skip conformation after
#define TOO_MANY_CLASHES
2
0
/* If not forcing, program will skip conformation after
* this number of clashes */
#define DIST_FOR_CONTACT 5
/* Distance under which we consider
* two residues are in contact */
...
...
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