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
72616a07
Commit
72616a07
authored
Dec 05, 2017
by
Mia Evans
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing a bug on in the parsing of the ZDOCK format
parent
cf37830c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
8 deletions
+6
-8
fileIO.c
src/fileIO.c
+6
-8
No files found.
src/fileIO.c
View file @
72616a07
...
@@ -284,7 +284,9 @@ struct docking_results* getDataForComplex_ZDOCK(){
...
@@ -284,7 +284,9 @@ struct docking_results* getDataForComplex_ZDOCK(){
break
;
break
;
}
}
numberOfConf
++
;
numberOfConf
++
;
numberOfConf
=
(
int
)
buf3
;
if
((
int
)
buf3
>
numberOfConf
){
numberOfConf
=
(
int
)
buf3
;
}
}
}
numberOfConf
--
;
numberOfConf
--
;
rewind
(
condFile_stream
);
rewind
(
condFile_stream
);
...
@@ -684,7 +686,7 @@ struct pdb_values* readPDB(char* protein) {
...
@@ -684,7 +686,7 @@ struct pdb_values* readPDB(char* protein) {
strncpy
(
buf2
,
buf
,
6
);
strncpy
(
buf2
,
buf
,
6
);
buf2
[
6
]
=
'\0'
;
buf2
[
6
]
=
'\0'
;
deblank
(
buf2
);
deblank
(
buf2
);
if
(
strcmp
(
"ATOM"
,
buf2
)
==
0
||
strcmp
(
"HETATM"
,
buf2
)
==
0
){
if
(
strcmp
(
"ATOM"
,
buf2
)
==
0
){
/* get the residue ID */
/* get the residue ID */
strncpy
(
buf2
,
buf
+
22
,
5
);
strncpy
(
buf2
,
buf
+
22
,
5
);
buf2
[
5
]
=
'\0'
;
buf2
[
5
]
=
'\0'
;
...
@@ -711,7 +713,7 @@ struct pdb_values* readPDB(char* protein) {
...
@@ -711,7 +713,7 @@ struct pdb_values* readPDB(char* protein) {
strncpy
(
buf2
,
buf
,
6
);
strncpy
(
buf2
,
buf
,
6
);
buf2
[
6
]
=
'\0'
;
buf2
[
6
]
=
'\0'
;
deblank
(
buf2
);
deblank
(
buf2
);
if
(
strcmp
(
"ATOM"
,
buf2
)
!=
0
&&
strcmp
(
"HETATM"
,
buf2
)
!=
0
){
if
(
strcmp
(
"ATOM"
,
buf2
)
!=
0
){
continue
;
continue
;
}
}
strncpy
(
bufID
,
buf
+
22
,
5
);
strncpy
(
bufID
,
buf
+
22
,
5
);
...
@@ -737,10 +739,6 @@ struct pdb_values* readPDB(char* protein) {
...
@@ -737,10 +739,6 @@ struct pdb_values* readPDB(char* protein) {
/* atom chain */
/* atom chain */
pdb_prot
->
residues
[
curRes
].
chain
=
buf
[
21
];
pdb_prot
->
residues
[
curRes
].
chain
=
buf
[
21
];
/* if it is an HETATM */
if
(
strcmp
(
"HETATM"
,
buf2
)
==
0
)
pdb_prot
->
residues
[
curRes
].
isHET
=
1
;
}
}
/* atom type */
/* atom type */
...
@@ -791,7 +789,7 @@ struct pdb_values* readPDB(char* protein) {
...
@@ -791,7 +789,7 @@ struct pdb_values* readPDB(char* protein) {
}
}
curAtom
++
;
curAtom
++
;
pdb_prot
->
residues
[
curRes
].
nbAtom
++
;
pdb_prot
->
residues
[
curRes
].
nbAtom
=
curAtom
;
pdb_prot
->
nbAtom
++
;
pdb_prot
->
nbAtom
++
;
}
}
...
...
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