[med-svn] [Git][med-team/king-probe][upstream] New upstream version 02.18

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Oct 6 08:14:38 BST 2021



Andreas Tille pushed to branch upstream at Debian Med / king-probe


Commits:
69dfa6ed by Andreas Tille at 2021-10-06T09:05:09+02:00
New upstream version 02.18
- - - - -


4 changed files:

- + CMakeLists.txt
- atomprops.h
- autobondrot.c
- probe.c


Changes:

=====================================
CMakeLists.txt
=====================================
@@ -0,0 +1,40 @@
+cmake_minimum_required(VERSION 3.10.0)
+project(probe)
+
+if (WIN32)
+  add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+endif ()
+
+set(probe_SOURCES
+	abin.c
+	atomprops.c
+	autobondrot.c
+	dots.c
+	geom3d.c
+	hybrid_36_c.c
+	readPDBrecs.c
+	parse.c
+	select.c
+	stdconntable.c
+	utility.c
+	probe.c
+)
+
+set(probe_HEADERS
+	abin.h
+	atomprops.h
+	autobondrot.h
+	dots.h
+	geom3d.h
+	hybrid_36_c.h
+	parse.h
+	readPDBrecs.h
+	select.h
+	stdconntable.h
+	utility.h
+)
+
+add_executable(probe ${probe_SOURCES} ${probe_HEADERS})
+if (NOT WIN32)
+  target_link_libraries(probe m)
+endif()


