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
3f2e07b6
Commit
3f2e07b6
authored
Oct 14, 2016
by
Chloe Dequeker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modif name of output. Only one file per run
parent
88b22157
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
13 deletions
+39
-13
INTBuilder.c
src/INTBuilder.c
+2
-13
allocate.c
src/allocate.c
+2
-0
param.c
src/param.c
+33
-0
struct.h
src/struct.h
+2
-0
No files found.
src/INTBuilder.c
View file @
3f2e07b6
...
@@ -170,31 +170,20 @@ void getInterface(struct pdb_values* pdbR, struct pdb_values* pdbL, int numConf)
...
@@ -170,31 +170,20 @@ void getInterface(struct pdb_values* pdbR, struct pdb_values* pdbL, int numConf)
}
}
}
}
FILE
*
ligOut
=
NULL
;
FILE
*
recOut
=
NULL
;
char
buf
[
500
];
sprintf
(
buf
,
"%s/%s-%s_lig_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
numConf
);
ligOut
=
fopen
(
buf
,
"w"
);
for
(
i
=
0
;
i
<
nbCandL
;
i
++
){
for
(
i
=
0
;
i
<
nbCandL
;
i
++
){
if
(
t_candidateL
[
i
]
->
isCandidate
==
1
)
if
(
t_candidateL
[
i
]
->
isCandidate
==
1
)
fprintf
(
ligOut
,
"%s %s %c
\n
"
,
t_candidateL
[
i
]
->
resName
,
t_candidateL
[
i
]
->
idRes
,
t_candidateL
[
i
]
->
chain
);
fprintf
(
outputFile_lig
,
"%s %s %c
\n
"
,
t_candidateL
[
i
]
->
resName
,
t_candidateL
[
i
]
->
idRes
,
t_candidateL
[
i
]
->
chain
);
}
}
fclose
(
ligOut
);
sprintf
(
buf
,
"%s/%s-%s_rec_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
numConf
);
recOut
=
fopen
(
buf
,
"w"
);
for
(
i
=
0
;
i
<
nbCandR
;
i
++
){
for
(
i
=
0
;
i
<
nbCandR
;
i
++
){
if
(
t_candidateR
[
i
]
->
isCandidate
==
1
)
if
(
t_candidateR
[
i
]
->
isCandidate
==
1
)
fprintf
(
recOut
,
"%s %s %c
\n
"
,
t_candidateR
[
i
]
->
resName
,
t_candidateR
[
i
]
->
idRes
,
t_candidateR
[
i
]
->
chain
);
fprintf
(
outputFile_rec
,
"%s %s %c
\n
"
,
t_candidateR
[
i
]
->
resName
,
t_candidateR
[
i
]
->
idRes
,
t_candidateR
[
i
]
->
chain
);
}
}
fclose
(
recOut
);
free
(
t_candidateL
);
free
(
t_candidateL
);
free
(
t_candidateR
);
free
(
t_candidateR
);
}
}
//void writeInterface(struct )
struct
docking_results
*
getDataForComplex
(){
struct
docking_results
*
getDataForComplex
(){
...
...
src/allocate.c
View file @
3f2e07b6
...
@@ -135,6 +135,8 @@ void free_argLine(){
...
@@ -135,6 +135,8 @@ void free_argLine(){
free
(
pdbDir
);
free
(
pdbDir
);
free
(
receptor
);
free
(
receptor
);
free
(
ligand
);
free
(
ligand
);
fclose
(
outputFile_rec
);
fclose
(
outputFile_lig
);
if
(
constructPDB
){
if
(
constructPDB
){
free
(
outputPDB
);
free
(
outputPDB
);
...
...
src/param.c
View file @
3f2e07b6
...
@@ -27,6 +27,7 @@ void print_usage() {
...
@@ -27,6 +27,7 @@ void print_usage() {
struct
argLine
*
parseLineOfArgument
(
int
argc
,
char
**
argv
){
struct
argLine
*
parseLineOfArgument
(
int
argc
,
char
**
argv
){
int
i
=
0
,
print_help
=
0
;
int
i
=
0
,
print_help
=
0
;
char
buf
[
500
];
struct
argLine
*
paramVals
=
NULL
;
struct
argLine
*
paramVals
=
NULL
;
...
@@ -41,6 +42,8 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
...
@@ -41,6 +42,8 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
pdbDir
=
NULL
;
pdbDir
=
NULL
;
receptor
=
NULL
;
receptor
=
NULL
;
ligand
=
NULL
;
ligand
=
NULL
;
outputFile_rec
=
NULL
;
outputFile_lig
=
NULL
;
for
(
i
=
1
;
i
<
argc
;
i
++
){
for
(
i
=
1
;
i
<
argc
;
i
++
){
if
(
strcmp
(
argv
[
i
],
"-dockingFile"
)
==
0
){
if
(
strcmp
(
argv
[
i
],
"-dockingFile"
)
==
0
){
...
@@ -152,5 +155,35 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
...
@@ -152,5 +155,35 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
strcpy
(
outputPDB
,
"./"
);
strcpy
(
outputPDB
,
"./"
);
}
}
if
(
target_conf
>
0
){
sprintf
(
buf
,
"%s/%s-%s_rec_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
if
(
outputFile_rec
==
NULL
){
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
}
sprintf
(
buf
,
"%s/%s-%s_lig_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
if
(
outputFile_lig
==
NULL
){
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
else
{
sprintf
(
buf
,
"%s/%s-%s_rec_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
if
(
outputFile_rec
==
NULL
){
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
}
sprintf
(
buf
,
"%s/%s-%s_lig_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
if
(
outputFile_lig
==
NULL
){
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
return
paramVals
;
return
paramVals
;
}
}
src/struct.h
View file @
3f2e07b6
...
@@ -20,6 +20,8 @@ char* ligand;
...
@@ -20,6 +20,8 @@ char* ligand;
char
*
dockingFile
;
char
*
dockingFile
;
char
*
outputDir
;
char
*
outputDir
;
char
*
outputPDB
;
char
*
outputPDB
;
FILE
*
outputFile_rec
;
FILE
*
outputFile_lig
;
#define CDR 0.017453293
#define CDR 0.017453293
#define NB_MAX_ATOM_PER_RES 20
#define NB_MAX_ATOM_PER_RES 20
#define DIST_FOR_CONTACT 10
#define DIST_FOR_CONTACT 10
...
...
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