local.jpred.bin = binaries/src/jpred/jpred.pl\r
#cluster.jpred.bin = /home/jabaws/binaries/src/jpred/jpred.pl\r
# These paths will be converted to absolute if relative.\r
-jpred.bin.env = BLASTMAT#binaries/src/jpred/data/blast;UNIREFDB#binaries/src/jpred/unirefdb;\r
+jpred.bin.env = BLASTMAT#binaries/src/jpred/data/blast\r
+# The varible jpred.data.uniref.path define a path to Uniref90 files used by Jpred. If \r
+# you install the database to a different path chenge the variable here\r
+jpred.data.uniref.path = /data/UNIREFdb\r
+# WARNING!!! \r
+# Redefine jpred.data.uniref.name if you do undestand what the variable means\r
+jpred.data.uniref.name = cluster\r
### This parameters specifies the directory where the matrices files are stored\r
jpred.presets.file = conf/settings/JpredPresets.xml\r
jpred.parameters.file = conf/settings/JpredParameters.xml\r
/**\r
* Command line\r
* \r
- * jpred.pl -in d16vpa_.fas -outfile res_d16vpa_ -dbname ported_db -dbpath /data/UNIREFdb -ncpu 4\r
+ * jpred.pl -in d16vpa_.fas -outfile res_d16vpa_ -dbname ported_db -dbpath\r
+ * /data/UNIREFdb -ncpu 4\r
* \r
* @author asherstnev\r
* \r
public static final String STAT_FILE = "stat.txt";\r
\r
public Jpred() {\r
+ String dbpath = ph.getProperty("jpred.data.uniref.path");\r
+ String dbname = ph.getProperty("jpred.data.uniref.name");\r
addParameters(Arrays.asList("-logfile " + STAT_FILE));\r
- addParameters(Arrays.asList("-jabaws"));\r
+ addParameters(Arrays.asList("-dbpath " + dbpath));\r
+ addParameters(Arrays.asList("-dbname " + dbname));\r
}\r
\r
// HashMap<Method, float[]>\r
@SuppressWarnings("unchecked")\r
@Override\r
- public JpredAlignment getResults(String workDirectory)\r
- throws ResultNotAvailableException {\r
+ public JpredAlignment getResults(String workDirectory) throws ResultNotAvailableException {\r
JpredAlignment annotations = null;\r
try {\r
InputStream inStream = new FileInputStream(new File(workDirectory, getOutput()));\r
\r
@Override\r
public CommandBuilder<Jpred> getParameters(ExecProvider provider) {\r
- // If number of cores is provided, set it for the cluster execution only!\r
+ // If number of cores is provided, set it for the cluster execution\r
+ // only!\r
if (provider == Executable.ExecProvider.Cluster) {\r
int cpunum = SkeletalExecutable.getClusterCpuNum(getType());\r
cpunum = (cpunum == 0) ? 1 : cpunum;\r
jobId = msaws.align(fastalist);\r
}\r
System.out.println("\ncalling program.........");\r
- long startTime = System.nanoTime();\r
/*\r
+ long startTime = System.nanoTime();\r
while (JobStatus.RUNNING == msaws.getJobStatus(jobId)) {\r
Thread.sleep(1000);\r
long endTime = System.nanoTime();\r