=====================================
atomprops.h
=====================================
@@ -93,6 +93,9 @@ enum atomIdentifiers {
 #define METALIC_ATOM_FLAG (1 <<  0) /*atomProp AtomTbl flags: element features*/
 #define   IONIC_ATOM_FLAG (1 <<  1) /*dcr041007 partial, now on halides*/
 
+/* Explicit vdW radius of carbonyl (C=O, atomC) entry. */
+#define ATOMC_EXPLICIT_VDW (1.70)
+
 #ifdef INIT_ATOM_TABLE
 /* For non-metals, explicit VDW radii from                      */
 /* Gavezzotti, J. Am. Chem. Soc. (1983) 105, 5220-5225.         */
@@ -120,7 +123,7 @@ atomProp AtomTbl[NUMATOMTYPES] = { /* noAtom must be first */
    {atomHarom,   1, "Har",  1.05, 1.00, 0.00, 0.30, "grey",   0},
    {atomHpolar,  1, "Hpol", 1.05, 1.00, 0.00, 0.30, "grey",   0},
    {atomHOd,     1, "HOd",  1.05, 1.00, 0.00, 0.30, "grey",   0},/*hb-only-dummy*/
-   {atomC,       6, "C",    1.70, 1.70, 1.90, 0.77, "white",  0},
+   {atomC,       6, "C",    ATOMC_EXPLICIT_VDW, ATOMC_EXPLICIT_VDW, 1.90, 0.77, "white",  0},
    {atomCarom,   6, "Car",  1.75, 1.75, 1.90, 0.77, "white",  0},
    {atomN,       7, "N",    1.55, 1.55, 1.70, 0.70, "sky",    0},
    {atomO,       8, "O",    1.40, 1.40, 1.50, 0.66, "red",    0},


=====================================
autobondrot.c
=====================================
@@ -140,7 +140,7 @@ void scanXDBinputText(xformDatabase* xdb, FILE *inf, FILE *outf,
 	 }
 	 else if (s[0] == '@') { /* include file */
 	    FILE *if2 = NULL;
-	    if2 = fopen(s+1, "r");
+	    if2 = fopen(s+1, "rb");
 	    if (if2) { /* recursive call */
 	       fprintf(outf, "%s%s\n", cch, s);
 


=====================================
probe.c
=====================================
@@ -51,7 +51,8 @@
 
 #define INLINE_FOR_SPEED 1
 
-static char *versionString = "probe: version 2.16.160404, Copyright 1996-2016, J. Michael Word";
+static char* versionString = "probe: version 2.18.211005, Copyright 1996-2016, J. Michael Word; 2021 Richardson Lab";
+/*static char *versionString = "probe: version 2.16.160404, Copyright 1996-2016, J. Michael Word";*/
 /*static char *versionString = "probe: version 2.16.130520, Copyright 1996-2013, J. Michael Word";*/
 /*"probe: version 2.15.130427, merged probeVector, Copyright 1996-2013, J. Michael Word";*/
 /*"probe: version 2.14.130116, Copyright 1996-2013, J. Michael Word";*/
@@ -70,7 +71,8 @@ static char *versionString = "probe: version 2.16.160404, Copyright 1996-2016, J
 /*"probe: version 2.10.031014dcr041101, Copyright 1996-2004, J. Michael Word";*/
 /*"probe: version 2.10  10/14/2003, Copyright 1996-2003, J. Michael Word";*/
    /*jmw & dcr agreement on version name and maintenance by dcr 041110*/
-static char *shortVersionStr = "probe.2.16.160404";
+static char* shortVersionStr = "probe.2.18.211005";
+/*static char *shortVersionStr = "probe.2.16.160404";*/
 /*static char *shortVersionStr = "probe.2.16.130520";*/
 /*static char *shortVersionStr = "probe.2.15.130427";*/
 /*static char *shortVersionStr = "probe.2.14.130116";*/
@@ -149,7 +151,7 @@ static float Min_regular_hb_cutoff=0.6; /* globals controling hbond cutoff */
 static float Min_charged_hb_cutoff=0.8; /* defaults set in processCommandline() */
 static float RadScaleFactor       =1.0; /* global VDW radius scale Factor r*f */
 static float RadScaleOffset       =0.0; /* global VDW radius scale Offset r+o */
-static float CORadScale   =(1.65/1.75); /* global VDW radius scale Factor for C=O */
+static float CORadScale   =(1.65/ATOMC_EXPLICIT_VDW); /* global VDW radius scale Factor for C=O */
 static float GAPweight            =0.25;/* global raw GAP score weight */
 static float BUMPweight           =10.0;/* global raw BUMP score scale Factor */
 static float HBweight             = 4.0;/* global raw HBond score scale Factor */
@@ -297,7 +299,7 @@ int mainProbeProc(int argc, char **argv, FILE *outf)
 	    note(message);
 	 }
 	 sprintf(message, "C=O carbon VDW scaled by %.3f to a radius of %g A",
-			   CORadScale, CORadScale*1.75);
+			   CORadScale, CORadScale* ATOMC_EXPLICIT_VDW);
 	 note(message);
 	 if (rawOutput || countDots) {
 	    sprintf(message, "Score Weights: gapWt=%g, bumpWt=%g, HBWt=%g",
@@ -1899,7 +1901,7 @@ atom* processCommandline(int argc, char **argv, int *method, region *bboxA,
 	       }
 	       else {
 		  file++;
-		  inf = fopen(p, "r"); /*p holds autobondrot input file name*/
+		  inf = fopen(p, "rb"); /*p holds autobondrot input file name*/
 		  if (inf) {
 		     if (mabip) {
 			mabip->filenum  = file;
@@ -1965,7 +1967,7 @@ atom* processCommandline(int argc, char **argv, int *method, region *bboxA,
     else
     {
        file++;
-       inf = fopen(p, "r");
+       inf = fopen(p, "rb");
        if (inf)
        {
           strcpy(inputfilename,p); /*dcr041023*/
@@ -1992,7 +1994,7 @@ atom* processCommandline(int argc, char **argv, int *method, region *bboxA,
          DoMcMc = TRUE;
          DoHet  = TRUE;
          file++;
-         inf = fopen(p, "r");
+         inf = fopen(p, "rb");
          if (inf)
          {
             strcpy(inputfilename,p); /*dcr041023*/
@@ -2242,7 +2244,7 @@ void ProcessResInfo(chainEndData_t *ed, atom *a)
       if (!strcmp(a->atomname, " O  ")) { /* last Os[0-7]  (cleared each res)*/
 	 for (i = 0; i < 8; i++) {
 	    if (ed->ambigO[i] == NULL) {
-	       if ((i == 0)|| (ed->ambigN[i-1]->r == a->r)) {
+	       if ((i == 0)|| (ed->ambigO[i-1]->r == a->r)) {
 		  ed->ambigO[i] = a;
 	       }
 	       break;
@@ -6516,6 +6518,8 @@ fprintf(outf,"2.15.130427 version number change for merged code! \n");
 fprintf(outf,"2.16.130509 jjh added support for segid instead of chaind\n");
 fprintf(outf,"2.16.130520 jjh fixed bug in segid handling\n");
 fprintf(outf,"04/16/2015 - SJ added the -sepworse flag, if true will seperate the overlaps of >= 0.4 and overlaps of >=0.5. This is default by false. Had to change NODEWIDTH value (see probe.h)\n One can change the 0.5 cutoff for worse overlap by specifying the flag DIVWorse\n");
+fprintf(outf,"09/24/2021 - RMT Version 2.17 Fixed crash when finding ambiguous Oxygens\n");
+fprintf(outf,"10/05/2021 - RMT Version 2.18 Makes default C=O radius scale depend on table value\n");
 
 exit(0);
 



View it on GitLab: https://salsa.debian.org/med-team/king-probe/-/commit/69dfa6ed8b3dd0484d099a4a885356cc40636149

-- 
View it on GitLab: https://salsa.debian.org/med-team/king-probe/-/commit/69dfa6ed8b3dd0484d099a4a885356cc40636149
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20211006/8b6e07d2/attachment-0001.htm>


More information about the debian-med-commit mailing list