Skip to content

Commit ad7ae3e

Browse files
committed
v4.0.4
1 parent 3a8e584 commit ad7ae3e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+291
-191
lines changed

docs/Release.html

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
There have been many improvements, but the following provides some recent critical points.
6262
<font size="2">
6363
<table>
64-
<tr><td><a href="#v403">v4.0.3</a><td>14-July-22<td><ttp>All<td>Small improvements.
64+
<tr><td><a href="#v403">v4.0.4</a><td>29-July-22<td><ttp>All<td>Small improvements.
6565
<tr><td><a href="#v339">v3.3.9</a><td>27-Dec-21<td><ttp><ttp>runAS</ttp></ttp><td>Improved interface for full subset UniProt; updated Demo.
6666
<tr><td><a href="#v335">v3.3.5</a><td>04-Nov-21<td><ttp>viewSingle</ttp><td>log2FC TPM analysis
6767
<tr><td><a href="#v334">v3.3.4</a><td>18-Oct-21<td><ttp>runSingle</ttp><td><ttl>ORF finder</ttl> improvements
@@ -76,6 +76,14 @@
7676
</table>
7777
</font>
7878

79+
<a id=v404></a>
80+
<h4>v4.0.4 29-July-2022</h4>
81+
The last tar file had "._" MacOS files, which have been removed from this release.
82+
<ul>
83+
<li><u>Overviews</u>: The HTML Overview files conform to HTML5.
84+
<li><u>Startup</u>: All programs show the same banners on startup, including memory and Java version.
85+
<li><u>Execute</u>: All programs clearly show log file and size of it.
86+
</ul>
7987
<a id=v403></a>
8088
<h4>v4.0.3 14-July-2022</h4>
8189

docs/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
TCW uses Java, mySQL, optionally R, and various <a href="./External.html">External</a> packages.
6161
It has been tested on Linux and Mac.
6262
<ul>
63-
<li>Last release: TCW v4.0.3 (14-July-22). See <a href="./Release.html">Release Notes</a>.
63+
<li>Last release: TCW v4.0.4 (29-July-22). See <a href="./Release.html">Release Notes</a>.
6464
Published in <a href="https://doi.org/10.1101/733311" class="ext" target="_blank">BioRxiv</a> (02-May-2022).
6565

6666

docs/ov/sDemo.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<body>
44
<center>
55
<h2>Overview for sTCW_demoTra </h2>
6-
<table width=700 border=1><tr><td>
6+
<table style="width: 800px; border: 2px solid #999999;"><tr><td>
77
<pre>
88
Project: tra #Seqs: 211 #Hits: 12,296 #GOs: 6,144 TPM Seq-DE GO-Enrich Pairs
99

execAnno

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/sh
2-
java -Xmx8192m -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.annotator.runSTCWMain $@
2+
mem="8192m";
3+
echo ">>>> execAnno ($mem) `date` <<<<"
4+
java -Xmx$mem -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.annotator.runSTCWMain $@

execAssm

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/sh
2-
java -Xmx8192m -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.assem.AssemMain $@
2+
mem="8192m";
3+
echo ">>>> execAssm (Instantiate) ($mem) `date` <<<<"
4+
java -Xmx$mem -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.assem.AssemMain $@

execLoadLib

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
#!/bin/sh
2-
java -Xmx8192m -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.assem.LoadLibMain $@
2+
mem="8192m";
3+
echo ">>>> execLoadLib ($mem) `date` <<<<"
4+
java -Xmx$mem -classpath java/jars/stcw.jar:jpave/jars/mysql-connector-java-5.0.5-bin.jar sng.assem.LoadLibMain $@

java/README

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
tar xvf classes_ext.tar.gz
2+
23
# Edit top line of Makefile to set JAVA_PATH
34
make
45

5-
Download TCW_4.tar.gz, and extract the /Ext directory to put under the TCW_4
6-
directory. This contains the external programs used by TCW.
6+
# Download TCW_4.tar.gz, and put the following two in the TCW_4 directory:
7+
# the /Ext directory, which contains the external programs used by TCW.
8+
# the /projects directory, which contains the demo files
9+
# and provides the data directory structure.

