Gentoo Archives: gentoo-commits

From: Horea Christian <horea.christ@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-chemistry/shiftx2/, sci-chemistry/shiftx2/files/
Date: Mon, 28 Sep 2020 08:58:30
Message-Id: 1601282707.0c41dce4e820d00f5ec7ada1bd8a796c9849c2f4.chymera@gentoo
1 commit: 0c41dce4e820d00f5ec7ada1bd8a796c9849c2f4
2 Author: Horea Christian <chr <AT> chymera <DOT> eu>
3 AuthorDate: Mon Sep 28 08:45:07 2020 +0000
4 Commit: Horea Christian <horea.christ <AT> gmail <DOT> com>
5 CommitDate: Mon Sep 28 08:45:07 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=0c41dce4
7
8 sci-chemistry/shiftx2: removed discontinued package
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.1
11 Signed-off-by: Horea Christian <chr <AT> chymera.eu>
12
13 .../shiftx2-1.07_p20120106-format-security.patch | 16 --
14 .../shiftx2-1.07_p20120106-internal-name.patch | 25 ---
15 .../files/shiftx2-1.07_p20120106-java.patch | 227 --------------------
16 .../files/shiftx2-1.07_p20120106-system.patch | 231 ---------------------
17 sci-chemistry/shiftx2/metadata.xml | 42 ----
18 .../shiftx2/shiftx2-1.07_p20120106.ebuild | 130 ------------
19 6 files changed, 671 deletions(-)
20
21 diff --git a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-format-security.patch b/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-format-security.patch
22 deleted file mode 100644
23 index fc4a61eb5..000000000
24 --- a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-format-security.patch
25 +++ /dev/null
26 @@ -1,16 +0,0 @@
27 - modules/resmf/libc/misc.lib.c | 2 +-
28 - 1 file changed, 1 insertion(+), 1 deletion(-)
29 -
30 -diff --git a/modules/resmf/libc/misc.lib.c b/modules/resmf/libc/misc.lib.c
31 -index 0ef12a4..1e22424 100755
32 ---- a/modules/resmf/libc/misc.lib.c
33 -+++ b/modules/resmf/libc/misc.lib.c
34 -@@ -71,7 +71,7 @@ void show_msg(msg)
35 - char *msg;
36 - {
37 -
38 -- fprintf(stdout, msg);
39 -+ fprintf(stdout, "%s", msg);
40 -
41 - } /* show_msg */
42 -
43
44 diff --git a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-internal-name.patch b/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-internal-name.patch
45 deleted file mode 100644
46 index 4fa5447db..000000000
47 --- a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-internal-name.patch
48 +++ /dev/null
49 @@ -1,25 +0,0 @@
50 - modules/resmf/hydropho_cal.c | 4 ++--
51 - 1 file changed, 2 insertions(+), 2 deletions(-)
52 -
53 -diff --git a/modules/resmf/hydropho_cal.c b/modules/resmf/hydropho_cal.c
54 -index 1fde394..a889d08 100755
55 ---- a/modules/resmf/hydropho_cal.c
56 -+++ b/modules/resmf/hydropho_cal.c
57 -@@ -184,7 +184,7 @@ float hydroscore(Hydroscale *scale, char residue){
58 - }
59 -
60 - /* function for copying string */
61 --char * strndup (const char *s, size_t n)
62 -+char * new_strndup (const char *s, size_t n)
63 - {
64 - char *result;
65 - size_t len = strlen (s);
66 -@@ -206,7 +206,7 @@ char* substring(const char* str, size_t begin, size_t len)
67 - {
68 - if (str == 0 || strlen(str) == 0 || strlen(str) < begin || strlen(str) < (begin+len))
69 - return 0;
70 -- return (char *) strndup(str + begin, len);
71 -+ return (char *) new_strndup(str + begin, len);
72 - }
73 -
74 - /* calculate the average value from begin to end in the given array */
75
76 diff --git a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-java.patch b/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-java.patch
77 deleted file mode 100644
78 index ea64cea2d..000000000
79 --- a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-java.patch
80 +++ /dev/null
81 @@ -1,227 +0,0 @@
82 -diff --git a/shiftx2-v107-linux/src/LimitedCShift.java b/shiftx2-v107-linux/src/LimitedCShift.java
83 -index cd27fbf..9e72208 100755
84 ---- a/shiftx2-v107-linux/src/LimitedCShift.java
85 -+++ b/shiftx2-v107-linux/src/LimitedCShift.java
86 -@@ -13,8 +13,8 @@ public class LimitedCShift {
87 - public void loadLimitedCShift () {
88 - // System.out.println("SHIFTX2_DIR: "+ShiftXp.SHIFTX2_DIR);
89 -
90 -- String filename = ShiftXp.SHIFTX2_DIR + "/lib/limitedcshift.dat";
91 -- String objFilename = ShiftXp.SHIFTX2_DIR + "/lib/limitedcshift.osf";
92 -+ String filename = ShiftXp.GENTOO_SHARE_PATH + "/limitedcshift.dat";
93 -+ String objFilename = ShiftXp.GENTOO_SHARE_PATH + "/limitedcshift.osf";
94 -
95 - File f = new File(objFilename);
96 - if (f.exists()) {
97 -@@ -44,7 +44,7 @@ public class LimitedCShift {
98 - br.close();
99 -
100 - // save object into object file format for speed up
101 -- saveObjectFile(objFilename, limshift);
102 -+ //saveObjectFile(objFilename, limshift);
103 -
104 - } catch(IOException ex){
105 - ex.printStackTrace();
106 -diff --git a/shiftx2-v107-linux/src/ModuleExecutor.java b/shiftx2-v107-linux/src/ModuleExecutor.java
107 -index 36cfeb1..704451f 100755
108 ---- a/shiftx2-v107-linux/src/ModuleExecutor.java
109 -+++ b/shiftx2-v107-linux/src/ModuleExecutor.java
110 -@@ -22,12 +22,12 @@ public class ModuleExecutor {
111 - // private static final String WORKING_DIR = "./wkdir/";
112 - private static String WORKING_DIR = "";
113 -
114 -- private static final String RESMF_EXE = "/modules/resmf/resmf";
115 -- private static final String EFFECTS_EXE = "/modules/effects/caleffect";
116 -- private static final String ANGLES_EXE = "/modules/angles/get_angles";
117 -- private static final String ANGLES_REDUCE_DIR = "/modules/angles";
118 -+ private static final String RESMF_EXE = "resmf";
119 -+ private static final String EFFECTS_EXE = "caleffect";
120 -+ private static final String ANGLES_EXE = "get_angles";
121 -+ private static final String ANGLES_REDUCE_DIR = "angles";
122 -
123 -- private static String SHIFTXP_DIR = ShiftXp.SHIFTX2_DIR;
124 -+// private static String SHIFTXP_DIR = ShiftXp.SHIFTX2_DIR;
125 -
126 - private static final String REDUCE_FLAG = "1"; // 1 or 0
127 -
128 -@@ -80,8 +80,8 @@ public class ModuleExecutor {
129 - if(DEBUG) System.out.println("> Processing [Major Features] with " + pdbfile);
130 - // Update: add pdbdir both input pdbfile and output result, pdbId (2011.03.17)
131 - // cmd = RESMF_EXE + " -f " + pdbdir +"/"+ pdbfile + " -o " + WORKING_DIR + pdbId + ".resmf";
132 -- cmd = SHIFTXP_DIR + RESMF_EXE + " -f " + pdbdir + pdbfile + " -o " + WORKING_DIR + pdbId + ".resmf"
133 -- + " -d " + SHIFTXP_DIR + "/modules/resmf/lib";
134 -+ cmd = RESMF_EXE + " -f " + pdbdir + pdbfile + " -o " + WORKING_DIR + pdbId + ".resmf"
135 -+ + " -d " + ShiftXp.GENTOO_SHARE_PATH + "/vader";
136 -
137 - if(DEBUG){ System.out.println("\t"+cmd); }
138 - execCode = execute_command(cmd);
139 -@@ -93,7 +93,7 @@ public class ModuleExecutor {
140 -
141 - /* call effects for calculating ring current calculator */
142 - if(DEBUG) System.out.println("> processing [Effects] with " + pdbfile);
143 -- cmd = SHIFTXP_DIR + EFFECTS_EXE + " 1 " + pdbdir + pdbfile + " " + WORKING_DIR + pdbfile + ".dummy";
144 -+ cmd = EFFECTS_EXE + " 1 " + pdbdir + pdbfile + " " + WORKING_DIR + pdbfile + ".dummy";
145 -
146 - if(DEBUG){ System.out.println("\t"+cmd); }
147 - execCode = execute_command(cmd);
148 -@@ -106,7 +106,7 @@ public class ModuleExecutor {
149 - /* call angle calculator : output must be redirected to file using PrintStream */
150 - if(DEBUG) System.out.println("> Processing [Angle] with " + pdbfile);
151 - // cmd = ANGLES_EXE + " " + ANGLES_REDUCE_DIR + " " + pdbfile ;
152 -- cmd = SHIFTXP_DIR + ANGLES_EXE + " " + SHIFTXP_DIR + ANGLES_REDUCE_DIR + " " + pdbdir + pdbfile + " "+ REDUCE_FLAG;
153 -+ cmd = ANGLES_EXE + " " + ShiftXp.GENTOO_SHARE_PATH + " " + pdbdir + pdbfile + " "+ REDUCE_FLAG;
154 - String outpath = WORKING_DIR + pdbId + ".angles";
155 -
156 - if(DEBUG){ System.out.println("\t"+cmd); }
157 -diff --git a/shiftx2-v107-linux/src/PredictionModels.java b/shiftx2-v107-linux/src/PredictionModels.java
158 -index a77d1cb..fb84666 100755
159 ---- a/shiftx2-v107-linux/src/PredictionModels.java
160 -+++ b/shiftx2-v107-linux/src/PredictionModels.java
161 -@@ -13,9 +13,7 @@ public class PredictionModels {
162 - private final static String MODEL_FILE_SIDECHAIN_ONLY = "predmodels_sidechain.sobj";
163 -
164 - private final static String OBJECT_MODEL_DIRECTORY = "/lib";
165 -- private final static String MODEL_DIRECTORY = "/lib/predmodels";
166 --
167 -- private static String SHIFTXP_DIR = ShiftXp.SHIFTX2_DIR;
168 -+ private final static String MODEL_DIRECTORY = "predmodels";
169 -
170 - HashMap<String, Classifier> hsmap_predmodel = new HashMap<String, Classifier>();
171 -
172 -@@ -36,7 +34,7 @@ public class PredictionModels {
173 - // System.out.println("SHIFTXP_DIR:" + SHIFTXP_DIR+"\n\n");
174 - // System.out.println("SHIFTX2_DIR:" + ShiftXp.SHIFTX2_DIR+"\n\n");
175 -
176 -- String headerfilename = ShiftXp.SHIFTX2_DIR + "/lib/data-header.arff";
177 -+ String headerfilename = ShiftXp.GENTOO_SHARE_PATH + "/data-header.arff";
178 -
179 - try {
180 - // assigned instance header from data-header.arff
181 -@@ -150,7 +148,7 @@ public class PredictionModels {
182 - // if option is not sidechain only, put backbone models into modeling file
183 - if ( ! this.prediction_type.equals("SIDECHAIN") ) {
184 - for(int i=0; i < BACKBONE_MODEL_LENGTH; i++) {
185 -- ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( ShiftXp.SHIFTX2_DIR + MODEL_DIRECTORY + "/" + modelFileArray[i]) ));
186 -+ ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( ShiftXp.GENTOO_SHARE_PATH + "/" + MODEL_DIRECTORY + "/" + modelFileArray[i]) ));
187 - classifier = (Classifier) ois.readObject();
188 - hsmap_predmodel.put(atomNameArray[i],classifier);
189 - ois.close();
190 -@@ -160,7 +158,7 @@ public class PredictionModels {
191 - // if option is not backbone only, put/append sidechain models into modeling file
192 - if ( ! this.prediction_type.equals("BACKBONE") ) {
193 - for(int i=BACKBONE_MODEL_LENGTH; i < (BACKBONE_MODEL_LENGTH + SIDECHAIN_MODEL_LENGTH); i++) {
194 -- ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( ShiftXp.SHIFTX2_DIR + MODEL_DIRECTORY + "/" + modelFileArray[i]) ));
195 -+ ois = new ObjectInputStream( new BufferedInputStream( new FileInputStream( ShiftXp.GENTOO_SHARE_PATH + "/" + MODEL_DIRECTORY + "/" + modelFileArray[i]) ));
196 - classifier = (Classifier) ois.readObject();
197 - hsmap_predmodel.put(atomNameArray[i], classifier);
198 - ois.close();
199 -@@ -185,11 +183,11 @@ public class PredictionModels {
200 - */
201 -
202 - if ( this.prediction_type.equals("ALL") == true) {
203 -- model_file = ShiftXp.SHIFTX2_DIR + OBJECT_MODEL_DIRECTORY + "/" + MODEL_FILE_ALLATOMS;
204 -+ model_file = ShiftXp.GENTOO_SHARE_PATH + "/" + MODEL_FILE_ALLATOMS;
205 - } else if ( this.prediction_type.equals("BACKBONE") == true) {
206 -- model_file = ShiftXp.SHIFTX2_DIR + OBJECT_MODEL_DIRECTORY + "/" + MODEL_FILE_BACKBONE_ONLY;
207 -+ model_file = ShiftXp.GENTOO_SHARE_PATH + "/" + MODEL_FILE_BACKBONE_ONLY;
208 - } else if ( this.prediction_type.equals("SIDECHAIN") == true) {
209 -- model_file = ShiftXp.SHIFTX2_DIR + OBJECT_MODEL_DIRECTORY + "/" + MODEL_FILE_SIDECHAIN_ONLY;
210 -+ model_file = ShiftXp.GENTOO_SHARE_PATH + "/" + MODEL_FILE_SIDECHAIN_ONLY;
211 - }
212 -
213 - File f = new File( model_file );
214 -@@ -198,7 +196,7 @@ public class PredictionModels {
215 - readHashObjectPredModelFile( model_file );
216 - } else {
217 - setHashMap();
218 -- saveHashObjectPredModelFile( model_file );
219 -+// saveHashObjectPredModelFile( model_file );
220 - }
221 - }
222 -
223 -diff --git a/shiftx2-v107-linux/src/RandomCoil.java b/shiftx2-v107-linux/src/RandomCoil.java
224 -index 25a8999..7442938 100755
225 ---- a/shiftx2-v107-linux/src/RandomCoil.java
226 -+++ b/shiftx2-v107-linux/src/RandomCoil.java
227 -@@ -33,11 +33,9 @@ public class RandomCoil {
228 - public void loadRandomCoil() {
229 -
230 - // change path as absolute path
231 -- String SHIFTXP_DIR = ShiftXp.SHIFTX2_DIR;
232 --
233 -- String filename = SHIFTXP_DIR + "/lib/RandomCoil.csv";
234 -- String objFilename = SHIFTXP_DIR + "/lib/RandomCoil.osf";
235 -- String objAtomListname = SHIFTXP_DIR + "/lib/RCoilAtomlist.osf";
236 -+ String filename = ShiftXp.GENTOO_SHARE_PATH + "/RandomCoil.csv";
237 -+ String objFilename = ShiftXp.GENTOO_SHARE_PATH + "/RandomCoil.osf";
238 -+ String objAtomListname = ShiftXp.GENTOO_SHARE_PATH + "/RCoilAtomlist.osf";
239 -
240 -
241 - File f = new File(objFilename);
242 -@@ -85,8 +83,8 @@ public class RandomCoil {
243 - br.close();
244 -
245 - // save object into object file format for speed up
246 -- saveObjectFile(objFilename, rcoil);
247 -- saveObjectFile(objAtomListname, restypeAtomStringList);
248 -+// saveObjectFile(objFilename, rcoil);
249 -+// saveObjectFile(objAtomListname, restypeAtomStringList);
250 -
251 - } catch(IOException ex){
252 - ex.printStackTrace();
253 -diff --git a/shiftx2-v107-linux/src/ShiftXp.java b/shiftx2-v107-linux/src/ShiftXp.java
254 -index 505a3f6..920f420 100755
255 ---- a/shiftx2-v107-linux/src/ShiftXp.java
256 -+++ b/shiftx2-v107-linux/src/ShiftXp.java
257 -@@ -27,7 +27,7 @@ public class ShiftXp {
258 - static final boolean DEBUG = false;
259 - static boolean RCOIL_PRINTOUT = false;
260 - static String SHIFTX2_DIR = "."; // to support running on other directory
261 --
262 -+ public static final String GENTOO_SHARE_PATH = "PUT_GENTOO_SHARE_PATH_HERE";
263 - // Loading only one time, that's why these are here
264 - static RandomCoil rcoil = new RandomCoil();
265 - static LimitedCShift chkcshift = new LimitedCShift();
266 -@@ -41,7 +41,7 @@ public class ShiftXp {
267 - buf.append("Detail information: http://www.shiftx2.ca or http://redpoll.pharmacy.ualberta.ca\n");
268 - buf.append("--------------------------------------------------------------------------------\n\n");
269 -
270 -- buf.append("SYNOPSIS\n\t java -Xmx1500m -cp <SHIFTX+ dir>/bin:<SHIFTX+ dir>/lib/weka.jar ShiftXp [options]\n");
271 -+ buf.append("SYNOPSIS\n\t jshiftx2 [options]\n");
272 -
273 - buf.append("OPTIONS:\n");
274 - buf.append("\t -i [<directory/> infile.pdb | ALLPDB]\n");
275 -@@ -54,10 +54,10 @@ public class ShiftXp {
276 - buf.append("\t -temp <number> Temperature, default=298\n");
277 - buf.append("\t -d [TRUE | FALSE] Deuterated pdb, default=FALSE \n");
278 - buf.append("\t -r [TRUE | FALSE] Print randon coild shift (only for CSV format), default=FALSE \n");
279 -- buf.append("\t -dir <SHIFTX+ directory> The installed directory of SHIFTX+/SHIFTX2\n\n");
280 -+// buf.append("\t -dir <SHIFTX+ directory> The installed directory of SHIFTX+/SHIFTX2\n\n");
281 -
282 - buf.append("EXAMPLE:\n");
283 -- buf.append("\t java -Xmx1500m -cp ~/shiftx2/bin:~/shiftx2/lib/weka.jar ShiftXp -i 1ubq.pdb\n\n");
284 -+ buf.append("\t jshiftx2 -i 1ubq.pdb\n\n");
285 - buf.append("\n");
286 -
287 - System.out.println( buf );
288 -@@ -138,20 +138,6 @@ public class ShiftXp {
289 - }
290 - }
291 -
292 -- // check execute directory
293 -- // 2011.08.31 changed shiftx2_main.py --> shiftx2.py
294 -- if ( !( new File( SHIFTX2_DIR + "/shiftx2.py").exists()
295 -- && new File(SHIFTX2_DIR + "/lib/weka.jar").exists() ) ) {
296 --
297 -- System.err.println("\n********************************************************************************");
298 -- System.err.println("[Error]\t Required: When the SHIFTX2 execute on other directory,\n"
299 -- +"\t it should be set as a parameter. Use '-dir' option.");
300 -- System.err.println("> Current directory: "+System.getProperty("user.dir"));
301 -- System.err.println("********************************************************************************\n");
302 --
303 -- usage();
304 -- }
305 --
306 - if ( inPDBFile == null || inPDBFile.length() < 1) {
307 - System.err.println("\n********************************************************************************");
308 - System.err.println("[Error] Required: There is no input PDB filename.");
309
310 diff --git a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-system.patch b/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-system.patch
311 deleted file mode 100644
312 index 7625f7442..000000000
313 --- a/sci-chemistry/shiftx2/files/shiftx2-1.07_p20120106-system.patch
314 +++ /dev/null
315 @@ -1,231 +0,0 @@
316 - natsorted.py | 1 -
317 - script/combine_cs.py | 2 +-
318 - shiftx2.py | 39 +++++++++++++++++++--------------------
319 - shiftx2_util.py | 3 +--
320 - shifty3/shifty3.py | 2 +-
321 - 5 files changed, 22 insertions(+), 25 deletions(-)
322 -
323 -diff --git a/natsorted.py b/natsorted.py
324 -index 415b393..6fc909e 100755
325 ---- a/natsorted.py
326 -+++ b/natsorted.py
327 -@@ -1,4 +1,3 @@
328 --#!/usr/bin/env python
329 - ############################################################
330 - # functions for performing natural sort
331 - ############################################################
332 -diff --git a/script/combine_cs.py b/script/combine_cs.py
333 -index 4d1dd4f..5182958 100755
334 ---- a/script/combine_cs.py
335 -+++ b/script/combine_cs.py
336 -@@ -9,7 +9,7 @@
337 - # last updated: Jan 06st, 2012 (by Beomsoo Han)
338 - #################################################################################
339 - import sys, re, os
340 --from natsorted import *
341 -+from shiftx2.natsorted import *
342 - from math import exp ## add for new combine rule
343 - # from numpy import *
344 - tablerows = {} # a hash table for all rows in the table, mapping from residue number to table entry object
345 -diff --git a/shiftx2.py b/shiftx2.py
346 -index 0a171c8..72ecbfe 100755
347 ---- a/shiftx2.py
348 -+++ b/shiftx2.py
349 -@@ -14,7 +14,7 @@
350 - #######################################################################
351 - import os, sys, getopt, re, fnmatch
352 - from optparse import OptionParser
353 --from shiftx2_util import *
354 -+from shiftx2.shiftx2util import *
355 -
356 - DEUTERATED = None
357 - NOSHIFTY = None
358 -@@ -26,7 +26,7 @@ CHAINID = None
359 - EXPLICIT = None
360 - SHIFTTYPE = None
361 -
362 --SHIFTX2ROOT = ""
363 -+SHIFTX2ROOT = "@GENTOO_PORTAGE_EPREFIX@/opt/shiftx2"
364 -
365 - # temporary file name
366 -
367 -@@ -136,8 +136,7 @@ def batch_mode(pattern_str):
368 - print "## Running SHIFTX+ modules ..." ## Add by B HAN
369 -
370 - ## switch os.path.abspath("") with SHIFTX2ROOT (set from sys.path[0]) by B HAN
371 -- cmd_prefix = "java -cp " + SHIFTX2ROOT + "/bin:" + SHIFTX2ROOT + \
372 -- "/lib/weka.jar ShiftXp -b " + "'" + BATCH + "'" + " -atoms " + options.atoms + \
373 -+ cmd_prefix = "jshiftx2" + " -b " + "'" + BATCH + "'" + " -atoms " + options.atoms + \
374 - " -ph " + str(options.ph) + " -temp " + str(options.temp)
375 - if DEUTERATED:
376 - cmd_prefix = cmd_prefix + " -d TRUE"
377 -@@ -154,14 +153,14 @@ def batch_mode(pattern_str):
378 - for infile in pdb_list:
379 - # run SHIFTX
380 - ## cmd_prefix = "modules/shiftx/shiftx 1 " + os.path.abspath("") + "/" + \
381 -- cmd_prefix = SHIFTX2ROOT + "/modules/shiftx/shiftx 1 " + infile + " " + infile + ".sx"
382 -+ cmd_prefix = "shiftx 1 " + infile + " " + infile + ".sx"
383 - os.system(cmd_prefix)
384 - if VERBOSE:
385 - print cmd_prefix
386 - # convert from table format to CSV
387 - ## cmd_prefix = "python script/shiftx2shiftxp.py " + os.path.abspath("") + "/" + \
388 - ## infile + ".sx " + os.path.abspath("") + "/" + infile + ".sxp"
389 -- cmd_prefix = "python "+ SHIFTX2ROOT +"/script/shiftx2shiftxp.py " + \
390 -+ cmd_prefix = "shiftx2shiftxp.py " + \
391 - infile + ".sx " + infile + ".sxp"
392 - ## switched by B HAN
393 - ## infile + ".sx " + os.path.abspath("") + "/" + infile.split('.')[0] + ".sxp"
394 -@@ -180,7 +179,7 @@ def batch_mode(pattern_str):
395 - ## os.chdir(os.path.abspath("shifty3"))
396 - sys.path.append(SHIFTX2ROOT+"/shifty3")
397 - os.chdir(SHIFTX2ROOT+"/shifty3")
398 -- shifty_cmd = "python shifty3.py -i " + \
399 -+ shifty_cmd = "shifty3 -i " + \
400 - infile + " -o " + infile + ".shifty -c 40 "
401 - if DEUTERATED:
402 - shifty_cmd = shifty_cmd + " -d"
403 -@@ -207,7 +206,7 @@ def batch_mode(pattern_str):
404 - errmsg = "Error: SHIFTX+ cannot make a prediction file."
405 - return errmsg
406 -
407 -- combine_cmd = "python " + SHIFTX2ROOT +"/script/combine_cs.py " + sx_outfile + " " + infile + ".shifty "
408 -+ combine_cmd = "combine_cs.py " + sx_outfile + " " + infile + ".shifty "
409 - if not options.outfile:
410 - combine_cmd = combine_cmd + infile + ".cs"
411 - else:
412 -@@ -248,7 +247,7 @@ def model_batch(pattern_str):
413 - # run shiftx1 or shiftx+
414 - if not SHIFTX1:
415 - # run SHIFTX+
416 -- cmd_prefix = "java -cp " + SHIFTX2ROOT + "/bin:" + SHIFTX2ROOT + "/lib/weka.jar ShiftXp -b " + \
417 -+ cmd_prefix = "jshiftx2 -b " + \
418 - "'" + pattern_str + "'" + " -atoms " + options.atoms + \
419 - " -ph " + str(options.ph) + " -temp " + str(options.temp)
420 - if DEUTERATED:
421 -@@ -263,14 +262,14 @@ def model_batch(pattern_str):
422 - else:
423 - for infile in pdb_list:
424 - # run SHIFTX
425 -- cmd_prefix = SHIFTX2ROOT + "/modules/shiftx/shiftx 1 " + infile + \
426 -+ cmd_prefix = "shiftx 1 " + infile + \
427 - " " + infile + ".sx"
428 - os.system(cmd_prefix)
429 - if VERBOSE:
430 - print cmd_prefix
431 -
432 - # convert from table format to CSV
433 -- cmd_prefix = "python "+ SHIFTX2ROOT +"/script/shiftx2shiftxp.py " + \
434 -+ cmd_prefix = "shiftx2shiftxp.py " + \
435 - infile + ".sx " + infile + ".sxp"
436 -
437 - os.system(cmd_prefix)
438 -@@ -328,7 +327,7 @@ def nmr_mode(infile, obs_cs):
439 - if not NOSHIFTY:
440 - sys.path.append( SHIFTX2ROOT + "/shifty3")
441 - os.chdir(SHIFTX2ROOT + "/shifty3")
442 -- shifty_cmd = "python shifty3.py -i " + infile + \
443 -+ shifty_cmd = "shifty3 -i " + infile + \
444 - " -o " + infile + ".shifty -c 40 "
445 - if DEUTERATED:
446 - shifty_cmd = shifty_cmd + " -d"
447 -@@ -350,7 +349,7 @@ def nmr_mode(infile, obs_cs):
448 - return errmsg
449 -
450 - # combine result
451 -- combine_cmd = "python "+ SHIFTX2ROOT + "/script/combine_cs.py " + infile_prefix + ".sxp " + infile + ".shifty "
452 -+ combine_cmd = "combine_cs.py " + infile_prefix + ".sxp " + infile + ".shifty "
453 - if not options.outfile:
454 - combine_cmd = combine_cmd + infile + ".cs"
455 - ## add by B HAN; if it does not exist, error message will occur
456 -@@ -367,7 +366,7 @@ def nmr_mode(infile, obs_cs):
457 - # should be accomplished in a function
458 - if obs_cs!= None:
459 - # calculate correlation
460 -- cmd = "python " + SHIFTX2ROOT +"/script/model_corr.py " + obs_cs + " " + infile_prefix + ".modelcorr " + ' '.join(model_outfiles)
461 -+ cmd = "model_corr.py " + obs_cs + " " + infile_prefix + ".modelcorr " + ' '.join(model_outfiles)
462 - os.system(cmd)
463 -
464 - # plot correlation graphs, plot line graph but no barplots
465 -@@ -456,7 +455,7 @@ def single_mode(infile, outfile):
466 -
467 - if not SHIFTX1:
468 - # run SHIFTX+
469 -- cmd_prefix = "java -cp " + SHIFTX2ROOT + "/bin:" + SHIFTX2ROOT + "/lib/weka.jar ShiftXp -i " + inputfile \
470 -+ cmd_prefix = "jshiftx2 -i " + inputfile \
471 - + " -atoms " + options.atoms + " -ph " + str(options.ph) + " -temp " + str(options.temp)
472 - if DEUTERATED:
473 - cmd_prefix = cmd_prefix + " -d TRUE"
474 -@@ -476,12 +475,12 @@ def single_mode(infile, outfile):
475 - sys.exit(-1)
476 - else:
477 - # run SHIFTX
478 -- cmd_prefix = SHIFTX2ROOT + "/modules/shiftx/shiftx 1 " + inputfile + " " + sx1_outfile
479 -+ cmd_prefix = "shiftx 1 " + inputfile + " " + sx1_outfile
480 - os.system(cmd_prefix)
481 - if VERBOSE:
482 - print cmd_prefix
483 - # convert from table format to CSV
484 -- cmd_prefix = "python " + SHIFTX2ROOT + "/script/shiftx2shiftxp.py " + sx1_outfile + " " + sxp_outfile
485 -+ cmd_prefix = "shiftx2shiftxp.py " + sx1_outfile + " " + sxp_outfile
486 - os.system(cmd_prefix)
487 - if VERBOSE:
488 - print cmd_prefix
489 -@@ -490,7 +489,7 @@ def single_mode(infile, outfile):
490 - if not NOSHIFTY:
491 - sys.path.append(SHIFTX2ROOT + "/shifty3")
492 - os.chdir(SHIFTX2ROOT +"/shifty3")
493 -- shifty_cmd = "python shifty3.py -i " + inputfile + " -o " + sy_outfile + " -c 40 "
494 -+ shifty_cmd = "shifty3 -i " + inputfile + " -o " + sy_outfile + " -c 40 "
495 - if DEUTERATED:
496 - shifty_cmd = shifty_cmd + " -d"
497 - if VERBOSE:
498 -@@ -513,7 +512,7 @@ def single_mode(infile, outfile):
499 - return errmsg
500 -
501 - # combine result
502 -- combine_cmd = "python script/combine_cs.py " + sxp_outfile + " " + sy_outfile + " "
503 -+ combine_cmd = "combine_cs.py " + sxp_outfile + " " + sy_outfile + " "
504 - combine_cmd = combine_cmd + outfile # specify output file name
505 -
506 - combine_cmd = add_atom_format_option(combine_cmd)
507 -@@ -543,7 +542,7 @@ def cleanup_tempfiles(files):
508 - if __name__ == '__main__':
509 - print "## SHIFTX2 Ver 1.07 (Released 4 Jan. 2012) ##"
510 -
511 -- SHIFTX2ROOT = sys.path[0]
512 -+ #SHIFTX2ROOT = sys.path[0]
513 -
514 - #if len(sys.argv)<3:
515 - # print "Usage: python shiftx2_main.py [input.pdb] [-atoms: all]"
516 -diff --git a/shiftx2_util.py b/shiftx2_util.py
517 -index d357a8e..6ce5e6c 100755
518 ---- a/shiftx2_util.py
519 -+++ b/shiftx2_util.py
520 -@@ -1,4 +1,3 @@
521 --#!/usr/bin/env python
522 - ####################################################################
523 - # shiftx2_util.py: utility functions supporting shiftx2_main.py
524 - #
525 -@@ -6,7 +5,7 @@
526 - # date: April 13th, 2011
527 - ####################################################################
528 - import sys, os
529 --from natsorted import *
530 -+from shiftx2.natsorted import *
531 -
532 - # FUNCTIONS FOR SPLITING PDB FILE WITH MULTIPLE NMR MODELS
533 -
534 -diff --git a/shifty3/shifty3.py b/shifty3/shifty3.py
535 -index 796af32..9360b87 100755
536 ---- a/shifty3/shifty3.py
537 -+++ b/shifty3/shifty3.py
538 -@@ -12,7 +12,7 @@ import sys, os, re, datetime, time
539 - ###############################################################
540 - # path for xalign and blast executibles and blast databases
541 - XALIGN_EXE = "xalign_x" # executable for xalign
542 --BLASTP_EXE = "./blast/bin/blastall -p blastp" # executable for blast
543 -+BLASTP_EXE = "blastall -p blastp" # executable for blast
544 -
545 - BLASTDB = "blastdb" # folder containing the blast database
546 - SHIFTDB = "refdb" # folder containing the BMRB shift database
547
548 diff --git a/sci-chemistry/shiftx2/metadata.xml b/sci-chemistry/shiftx2/metadata.xml
549 deleted file mode 100644
550 index e35d2bc02..000000000
551 --- a/sci-chemistry/shiftx2/metadata.xml
552 +++ /dev/null
553 @@ -1,42 +0,0 @@
554 -<?xml version="1.0" encoding="UTF-8"?>
555 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
556 -<pkgmetadata>
557 - <maintainer type="project">
558 - <email>sci-chemistry@g.o</email>
559 - <name>Gentoo Chemistry Project</name>
560 - </maintainer>
561 - <longdescription>
562 -SHIFTX2 predicts both the backbone and side chain 1H, 13C and 15N chemical
563 -shifts for proteins using their structural (PDB) coordinates as input.
564 -SHIFTX2 combines ensemble machine learning methods with sequence
565 -alignment-based methods to calculate protein chemical shifts for
566 -backbone
567 -and side chain atoms. SHIFTX2 has been trained on a carefully selected
568 -set of
569 -197 proteins and tested on a separate set of 61 proteins. Both the
570 -training
571 -and testing sets consisted of high resolution X-ray structures (less
572 -2.1A)
573 -with carefully verified chemical shifts assignments. SHIFTX2 is able to
574 -attain
575 -correlation coefficients between experimentally observed and predicted
576 -backbone chemical shifts of 0.9800 (15N), 0.9959 (13CA), 0.9992 (13CB),
577 -0.9676 (13CO), 0.9714 (1HN), 0.9744 (1HA) and RMS errors of 1.1169, 0.4412,
578 -0.5163, 0.5330, 0.1711, and 0.1231 ppm, respectively. Comparisons to
579 -other
580 -chemical shift predictors using the same testing data set indicates that
581 -SHIFTX2 is substantially more accurate (up to 26% better by
582 -correlation
583 -coefficient with an RMS error that is up to 3.3X smaller) than any other
584 -program.
585 -
586 -Please cite the following: Beomsoo Han, Yifeng Liu, Simon Ginzinger, and
587 -David Wishart. (2011) SHIFTX2: significantly improved protein chemical
588 -shift
589 -prediction. Journal of Biomolecular NMR, Volume 50, Number 1, 43-57.
590 -doi: 10.1007/s10858-011-9478-4.
591 -</longdescription>
592 - <use>
593 - <flag name="debug">Enables debug output in the shiftx2 java part</flag>
594 - </use>
595 -</pkgmetadata>
596
597 diff --git a/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild b/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild
598 deleted file mode 100644
599 index 2b7a478af..000000000
600 --- a/sci-chemistry/shiftx2/shiftx2-1.07_p20120106.ebuild
601 +++ /dev/null
602 @@ -1,130 +0,0 @@
603 -# Copyright 1999-2015 Gentoo Foundation
604 -# Distributed under the terms of the GNU General Public License v2
605 -
606 -EAPI=5
607 -
608 -PYTHON_COMPAT=( python2_7 )
609 -
610 -inherit java-pkg-2 java-pkg-simple prefix python-r1 versionator
611 -
612 -MY_PV="$(delete_all_version_separators $(get_version_component_range 1-2))"
613 -MY_PATCH="20120106"
614 -MY_P="${PN}-v${MY_PV}-linux"
615 -
616 -DESCRIPTION="Predicts of backbone and side chain 1H, 13C and 15N CS for proteins"
617 -HOMEPAGE="http://shiftx2.wishartlab.com/"
618 -SRC_URI="http://shiftx2.wishartlab.com/download/${MY_P}-${MY_PATCH}.tgz"
619 -
620 -SLOT="0"
621 -LICENSE="all-rights-reserved"
622 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
623 -IUSE="debug"
624 -
625 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
626 -
627 -CDEPEND="dev-util/weka ${PYTHON_DEPS}"
628 -
629 -RDEPEND="${CDEPEND}
630 - ${PYTHON_DEPS}
631 - dev-lang/R
632 - sci-biology/ncbi-tools
633 - sci-chemistry/reduce
634 - >=virtual/jre-1.5"
635 -DEPEND="${CDEPEND}
636 - >=virtual/jdk-1.5"
637 -
638 -S="${WORKDIR}"/${MY_P}
639 -
640 -QA_PREBUILT="/opt/.*"
641 -
642 -src_prepare() {
643 - epatch \
644 - "${FILESDIR}"/${P}-java.patch \
645 - "${FILESDIR}"/${P}-system.patch \
646 - "${FILESDIR}"/${P}-internal-name.patch \
647 - "${FILESDIR}"/${P}-format-security.patch
648 -
649 - rm "${S}"/src/FeatureRanges.java || die
650 -
651 - shared=$(echo "${EPREFIX}/usr/share/${PN}" | sed -e 's/\//\\\//g')
652 - sed -i -e "s/PUT_GENTOO_SHARE_PATH_HERE/${shared}/g" "${S}/src/ShiftXp.java" || die
653 -
654 - if use debug; then
655 - sed -i -e 's/DEBUG = false/DEBUG = true/g' "${S}/src/ShiftXp.java" || die
656 - fi
657 -
658 - # hack alert!
659 - sed \
660 - -e '/-o/s:$(GCC):$(GCC) $(LDFLAGS):g' \
661 - -e '/-o/s:$(CC):$(CC) $(LDFLAGS):g' \
662 - -i modules/*/Makefile || die
663 -
664 - sed -e '/-o/s:$: -lm:g' -i "${S}/modules/resmf/Makefile" || die
665 -
666 - eprefixify ${PN}.py
667 -}
668 -
669 -src_compile() {
670 - mkdir "${S}"/build || die
671 - ejavac -classpath "$(java-pkg_getjars weka)" -nowarn \
672 - -d "${S}"/build $(find src/ -name "*.java")
673 - jar cf "${PN}.jar" -C "${S}"/build . || die
674 -
675 - einfo "Building module angles"
676 - cd "${S}"/modules/angles || die
677 - emake clean
678 - emake CFLAGS="${CFLAGS}" GCC=$(tc-getCC) LINK="${LDFLAGS}" get_angles phipsi
679 -
680 - einfo "Building module resmf"
681 - cd "${S}"/modules/resmf || die
682 - emake clean
683 - emake CFLAGS="${CFLAGS}" GCC=$(tc-getCC) LINK="${LDFLAGS}" resmf
684 -
685 - einfo "Building module effects"
686 - cd "${S}"/modules/effects || die
687 - emake clean
688 - emake CFLAGS="${CFLAGS}" CC=$(tc-getCC) LINK="${LDFLAGS}" all
689 -}
690 -
691 -src_install() {
692 - java-pkg_dojar "${PN}.jar"
693 - java-pkg_dolauncher j${PN} --main "ShiftXp" --pkg_args "-dir ${EPREFIX}/usr/bin"
694 -
695 - insinto /usr/share/${PN}
696 - doins "${S}"/lib/{limitedcshift.dat,RandomCoil.csv,data-header.arff}
697 - doins -r "${S}"/lib/predmodels
698 -
699 - insinto /usr/share/${PN}/vader
700 - doins -r "${S}"/modules/resmf/lib/*
701 -
702 - local instdir="/opt/${PN}"
703 - dodoc README 1UBQ.pdb
704 - python_foreach_impl python_newscript ${PN}.py ${PN}
705 - mv shiftx2_util.py shiftx2util.py || die
706 - python_moduleinto ${PN}
707 - touch __init__.py
708 - python_foreach_impl python_domodule natsorted.py shiftx2util.py __init__.py
709 -
710 - # other modules
711 - dobin \
712 - "${S}"/modules/angles/{get_angles,phipsi} \
713 - "${S}"/modules/resmf/resmf \
714 - "${S}"/modules/effects/caleffect
715 -
716 - # script
717 - python_foreach_impl python_doscript "${S}"/script/*py
718 - exeinto ${instdir}/script
719 - doexe "${S}"/script/*.r
720 -
721 - # shifty3
722 - python_foreach_impl python_newscript "${S}"/shifty3/*py shifty3
723 - exeinto ${instdir}/shifty3
724 - doexe "${S}"/shifty3/xalign_x
725 - dosym ../${PN}/shifty3/xalign_x /opt/bin/xalign_x
726 -
727 - insinto ${instdir}/shifty3
728 - doins -r "${S}"/shifty3/{blastdb,refdb,xalign.parms,wt.rbo}
729 -
730 - python_foreach_impl python_doscript "${S}"/shifty3/utils/*py
731 - dobin "${S}"/shifty3/utils/create_blastdb.sh
732 -}