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
13dcbfcd
Commit
13dcbfcd
authored
Oct 31, 2016
by
Chloe Dequeker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
do not output docking interface option
parent
82c1835f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
64 additions
and
51 deletions
+64
-51
INTBuilder.c
src/INTBuilder.c
+7
-5
allocate.c
src/allocate.c
+5
-2
param.c
src/param.c
+51
-44
struct.h
src/struct.h
+1
-0
No files found.
src/INTBuilder.c
View file @
13dcbfcd
...
@@ -577,11 +577,13 @@ int main(int argc, char** argv){
...
@@ -577,11 +577,13 @@ int main(int argc, char** argv){
dalpha
,
dbeta
,
dgamma
,
dock_res
,
i
);
dalpha
,
dbeta
,
dgamma
,
dock_res
,
i
);
/* Write the number of the conformation and get the interface */
/* Write the number of the conformation and get the interface */
fprintf
(
outputFile_lig
,
"%d "
,
i
);
if
(
!
doNotOutputINT
){
fprintf
(
outputFile_rec
,
"%d "
,
i
);
fprintf
(
outputFile_lig
,
"%d "
,
i
);
getInterface
(
pdbR
,
newPDB
);
fprintf
(
outputFile_rec
,
"%d "
,
i
);
fprintf
(
outputFile_lig
,
"
\n
"
);
getInterface
(
pdbR
,
newPDB
);
fprintf
(
outputFile_rec
,
"
\n
"
);
fprintf
(
outputFile_lig
,
"
\n
"
);
fprintf
(
outputFile_rec
,
"
\n
"
);
}
if
(
constructPDB
){
if
(
constructPDB
){
writePDB
(
newPDB
,
ligand
,
i
);
writePDB
(
newPDB
,
ligand
,
i
);
...
...
src/allocate.c
View file @
13dcbfcd
...
@@ -145,8 +145,11 @@ void free_argLine(){
...
@@ -145,8 +145,11 @@ void free_argLine(){
free
(
pdbDir
);
free
(
pdbDir
);
free
(
receptor
);
free
(
receptor
);
free
(
ligand
);
free
(
ligand
);
fclose
(
outputFile_rec
);
fclose
(
outputFile_lig
);
if
(
!
doNotOutputINT
){
fclose
(
outputFile_rec
);
fclose
(
outputFile_lig
);
}
if
(
!
complexPDB
){
if
(
!
complexPDB
){
free
(
dockingFile
);
free
(
dockingFile
);
...
...
src/param.c
View file @
13dcbfcd
...
@@ -12,6 +12,11 @@ void print_usage() {
...
@@ -12,6 +12,11 @@ void print_usage() {
"Mandatory
\n
"
"Mandatory
\n
"
"=========
\n\n
"
"=========
\n\n
"
"<-dockingFile> MAXDo file that needs to be analysed
\n
"
"<-dockingFile> MAXDo file that needs to be analysed
\n
"
"OR
\n
"
"<-complex> This option means that we look at two PDBs instead of looking
\n
"
" at the dockingFile. Both PBDs for '-rec' and '-lig' must be in
\n
"
" '-pdbDir'
\n
"
"--
\n
"
"<-pdbDir> PDB directory containing the name of the receptor/ligand .pdb
\n
"
"<-pdbDir> PDB directory containing the name of the receptor/ligand .pdb
\n
"
"<-rec> name of the receptor
\n
"
"<-rec> name of the receptor
\n
"
"<-lig> name of the ligand
\n
"
"<-lig> name of the ligand
\n
"
...
@@ -23,9 +28,6 @@ void print_usage() {
...
@@ -23,9 +28,6 @@ void print_usage() {
" If nothing is specified, the current directory is used
\n
"
" If nothing is specified, the current directory is used
\n
"
"<-pose> Desired conformation. Default will compute all conformations
\n
"
"<-pose> Desired conformation. Default will compute all conformations
\n
"
"<-HCMD2> Means that the docking file is in the HCMD2 MAXDo format
\n
"
"<-HCMD2> Means that the docking file is in the HCMD2 MAXDo format
\n
"
"<-complex> This option means that we look at two PDBs instead of looking
\n
"
" at the dockingFile. Both PBDs for '-rec' and '-lig' must be in
\n
"
" '-pdbDir'
\n
"
);
);
}
}
...
@@ -46,6 +48,7 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
...
@@ -46,6 +48,7 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
target_conf
=
-
1
;
target_conf
=
-
1
;
HCMD2
=
0
;
HCMD2
=
0
;
complexPDB
=
0
;
complexPDB
=
0
;
doNotOutputINT
=
0
;
outputDir
=
NULL
;
outputDir
=
NULL
;
outputPDB
=
NULL
;
outputPDB
=
NULL
;
verbose_file
=
NULL
;
verbose_file
=
NULL
;
...
@@ -108,6 +111,8 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
...
@@ -108,6 +111,8 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
}
}
}
else
if
(
strcmp
(
argv
[
i
],
"-HCMD2"
)
==
0
){
}
else
if
(
strcmp
(
argv
[
i
],
"-HCMD2"
)
==
0
){
HCMD2
=
1
;
HCMD2
=
1
;
}
else
if
(
strcmp
(
argv
[
i
],
"-noOutput"
)
==
0
){
doNotOutputINT
=
1
;
}
else
if
(
strcmp
(
argv
[
i
],
"-complex"
)
==
0
){
}
else
if
(
strcmp
(
argv
[
i
],
"-complex"
)
==
0
){
complexPDB
=
1
;
complexPDB
=
1
;
}
else
if
(
strcmp
(
argv
[
i
],
"-h"
)
==
0
||
}
else
if
(
strcmp
(
argv
[
i
],
"-h"
)
==
0
||
...
@@ -166,51 +171,53 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
...
@@ -166,51 +171,53 @@ struct argLine* parseLineOfArgument(int argc, char** argv){
strcpy
(
outputPDB
,
"./"
);
strcpy
(
outputPDB
,
"./"
);
}
}
if
(
target_conf
>
0
){
if
(
!
doNotOutputINT
){
sprintf
(
buf
,
"%s/%s-%s_rec_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
if
(
target_conf
>
0
){
outputFile_rec
=
fopen
(
buf
,
"w"
);
sprintf
(
buf
,
"%s/%s-%s_rec_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
if
(
outputFile_rec
==
NULL
){
outputFile_rec
=
fopen
(
buf
,
"w"
);
perror
(
"fopen"
);
if
(
outputFile_rec
==
NULL
){
exit
(
EXIT_FAILURE
);
perror
(
"fopen"
);
}
exit
(
EXIT_FAILURE
);
}
sprintf
(
buf
,
"%s/%s-%s_lig_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
sprintf
(
buf
,
"%s/%s-%s_lig_%d_dockinter.txt"
,
outputDir
,
receptor
,
ligand
,
target_conf
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
if
(
outputFile_lig
==
NULL
){
if
(
outputFile_lig
==
NULL
){
perror
(
"fopen"
);
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
else
if
(
complexPDB
){
}
else
if
(
complexPDB
){
sprintf
(
buf
,
"%s/%s-%s_rec_0_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
sprintf
(
buf
,
"%s/%s-%s_rec_0_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
if
(
outputFile_rec
==
NULL
){
if
(
outputFile_rec
==
NULL
){
perror
(
"fopen"
);
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
sprintf
(
buf
,
"%s/%s-%s_lig_0_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
sprintf
(
buf
,
"%s/%s-%s_lig_0_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
if
(
outputFile_lig
==
NULL
){
if
(
outputFile_lig
==
NULL
){
perror
(
"fopen"
);
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
else
{
}
else
{
sprintf
(
buf
,
"%s/%s-%s_rec_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
sprintf
(
buf
,
"%s/%s-%s_rec_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
outputFile_rec
=
fopen
(
buf
,
"w"
);
if
(
outputFile_rec
==
NULL
){
if
(
outputFile_rec
==
NULL
){
perror
(
"fopen"
);
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
}
sprintf
(
buf
,
"%s/%s-%s_lig_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
sprintf
(
buf
,
"%s/%s-%s_lig_dockinter.txt"
,
outputDir
,
receptor
,
ligand
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
outputFile_lig
=
fopen
(
buf
,
"w"
);
if
(
outputFile_lig
==
NULL
){
if
(
outputFile_lig
==
NULL
){
perror
(
"fopen"
);
perror
(
"fopen"
);
exit
(
EXIT_FAILURE
);
exit
(
EXIT_FAILURE
);
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
}
outputFile_lig
=
fopen
(
buf
,
"w"
);
}
}
...
...
src/struct.h
View file @
13dcbfcd
...
@@ -22,6 +22,7 @@ int constructPDB; /* 1 if we should build the PDB */
...
@@ -22,6 +22,7 @@ int constructPDB; /* 1 if we should build the PDB */
int
target_conf
;
/* 1 if we are specific to one conformation */
int
target_conf
;
/* 1 if we are specific to one conformation */
int
HCMD2
;
/* 1 if this is HCMD2 format */
int
HCMD2
;
/* 1 if this is HCMD2 format */
int
complexPDB
;
/* 1 if we are computing the interface of a given complex */
int
complexPDB
;
/* 1 if we are computing the interface of a given complex */
int
doNotOutputINT
;
/* 1 if we don't want to output the interface */
FILE
*
verbose_file
;
/* If verbose mode, the output file */
FILE
*
verbose_file
;
/* If verbose mode, the output file */
char
*
pdbDir
;
/* Directory containing the PDBs */
char
*
pdbDir
;
/* Directory containing the PDBs */
char
*
receptor
;
/* Name of the receptor */
char
*
receptor
;
/* Name of the receptor */
...
...
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