java/src/cmp/compile/Summary.java

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public String updateSummary() {
9595
text += lines.get(i) + "\n";
9696

9797
mDB.executeUpdate("UPDATE info SET summary = \"" + text + "\"");
98-
writeOverview(text);
98+
writeHTML(text);
9999
Out.PrtSpMsg(0, "Complete overview");
100100
}
101101
catch (Exception e) {ErrorReport.die(e, "create/get summary");}
@@ -632,26 +632,44 @@ private void makeProcessing() {
632632
catch (Exception e) {ErrorReport.prtReport(e, "processing");}
633633
}
634634

635-
public void writeOverview(String text) {
635+
// HTML CAS404 make html pass BBEdit test
636+
public void writeHTML(String text) {
636637
String projDir = Globals.PROJECTDIR;
637638
String sumDir = Globals.summaryPath;
638639
String overFilePath = sumDir + "/" + dbName + ".html";
639640
try {
640641
if (!new File(projDir).exists()) return; // should exist
641642

643+
String [] lines = text.split("\n");
644+
for (int i=0; i<lines.length; i++) {
645+
lines[i] = lines[i].replaceAll("&", "&amp;");
646+
lines[i] = lines[i].replaceAll(">", "&gt;");
647+
lines[i] = lines[i].replaceAll("<", "&lt;");
648+
}
649+
642650
File h = new File(sumDir);
643651
if (!h.exists()) {
644652
System.out.println("Creating directory " + sumDir);
645653
h.mkdir();
646654
}
647655
FileOutputStream out = new FileOutputStream(overFilePath);
648656
PrintWriter fileObj = new PrintWriter(out);
649-
// CAS310 make centered table
650-
String head = "<html><title>mTCW_" + dbName + " overview</title><body><center>"
651-
+ "\n<h2>mTCW overview for " + dbName + "</h2>"
652-
+ "\n<table width=600 border=1><tr><td><pre>";
653-
String foot = "\n</pre></table></body></html>";
654-
fileObj.println(head + text + foot);
657+
658+
Out.prtSp(1, "Writing overview HTML file: " + overFilePath);
659+
660+
fileObj.println("<!DOCTYPE html>"); // CAS404 html5
661+
fileObj.println("<html>");
662+
fileObj.println("<head><title>Overview mTCW_" + dbName + "</title></head>");
663+
fileObj.println("<body>");
664+
fileObj.println("<center>");
665+
fileObj.println("<h2>Overview for mTCW_" + dbName + " </h2>");
666+
fileObj.println("<table style=\"width: 800px; border: 2px solid #999999;\"><tr><td>");
667+
fileObj.println("<pre>");
668+
for (int i=0; i<lines.length; i++) fileObj.println(lines[i]);
669+
fileObj.println("</pre>");
670+
671+
fileObj.println("</table></center></body>");
672+
fileObj.println("</html>");
655673
fileObj.close();
656674
}
657675
catch (Exception e){ErrorReport.prtReport(e, "Error writing to " + overFilePath);}

java/src/cmp/compile/panels/BlastPanel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,15 @@ public void actionPerformed(ActionEvent arg0) {
113113
* Add blast pairs
114114
*/
115115
public void createPairsFromBlast() {
116+
Out.prtHeader("Add pairs");
116117
Out.createLogFile(theCompilePanel.getCurProjAbsDir(), Globals.searchFile);
117118

118119
if (theCompilePanel.getDBInfo().getCntPair()>0) {
119120
UserPrompt.showMsg("Pairs exist already");
120121
return;
121122
}
122123
try {
123-
Out.PrtDateMsg("Create pairs from search result files");
124+
Out.PrtTimeMsg("Create pairs from search result files");
124125
long time = Out.getTime();
125126

126127
Pairwise pw = new Pairwise(theCompilePanel);
@@ -148,6 +149,7 @@ public void createPairsFromBlast() {
148149
}
149150

150151
public void runBlast() {
152+
Out.prtHeader("Run Search");
151153
Out.createLogFile(theCompilePanel.getCurProjAbsDir(), Globals.searchFile);
152154

153155
String blastDir = theCompilePanel.getCurProjAbsDir() + "/" + Globals.Search.BLASTDIR;

java/src/cmp/compile/panels/CompileFrame.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public CompileFrame(runMTCWMain parent) {
3737
private void runMultiTCW() {
3838
Vector<String> hostNames = new Vector<String>();
3939
hostNames.add(hostsObj.host());
40-
setTitle("runMultiTCW " + Globalx.strTCWver);
40+
setTitle("runMultiTCW v" + Globalx.strTCWver);
4141

4242
setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
4343

0 commit comments

Comments
 (0)