ViewVC Help
View Directory | Revision Log | Download Tarball | View Changeset | Root Listing
root/owl/trunk
Sticky Revision:
Sort logs by:
Revision 295 - Directory Listing
Modified Tue Aug 21 08:45:59 2007 UTC (17 years, 1 month ago) by lappe
Cleaned up and debugged version (sc/bb were xchanged)   
Revision 294 - Directory Listing
Modified Mon Aug 20 15:19:54 2007 UTC (17 years, 1 month ago) by lappe
2nd version using  cull_pdb and denoting BB domin. contacts in nbhoodstring as z(helix), b(strand) and o(other)
Revision 293 - Directory Listing
Modified Mon Aug 20 12:10:13 2007 UTC (17 years, 1 month ago) by lappe
1st version for the pdb_reps25_graph_4_2
Revision 292 - Directory Listing
Modified Mon Aug 20 12:09:13 2007 UTC (17 years, 1 month ago) by lappe
2nd version using  cull_pdb and denoting BB domin. contacts in nbhoodstring as z(helix), b(strand) and o(other) 
Revision 291 - Directory Listing
Modified Mon Aug 20 09:22:36 2007 UTC (17 years, 1 month ago) by lappe
1st version scoring with pdb_reps_graph_4_2 and full nbhood string
Revision 290 - Directory Listing
Modified Mon Aug 20 09:21:59 2007 UTC (17 years, 1 month ago) by lappe
1st version scoring with pdb_reps_graph_4_2 and full nbhood string
Revision 289 - Directory Listing
Modified Mon Aug 20 09:21:22 2007 UTC (17 years, 1 month ago) by lappe
1st version scoring with pdb_reps_graph_4_2 and full nbhood string 
Revision 288 - Directory Listing
Modified Fri Aug 17 15:03:22 2007 UTC (17 years, 1 month ago) by spriya
Better checks for sequence equality in compare
Revision 287 - Directory Listing
Modified Fri Aug 17 14:32:14 2007 UTC (17 years, 1 month ago) by duarte
Now also filling chain_pdb_code in write_graph_to_db
Revision 286 - Directory Listing
Modified Fri Aug 17 12:40:00 2007 UTC (17 years, 1 month ago) by spriya
Fixed bug in  compare, wasn't assigning new weights
Revision 285 - Directory Listing
Modified Thu Aug 16 15:10:11 2007 UTC (17 years, 1 month ago) by duarte
Fixed a few bugs in reading of list file
Better output and error messages
Revision 284 - Directory Listing
Modified Thu Aug 16 14:57:31 2007 UTC (17 years, 1 month ago) by duarte
Introduced weights in Graph objects: we can read them from file or db and write them into file or db. On calling pdb.get_graph the weighs are taken as number of atom-edges per residue-edge (similar to Ioannis weights in chain_graph tables)
Revision 283 - Directory Listing
Modified Wed Aug 15 10:22:36 2007 UTC (17 years, 1 month ago) by duarte
Wasn't deep copying secondary structure when passing it to Graph
Revision 282 - Directory Listing
Modified Tue Aug 14 16:15:59 2007 UTC (17 years, 1 month ago) by duarte
Made get_graph a bit less memory hungry, by using a float[][] instead of double[][]
Not printing warnings about missing atoms anymore
Revision 281 - Directory Listing
Modified Tue Aug 14 13:49:52 2007 UTC (17 years, 1 month ago) by stehr
fixed little bug in NodeNbh
Revision 280 - Directory Listing
Modified Tue Aug 14 12:38:51 2007 UTC (17 years, 1 month ago) by stehr
changed internal implementation of runDssp method (not using getFullLength anymore)
Revision 279 - Directory Listing
Modified Tue Aug 14 12:26:28 2007 UTC (17 years, 1 month ago) by duarte
Fixed bug in Graph constructor: was not getting correct fullLength (related to last bug fix)
Revision 278 - Directory Listing
Modified Tue Aug 14 12:14:04 2007 UTC (17 years, 1 month ago) by duarte
Fixed bug with getFullLength when reading from pdb file
Now if SEQRES was missing then fullLength is maximum observed residue number instead of total number of observed residue numbers
New member variables obsLength and fullLength
Revision 277 - Directory Listing
Modified Tue Aug 14 10:54:24 2007 UTC (17 years, 1 month ago) by duarte
New script genGraph (generates graph to files)
Better error messages in both
Revision 276 - Directory Listing
Modified Tue Aug 14 10:53:27 2007 UTC (17 years, 1 month ago) by duarte
Added secondary structure to write_graph_to_db
New method getNumSecStructureElements in SecondaryStructure
Revision 275 - Directory Listing
Modified Tue Aug 14 10:28:01 2007 UTC (17 years, 1 month ago) by duarte
Fixed bug: wasn't taken into account OXT atoms in calculating the ALL graph
Revision 274 - Directory Listing
Modified Tue Aug 14 10:26:32 2007 UTC (17 years, 1 month ago) by stehr
Added new SecondaryStructure object to Pdb and Graph
Revision 273 - Directory Listing
Modified Tue Aug 14 09:13:07 2007 UTC (17 years, 1 month ago) by lappe

Revision 272 - Directory Listing
Modified Tue Aug 14 09:12:41 2007 UTC (17 years, 1 month ago) by lappe

Revision 271 - Directory Listing
Modified Tue Aug 14 09:12:21 2007 UTC (17 years, 1 month ago) by lappe

Revision 270 - Directory Listing
Modified Tue Aug 14 09:11:59 2007 UTC (17 years, 1 month ago) by lappe

Revision 269 - Directory Listing
Modified Tue Aug 14 09:11:18 2007 UTC (17 years, 1 month ago) by lappe

Revision 268 - Directory Listing
Modified Tue Aug 14 09:11:07 2007 UTC (17 years, 1 month ago) by lappe

Revision 267 - Directory Listing
Modified Tue Aug 14 09:10:58 2007 UTC (17 years, 1 month ago) by lappe

Revision 266 - Directory Listing
Modified Tue Aug 14 09:10:47 2007 UTC (17 years, 1 month ago) by lappe

Revision 265 - Directory Listing
Modified Tue Aug 14 09:10:29 2007 UTC (17 years, 1 month ago) by lappe
final version 
incl. pessimistic tie-break
Revision 264 - Directory Listing
Modified Mon Aug 13 13:53:13 2007 UTC (17 years, 1 month ago) by duarte
Initial commit of genDbGraph script
Revision 263 - Directory Listing
Modified Mon Aug 13 11:48:23 2007 UTC (17 years, 1 month ago) by duarte
Fixed potential bug in regex for ATOM lines
Revision 262 - Directory Listing
Modified Mon Aug 13 08:55:05 2007 UTC (17 years, 1 month ago) by duarte
Was still not fixed!, forgot to insert X for non standard aa
Revision 261 - Directory Listing
Modified Mon Aug 13 08:53:11 2007 UTC (17 years, 1 month ago) by duarte
Fixed reading of SEQRES, was putting nulls for non-standard aas
Revision 260 - Directory Listing
Modified Fri Aug 10 18:30:47 2007 UTC (17 years, 1 month ago) by duarte
Implemented write_graph_to_db
New member variable model in Graph, thus changed constructor
New methods to get degree of a node in Graph
New methos in NodeNbh to write other kinds of neighbourhood strings
Revision 259 - Directory Listing
Modified Fri Aug 10 16:40:44 2007 UTC (17 years, 1 month ago) by stehr
completed first version of dssp secondary structure assignment, can be switched on/off by status variable in Start, some other little fixes
Revision 258 - Directory Listing
Modified Fri Aug 10 16:06:53 2007 UTC (17 years, 1 month ago) by duarte
Now reading sequence from SEQRES lines. This fixes bug in cmview window was not showing whole contact map because of size of contact map was set to number of observed residues size
Revision 257 - Directory Listing
Modified Thu Aug 9 16:43:32 2007 UTC (17 years, 1 month ago) by stehr
fixed bugs in ATOM line export (atom names were wrongly aligned & added three more columns after coordinates), added method to run DSSP (still incomplete)
Revision 256 - Directory Listing
Modified Thu Aug 9 14:21:39 2007 UTC (17 years, 1 month ago) by duarte
Added getNumAtoms
Revision 255 - Directory Listing
Modified Thu Aug 9 13:45:10 2007 UTC (17 years, 1 month ago) by stehr
PdbfilePdb now also accepts Casp prediction files ('PFRMAT TS' instead of 'HEADER')
Revision 254 - Directory Listing
Modified Thu Aug 9 13:28:02 2007 UTC (17 years, 1 month ago) by duarte
Also writing graph to file
Revision 253 - Directory Listing
Modified Thu Aug 9 13:24:12 2007 UTC (17 years, 1 month ago) by duarte
Initial commit. Script to benchmark the graph generation algorithm 
Revision 252 - Directory Listing
Modified Thu Aug 9 10:37:14 2007 UTC (17 years, 1 month ago) by duarte
Made constructor public
Revision 250 - Directory Listing
Modified Mon Aug 6 14:48:37 2007 UTC (17 years, 1 month ago) by stehr
added application to count grid density, suppressed warning for secondary structure reassignment
Revision 249 - Directory Listing
Modified Sat Aug 4 17:53:11 2007 UTC (17 years, 1 month ago) by duarte
New methods containsContact and resetContacts
Revision 248 - Directory Listing
Modified Sat Aug 4 17:50:00 2007 UTC (17 years, 1 month ago) by duarte
Added method hasTag
Revision 247 - Directory Listing
Modified Sat Aug 4 17:07:23 2007 UTC (17 years, 1 month ago) by duarte
Made regex a constant and added | and \\-
Revision 246 - Directory Listing
Modified Sat Aug 4 17:00:58 2007 UTC (17 years, 1 month ago) by duarte
Doing now everythin with maps (using seqTags) rather than arrays. Cleaned up, refactored, using more consistent naming
Revision 245 - Directory Listing
Modified Sat Aug 4 15:40:20 2007 UTC (17 years, 1 month ago) by duarte
Added reverse map (from sequences serials to alignment serials) and did a bit of refactoring
Revision 244 - Directory Listing
Modified Wed Aug 1 14:34:36 2007 UTC (17 years, 2 months ago) by duarte
Initial commit of Alignmnent, a class representing a multiple sequence alignment
Revision 243 - Directory Listing
Modified Wed Aug 1 14:21:09 2007 UTC (17 years, 2 months ago) by lappe
Added correction by matrix size (yields avgdeltaRank)
plus correction jcnsize-1 for direct nbs 
and pessimistic tie-break 
Revision 242 - Directory Listing
Modified Wed Aug 1 07:47:18 2007 UTC (17 years, 2 months ago) by duarte
Got rid of doneRes ArrayList in getRanks, was redundant
Revision 241 - Directory Listing
Modified Tue Jul 31 16:38:13 2007 UTC (17 years, 2 months ago) by duarte
Now dealing correctly with ties.
Implemented getResiduesSortedByRank
Changed dist to be a TreeMap
Revision 240 - Directory Listing
Modified Tue Jul 31 13:51:59 2007 UTC (17 years, 2 months ago) by duarte
Fixed bug in delEdge. Wasn't taking care of if contact was given as i>j in undirected case. Also recount of contacts and set of modified to true was wrong
Revision 239 - Directory Listing
Modified Mon Jul 30 10:57:28 2007 UTC (17 years, 2 months ago) by duarte
Fixed bug in addEdge method. In case of undirected we need to check that the contact is inserted in the right order j>i
Revision 238 - Directory Listing
Modified Fri Jul 20 10:02:03 2007 UTC (17 years, 2 months ago) by duarte
Optimised slightly the compareTo method in Edge
Revision 237 - Directory Listing
Modified Thu Jul 19 14:23:35 2007 UTC (17 years, 2 months ago) by duarte
Now rmsd calculation works for 2 Pdb objects where there are missing residues (unobserved) or missing atoms
New Exception ConformationNotSameSizeError
Still not printing out individual distances between 2 conformations (altghough it is possible)
Can't specify yet a restricted range of residues to calculate rmsd only with them
Revision 236 - Directory Listing
Modified Thu Jul 19 12:57:29 2007 UTC (17 years, 2 months ago) by duarte
Fixed bug. Was not doing correctly reflection along smallest principal axis in is_reflection case
Revision 235 - Directory Listing
Modified Thu Jul 19 12:43:12 2007 UTC (17 years, 2 months ago) by duarte
Implemented rmsd calculation (based on Jama matrix package)
rmsd method still not taking care of unobserved or missing atoms. Also not returning individual distances between optimally superimposed structures (although it can calculate them in commented out code)

Revision 234 - Directory Listing
Modified Tue Jul 10 14:14:58 2007 UTC (17 years, 2 months ago) by duarte
Made ContactList a TreeSet instead of an ArrayList, should improve performance (log(n) rather than linear)
REFACTORING: 
ContactList -> EdgeSet
Contact -> Edge
Revision 233 - Directory Listing
Modified Tue Jul 10 13:01:50 2007 UTC (17 years, 2 months ago) by duarte
Added method getCopy
Revision 232 - Directory Listing
Modified Tue Jul 10 13:00:23 2007 UTC (17 years, 2 months ago) by duarte
Now checking in addEdge that we don't duplicate edges
New methods: get2ndshell, copyKeepingNodes
Revision 231 - Directory Listing
Modified Tue Jul 10 09:57:20 2007 UTC (17 years, 2 months ago) by lappe
production - stable
Revision 230 - Directory Listing
Modified Mon Jul 9 15:35:01 2007 UTC (17 years, 2 months ago) by stehr
added class NodeSet
Revision 229 - Directory Listing
Modified Mon Jul 9 15:02:24 2007 UTC (17 years, 2 months ago) by duarte
Now calculate_dist_matrix returns the matrix with residue serials as indices (rather than atom serials)
Now AA.isValidSingleCT and AA.isValidMultiCT check also for crossed cases
Revision 228 - Directory Listing
Modified Mon Jul 9 14:32:47 2007 UTC (17 years, 2 months ago) by duarte
Now can do crossed contacts also with geometric hashing
Renamed getGraphGeometricHashing to get_graph (so interface remains as it was before we introduced the geometric hashing)
Revision 227 - Directory Listing
Modified Fri Jul 6 14:23:51 2007 UTC (17 years, 2 months ago) by lappe
single residue target Evaluation in target* tables 
added verbosity level VL to shrink output 
Revision 226 - Directory Listing
Modified Fri Jul 6 13:43:30 2007 UTC (17 years, 2 months ago) by duarte
First geometric hashing implementation for calculating graph (with new class Box). Only does non-crossed cts
Geometrich hashing graph calculation kept in a separate method than normal get_graph. Still either of the methods can be used.
Using javax.vectormath objects for the vectors (distance method also from that)
Using TreeMap for get_coords_for_ct
Revision 225 - Directory Listing
Modified Fri Jul 6 12:41:48 2007 UTC (17 years, 2 months ago) by lappe
Only cosmetic changes to polish the output 
Revision 224 - Directory Listing
Modified Thu Jul 5 13:42:37 2007 UTC (17 years, 2 months ago) by duarte
Now calculate distance matrix uses HashMap instead of TreeMap
Needed to change the hashCode function in Contact to make it faster
Revision 223 - Directory Listing
Modified Thu Jul 5 10:17:30 2007 UTC (17 years, 2 months ago) by duarte
Added cross contacts to isValidCT
Revision 222 - Directory Listing
Modified Wed Jul 4 15:39:01 2007 UTC (17 years, 2 months ago) by duarte
New secstruct2resinterval TreeMap to store secondary structure elements as a map of ss string ids to intervals
New class Interval
Revision 221 - Directory Listing
Modified Wed Jul 4 14:50:25 2007 UTC (17 years, 2 months ago) by lappe
minor bugfix in reportResults( cnsize*deltarank) call
Revision 219 - Directory Listing
Modified Tue Jul 3 15:38:21 2007 UTC (17 years, 2 months ago) by duarte
Now reading also secondary structure (in a map of residue serials to secondary structure identifiers)
Revision 218 - Directory Listing
Modified Fri Jun 29 09:13:52 2007 UTC (17 years, 3 months ago) by lappe

Revision 217 - Directory Listing
Modified Fri Jun 29 09:04:00 2007 UTC (17 years, 3 months ago) by stehr
now casting pdb codes to lower and pdb chain codes to upper in all constructors
Revision 216 - Directory Listing
Modified Fri Jun 29 08:30:55 2007 UTC (17 years, 3 months ago) by duarte
Fixed bug: ATOM lines printing was locale dependant, thus was printing ',' for decimal separators in some locales
Revision 215 - Directory Listing
Modified Thu Jun 28 15:43:04 2007 UTC (17 years, 3 months ago) by stehr
some clean up of exceptions in Pdb and Graph classes:
merged PdbAcCodeNotFoundError and MsdAcCodeNotFoundError into PdbCodeNotFoundError,
created new PdbChainCodeNotFound, got rid of stderr output, throwing exceptions with informative messages instead
Revision 214 - Directory Listing
Modified Thu Jun 28 14:09:16 2007 UTC (17 years, 3 months ago) by lappe
debugged version of the iteration/validation of nbhoodstrings 
with added temp_table hashing for speedup (factor ca. 10x) 
needs additional (empty) database <nbhashtables> for storage
 
Revision 213 - Directory Listing
Modified Thu Jun 28 09:38:49 2007 UTC (17 years, 3 months ago) by lappe
Buggy version : 2nd to n2th row have same values 
as the first row - ? temp_nbhood stays the same?  
Revision 212 - Directory Listing
Modified Thu Jun 28 09:26:34 2007 UTC (17 years, 3 months ago) by duarte
Fixed bug in regex introduced in last revision
Revision 211 - Directory Listing
Modified Thu Jun 28 09:22:26 2007 UTC (17 years, 3 months ago) by duarte
Fixed graph file format checking, was not working properly
Revision 210 - Directory Listing
Modified Wed Jun 27 15:57:39 2007 UTC (17 years, 3 months ago) by duarte
Now throwing also SQLExceptions for individual queries, not just for connections
Revision 209 - Directory Listing
Modified Wed Jun 27 15:14:31 2007 UTC (17 years, 3 months ago) by duarte
Throwing exception also in case graph file not in right format at all (no #AGLAPPE in 1st line)
Fixed bug: was not reading correctly #PDB CHAIN CODE
Revision 208 - Directory Listing
Modified Wed Jun 27 14:42:12 2007 UTC (17 years, 3 months ago) by duarte
FIXED BUGS:
- directed was not set when reading from cm file
- pdbChainCode not set when reading from db given pdbCode
- filling pdbresser2resser and resser2pdbresser hashmaps also in reading from pdb file
- using "A" as chainCode when reading from pdb file
- some error handling for file formats: new exception classes GraphFileFormatError and PdbfileFormatError
Revision 207 - Directory Listing
Modified Wed Jun 27 11:06:34 2007 UTC (17 years, 3 months ago) by duarte
Restructured construction of Pdb and Graph objects: now subclasses for each case
Cleaned up and made consistent database connections
Now can also pass a MySQLConnection in all cases (as well as having default values for a default connection)
PdbaseInfo and MsdsdInfo classes removed: now merged into PdbasePdb and MsdsdPdb respectively
Updated following this changes testPdb and compareCMs

Revision 206 - Directory Listing
Modified Tue Jun 26 17:01:48 2007 UTC (17 years, 3 months ago) by duarte
Major refactoring:
 accode -> pdbCode
 chaincode -> pdbChainCode
 chain -> chainCode
Major change of signatures (publics to privates)
Implemented getters for needed member variables
Major clean up
Revision 203 - Directory Listing
Modified Tue Jun 26 14:25:58 2007 UTC (17 years, 3 months ago) by duarte
Using apache xmlrpc version 3.0 in PyMolServerOutputStream
Revision 202 - Directory Listing
Modified Thu Jun 21 17:18:11 2007 UTC (17 years, 3 months ago) by duarte
MySQLConnection now throwing SQLException on connect
Many files changed following this: all calling classes now re-throwing or catching the SQLException
Revision 200 - Directory Listing
Modified Mon Jun 18 17:43:43 2007 UTC (17 years, 3 months ago) by duarte
New isValidCT methods in AA
New method get_resser_from_atomser in Pdb
Revision 199 - Directory Listing
Modified Mon Jun 18 09:03:39 2007 UTC (17 years, 3 months ago) by duarte
Implemented getRanks()
Revision 198 - Directory Listing
Modified Mon Jun 18 08:47:26 2007 UTC (17 years, 3 months ago) by duarte
AA class is now db independent:
Hard coded getaas2atoms, not getting it anymore from db.
Revision 196 - Directory Listing
Modified Wed Jun 13 15:05:31 2007 UTC (17 years, 3 months ago) by duarte
Added toString and getMotifFullGaps missing in EdgeNbh
Revision 195 - Directory Listing
Modified Wed Jun 13 14:24:43 2007 UTC (17 years, 3 months ago) by duarte
Made contactTypes a String[]
Revision 194 - Directory Listing
Modified Wed Jun 13 10:57:00 2007 UTC (17 years, 3 months ago) by duarte
Added contactTypes method and made private methods private
Revision 193 - Directory Listing
Modified Wed Jun 13 07:57:31 2007 UTC (17 years, 3 months ago) by duarte
Moved motif static methods to Background class. They didn't belong here
Revision 192 - Directory Listing
Modified Tue Jun 12 18:27:20 2007 UTC (17 years, 3 months ago) by duarte
Made contacts public
Revision 191 - Directory Listing
Modified Tue Jun 12 17:15:17 2007 UTC (17 years, 3 months ago) by duarte
New method getAllEdgeNbhSizes
Revision 190 - Directory Listing
Modified Tue Jun 12 13:38:46 2007 UTC (17 years, 3 months ago) by duarte
NEW FEATURE: mapping of pdb residue serials and internal serials in the Pdb object

Revision 189 - Directory Listing
Modified Tue Jun 12 10:38:29 2007 UTC (17 years, 3 months ago) by duarte
Added basic compare method to the Graph class and test class compareCMs
Revision 187 - Directory Listing
Modified Mon Jun 11 14:04:54 2007 UTC (17 years, 3 months ago) by duarte
Changed to version 0.5
Revision 186 - Directory Listing
Modified Thu Jun 7 10:42:13 2007 UTC (17 years, 3 months ago) by duarte
FIXED BUG: The returned regex in motif2regex was wrong, needed a ".*" at the beginning
Revision 185 - Directory Listing
Modified Thu Jun 7 09:14:46 2007 UTC (17 years, 3 months ago) by duarte
Implemented hashCode method in Contact and GenericContact. Was necessary to use these classes as keys in Maps
Fixed bug in equals method in GenericContact
Changed middle character from "\t" to " " in toString
Revision 184 - Directory Listing
Modified Wed Jun 6 10:02:24 2007 UTC (17 years, 3 months ago) by duarte
New class GenericContact. To store a generic contact, i.e. a pair of residue types
Revision 183 - Directory Listing
Modified Tue Jun 5 14:32:04 2007 UTC (17 years, 3 months ago) by duarte
Fixed bug: calculateEntropy was wrong when a pi was 0
Revision 182 - Directory Listing
Modified Tue Jun 5 13:41:05 2007 UTC (17 years, 3 months ago) by duarte
FIXED BUG: the switch statement was missing the breaks
This was causing strange behaviour in counts NodeBackground getSize methods and also was making them being too slow
Revision 181 - Directory Listing
Modified Tue Jun 5 12:27:49 2007 UTC (17 years, 3 months ago) by duarte
New class NbhProbDistribution
In NodeNbh implemented a few static classes to convert between different motifs and to match motifs using differing criteria

Revision 180 - Directory Listing
Modified Fri Jun 1 15:17:40 2007 UTC (17 years, 4 months ago) by lappe

Revision 179 - Directory Listing
Modified Thu May 31 09:41:41 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: fixed restrictContactsToMax/MinRange. Couldn't delete contacts at the same time as looping in them
NEW CLASSES NodeNbh and EdgeNbh, now used in getNodeNbh and getEdgeNbh
New method getResidueType
Revision 178 - Directory Listing
Modified Tue May 29 08:01:46 2007 UTC (17 years, 4 months ago) by duarte
Fixed bug in getMaxRange method, was not assigning to the max variable
Added toString method to Contact
Revision 177 - Directory Listing
Modified Mon May 28 09:55:06 2007 UTC (17 years, 4 months ago) by duarte
Made public getUserName
Revision 176 - Directory Listing
Modified Mon May 28 09:53:00 2007 UTC (17 years, 4 months ago) by duarte
New static method getUserName and new constructor with only server and db
Revision 175 - Directory Listing
Modified Fri May 25 17:31:58 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG in initialisation of fullLength when reading from file. In case of no sequence and nodes provided, was not getting correctly the maximum value for contacts. Now using the method getMaxContact from new class ContactList
NEW FUNCTIONALITY in Graph:
-New member variable modified
-New methods addEdge, delEdge, restrictContactsToMaxRange, restrictContactsToMinRange, getContacts, getNodes, copy
-Improved slightly the implementation of getEdgeNbh 
FIXED BUG in initialisation of fullLenght when reading from file. In case of no sequence and nodes provided, was not getting correctly the maximum value for contacts. Now using the method getMaxContact from ContactList
New class ContactList
NEW FUNCTIONALITY in Graph:
-New member variable modified
-New methods addEdge, delEdge, restrictContactsToMaxRange, restrictContactsToMinRange, getContacts, getNodes, copy
-Improved slightly the implementation of getEdgeNbh 
New method getRange in Contact
Revision 174 - Directory Listing
Modified Fri May 25 15:07:55 2007 UTC (17 years, 4 months ago) by lappe
original version to be saved ... 
Revision 173 - Directory Listing
Modified Fri May 25 15:07:32 2007 UTC (17 years, 4 months ago) by lappe
running version summing delta Rank
still to implement sum(deltza) for entropy etc. 
Revision 172 - Directory Listing
Modified Fri May 25 13:41:19 2007 UTC (17 years, 4 months ago) by duarte
Got rid of some unnecessary warnings
Revision 171 - Directory Listing
Modified Fri May 25 13:15:19 2007 UTC (17 years, 4 months ago) by lappe
version of iterateNBHood for the uppercase background info 
pdb_reps_graph_4_2 for briefer output & calculation 
Revision 170 - Directory Listing
Modified Fri May 25 10:01:44 2007 UTC (17 years, 4 months ago) by lappe
Running version, takes graph_id and resnr as input 
Revision 169 - Directory Listing
Modified Thu May 24 16:20:12 2007 UTC (17 years, 4 months ago) by lappe

Revision 168 - Directory Listing
Modified Thu May 24 16:19:48 2007 UTC (17 years, 4 months ago) by lappe

Revision 167 - Directory Listing
Modified Thu May 24 16:19:21 2007 UTC (17 years, 4 months ago) by lappe

Revision 166 - Directory Listing
Modified Thu May 24 16:19:00 2007 UTC (17 years, 4 months ago) by lappe
First version of exchange routine contact vs. CN - non functional 
Revision 165 - Directory Listing
Modified Thu May 24 15:43:13 2007 UTC (17 years, 4 months ago) by duarte
New functionality: added methods to get node/edge neighbours
Revision 163 - Directory Listing
Modified Thu May 24 10:52:24 2007 UTC (17 years, 4 months ago) by stehr
added Manifest
Revision 162 - Directory Listing
Modified Thu May 24 10:46:39 2007 UTC (17 years, 4 months ago) by duarte
Updated test class for Pdb/Graph objects
Revision 161 - Directory Listing
Modified Thu May 24 10:12:41 2007 UTC (17 years, 4 months ago) by stehr
made Graph.directed public
Revision 160 - Directory Listing
Modified Thu May 24 09:52:22 2007 UTC (17 years, 4 months ago) by lappe
tab-Formatted output added
Revision 159 - Directory Listing
Modified Thu May 24 09:37:25 2007 UTC (17 years, 4 months ago) by duarte
Moved ContactMap and EdgeState out of this repository. 
Extra functionality of ContactMap now in Graph:
- new member variables fullLength, obsLength, numContacts. New method getIntMatrix
- removed getCM method
Revision 158 - Directory Listing
Modified Tue May 22 15:37:15 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG in get_db_graph_info, was not dealing well with the case of chaincode being NULL in the database
Revision 157 - Directory Listing
Modified Tue May 22 12:04:43 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: in getCM when directed was passing a reference to the contacts object and not deep copying it!
Revision 156 - Directory Listing
Modified Tue May 22 10:40:04 2007 UTC (17 years, 4 months ago) by duarte
Now passing also chaincode from Pdb object to Graph object in get_graph
Revision 155 - Directory Listing
Modified Tue May 22 10:13:03 2007 UTC (17 years, 4 months ago) by duarte
Fixed bug: wasn't initialising accode, chain and chaincode when reading to file. Now all set to "" when not present in file
Revision 154 - Directory Listing
Modified Fri May 18 09:32:28 2007 UTC (17 years, 4 months ago) by duarte
Recoded chain reading in read_pdb_data_from_file to make it clearer, no change in functionality
Revision 153 - Directory Listing
Modified Wed May 16 17:22:08 2007 UTC (17 years, 4 months ago) by duarte
NEW FUNCTIONALITY: Reading from pdb file given chain code or model serial fully implemented
Changed the chain that is dumped in dump2pdbfile directly to the Pdb.chain field i.e. internal chain identifier
Loads of new comments, including java doc for all constructors
Revision 152 - Directory Listing
Modified Wed May 16 14:12:50 2007 UTC (17 years, 4 months ago) by duarte
FIXED 2 BUGS. NEW FEATURE reading graph from db given graph_id
Bugs:
- nodes TreeMap in read_graph_from_file contained one letter res codes, now three letter codes
- in getCM was passing residues as a TreeMap of nums to three letter residue types, now passing one letter residue types
New constructor for getting graph from db given graph_id, new method to go with that get_db_graph_info

Revision 151 - Directory Listing
Modified Wed May 16 14:05:48 2007 UTC (17 years, 4 months ago) by lappe
working version for each single nbring residue 
Revision 150 - Directory Listing
Modified Wed May 16 14:05:08 2007 UTC (17 years, 4 months ago) by lappe
- functional
Revision 149 - Directory Listing
Modified Wed May 16 14:04:54 2007 UTC (17 years, 4 months ago) by lappe
min-info - functional
Revision 148 - Directory Listing
Modified Wed May 16 13:59:25 2007 UTC (17 years, 4 months ago) by lappe
list of infogain per neighbouring residue 
- still buggy w.r.t. x elimination 
Revision 147 - Directory Listing
Modified Wed May 16 12:34:49 2007 UTC (17 years, 4 months ago) by lappe
Max.Info Gain still with problems if only negative (loss) of info 
Revision 146 - Directory Listing
Modified Tue May 15 13:51:17 2007 UTC (17 years, 4 months ago) by duarte
Made cutoff and ct public
Revision 145 - Directory Listing
Modified Tue May 15 13:28:24 2007 UTC (17 years, 4 months ago) by duarte
Made some fields public: sequence, accode, chaincode, model
Revision 144 - Directory Listing
Modified Tue May 15 12:13:31 2007 UTC (17 years, 4 months ago) by duarte
NEW FEATURE: Read and write graphs from file fully implemented.

Refactored read_contacts_from_file to read_graph_from_file. Now can read other fields as well as contacts. Also gets nodes if sequence present
New method write_graph_to_file

Revision 143 - Directory Listing
Modified Tue May 15 10:06:47 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: last commit didn't fix bug correctly:
Changed the ContactMap constructor to put into residueNums and residueTypes nums from 1 to maximum of residues.keySet()

Made public accode and chain fields in Graph
Revision 142 - Directory Listing
Modified Tue May 15 08:33:44 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: getCM wasn't working well when reading from db and there were unobserved residues

Now setting the sequence to blank when reading from db. Also when reading from file (still nodes reading is not implemented)
In ContactMap constructor different handling when sequence is blank
Revision 141 - Directory Listing
Modified Mon May 14 15:51:54 2007 UTC (17 years, 4 months ago) by duarte
Changed input in constructor for reading from db: chain->chaincode
Now getgraphid initialises too the internal chain code (pchain_code from graph db)
Revision 140 - Directory Listing
Modified Mon May 14 15:34:21 2007 UTC (17 years, 4 months ago) by stehr
Made Pdb.acccode public
Revision 139 - Directory Listing
Modified Mon May 14 15:29:08 2007 UTC (17 years, 4 months ago) by duarte
Changed default accode and chaincode to "Unknown" when reading from pdb file
Revision 138 - Directory Listing
Modified Mon May 14 14:58:29 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: wasn't setting the chain field when reading from msdsd
Revision 137 - Directory Listing
Modified Mon May 14 14:53:09 2007 UTC (17 years, 4 months ago) by stehr
Made chain field in PDB class public
Revision 136 - Directory Listing
Modified Mon May 14 14:50:44 2007 UTC (17 years, 4 months ago) by duarte
FIXED BUG: pdb data load from msdsd wasn't working for NULL chaincodes
Revision 135 - Directory Listing
Modified Mon May 14 09:49:04 2007 UTC (17 years, 4 months ago) by duarte
NEW FUNCTIONALITY: reading of graph from db is fully implemented for all cases

New chain member variable in the Info classes, read in get_asym_id (Pdbase) and in get_chain_id (Msdsd)
Reading chain also in Pdb in read_pdb_data_from_file
Not reading chain anymore in read_atomData of PdbaseInfo
Added oneletter2threeletter and getoneletter2threeletter to AA class
Changes in Graph:
- added db static vars and getUserName method
- new member variables graphid and sm_id
- new method read_graph_from_db to read contacts, nodes (and sequence from nodes) from db
- new method getgraphid
New Exception class GraphIdNotFoundError
Revision 134 - Directory Listing
Modified Mon May 14 07:52:10 2007 UTC (17 years, 4 months ago) by duarte
Implemented basic reading contacts from file
Revision 133 - Directory Listing
Modified Fri May 11 09:37:38 2007 UTC (17 years, 4 months ago) by duarte
New functionality: now can create a Pdb object passing a model serial for NMR structures. Not implemented when reading from pdb files!
Revision 132 - Directory Listing
Modified Thu May 10 16:04:06 2007 UTC (17 years, 4 months ago) by duarte
Added more tests for all cases
Revision 131 - Directory Listing
Modified Thu May 10 15:53:14 2007 UTC (17 years, 4 months ago) by duarte
2 new convenience methods: getBoolMatrix and getIntMatrix
Got rid of method to print constraint equations, was useless
Revision 130 - Directory Listing
Modified Thu May 10 15:52:24 2007 UTC (17 years, 4 months ago) by duarte
NEW FEATURE: reading pdb data from msdsd
New classes MsdsdInfo and its exception classes
FIXED BUG in dump2pdbfile in Pdb: was not sorting the atom lines
Revision 129 - Directory Listing
Modified Thu May 10 13:12:32 2007 UTC (17 years, 4 months ago) by duarte
NEW FUNCTIONALITY: can retrieve now a ContactMap object from a Graph object
New method getCM in Graph. New member variables: sequence, accode, chain, nodes, directed
Passing more data from Pdb to Graph in get_graph
New constructor in ContactMap
Revision 128 - Directory Listing
Modified Wed May 9 16:29:39 2007 UTC (17 years, 4 months ago) by duarte
ContactMap and EdgeState classes moved here from CMPredict repository
Revision 127 - Directory Listing
Modified Wed May 9 14:54:02 2007 UTC (17 years, 4 months ago) by duarte
Implemented read of pdb data from pdb file.
FIXED BUG in dumping of pdb file. Was missing end of line in atom lines
Added more tests in testPdb

Revision 126 - Directory Listing
Modified Wed May 9 12:04:35 2007 UTC (17 years, 4 months ago) by duarte
MYSQLUSER now taken from unix name with new getUserName method
Revision 125 - Directory Listing
Modified Wed May 9 11:58:59 2007 UTC (17 years, 4 months ago) by duarte
Initial commit of testPdb, to test the proteinstructure package
Revision 124 - Directory Listing
Modified Wed May 9 11:57:24 2007 UTC (17 years, 4 months ago) by duarte
Added error handling for PdbaseInfo: 2 new exception classes
Revision 123 - Directory Listing
Modified Wed May 9 10:45:53 2007 UTC (17 years, 4 months ago) by duarte
Initial commit of the proteinstructure package. Contains classes to use pdb protein structures
Revision 121 - Directory Listing
Modified Thu May 3 07:40:23 2007 UTC (17 years, 4 months ago) by stehr
Updated TableSorter to compile in Java 1.5 and some trivial changes in comments
Revision 120 - Directory Listing
Modified Mon Apr 30 14:02:56 2007 UTC (17 years, 5 months ago) by stehr
added overloaded method setDistance for use in CM2Pymol for chains without chain code
Revision 119 - Directory Listing
Modified Fri Mar 30 13:28:50 2007 UTC (17 years, 6 months ago) by dinse

Revision 118 - Directory Listing
Modified Wed Mar 28 13:41:03 2007 UTC (17 years, 6 months ago) by dinse

Revision 117 - Directory Listing
Modified Wed Mar 14 09:24:24 2007 UTC (17 years, 6 months ago) by dinse
Fixed space missing in one of the queries
Revision 116 - Directory Listing
Modified Fri Mar 2 17:38:30 2007 UTC (17 years, 7 months ago) by filippis
testGraph2Pml.java fixed according to changes made in Msdsd2Pdb.java
Revision 115 - Directory Listing
Modified Fri Mar 2 13:53:04 2007 UTC (17 years, 7 months ago) by duarte
Adapted to msdsd_00_07_a
Now uses MySQLConnection and PrintWriters and not mysql client through shell (got rid of that method)
Thus all methos taking new arguments user and pdbFile
New methods:
 export2file taking accession_code, chain_pdb_code 
 export2file taking chain_id, model_id

Revision 114 - Directory Listing
Modified Tue Feb 27 08:49:10 2007 UTC (17 years, 7 months ago) by duarte
Initial commit. PyMol API script example, also using our PymolServerOutputStream to send commands directly to server
Revision 113 - Directory Listing
Modified Thu Oct 19 13:22:32 2006 UTC (17 years, 11 months ago) by duarte
Modified method getIdFromMaster to create keyTable if it didn't exist
Revision 112 - Directory Listing
Modified Mon Oct 16 15:57:50 2006 UTC (17 years, 11 months ago) by duarte
New static method getIdFromMaster. Inserts an id in a table in key_master database and gets the last_insert_id. To be used in graph generation
Revision 110 - Directory Listing
Modified Tue Sep 19 13:04:55 2006 UTC (18 years ago) by duarte
New class MySQLConnectionCheck, to check whether MySQL servers are alive, uses threads
Changes in DataDistribution:
- new field: String[] nodes, initialised in constructor
- changed constructor to check for nodes that are alive, using new method nodesAlive
- renamed getNodes to getMySQLNodes. New method getNodes just returns the new field String[] nodes
DataDistributer: renamed calls to DataDistribution's getNodes to getMySQLNodes
Revision 109 - Directory Listing
Modified Tue Sep 19 09:27:12 2006 UTC (18 years ago) by duarte
Made loadMySQLDriver method public (needed to call it from other class) and static (makes more sense)
Revision 108 - Directory Listing
Modified Tue Sep 19 09:18:04 2006 UTC (18 years ago) by duarte
Added functionality to run commands in different threads
Revision 107 - Directory Listing
Modified Wed Sep 13 08:53:03 2006 UTC (18 years ago) by duarte
Initial commit, Hello World MySQLConnection program for newcomers
Revision 106 - Directory Listing
Modified Thu Sep 7 13:45:36 2006 UTC (18 years ago) by duarte
HOSTSFILE changed to new /project/StruPPi/Cluster/admin/hosts_mysql_server.txt
Revision 104 - Directory Listing
Modified Tue Aug 8 11:10:01 2006 UTC (18 years, 1 month ago) by duarte
Modified finalizeDirs() to be tri-state: prompt, force or noremove. By default force. (using new field rmvtmp)
Getting rid of temp dir created in constructor when calling setDumpDir, otherwise an empty tmp dir was left lying around

Revision 102 - Directory Listing
Modified Fri Aug 4 14:34:00 2006 UTC (18 years, 1 month ago) by duarte
Method finalizeDirs now prompts by default whether to delete temp dirs, unless new boolean field "force" is true.
Revision 98 - Directory Listing
Modified Mon Jul 24 14:37:40 2006 UTC (18 years, 2 months ago) by stehr
Added class TableSorter to tools package
Revision 97 - Directory Listing
Modified Fri Jun 2 09:49:54 2006 UTC (18 years, 3 months ago) by duarte
Added getters/setters to host,db,user and password in MySQLConnection
Added another constructor to QueryThread to take just the MySQLConnection as argument
Revision 96 - Directory Listing
Modified Wed May 31 11:02:12 2006 UTC (18 years, 4 months ago) by duarte
Slight improve in insertIdsToKeyMaster method. Instead of querying in each insert for the nodeid, we get the node names to node id mapping in a HashMap through another query.
Revision 95 - Directory Listing
Modified Wed May 31 09:44:05 2006 UTC (18 years, 4 months ago) by duarte
Adapted also ClusterConnection and checking methods in DataDistribution to text/numeric keys.
Some methods in ClusterConnection have not changed at all even though they deal with keys. I haven't changed them because they are applicable only to numeric keys:
insertIdxInMaster, getLastInsertId and getIdxSet
Revision 94 - Directory Listing
Modified Mon May 29 15:22:13 2006 UTC (18 years, 4 months ago) by duarte
Simplified the code for dealing with text/numerical keys.
Now there's no more double methods Integer/String, rather the methos use a generic Object[] that stores either String[] or Integer[] depending on the case.
Thus modified a few methods in DataDistributer, DataDistribution and MySQLConnection.
Revision 93 - Directory Listing
Modified Wed May 24 15:44:25 2006 UTC (18 years, 4 months ago) by duarte
Now split of data also working with text-based keys as well as numerical
MySQLConnection:
- method getAllIds4KeyAndTable now splitted into two methods one for numerical ids and another for text ids
- new methods getColumnType and isKeyNumerical
DataDistribution:
- method getIdSetsFromNodes splitted into two one for numerical ids one for text ids
DataDistributer:
- new methods: splitIdsIntoSets now splitted into two methods one numerical, one text
- change methods: splitTableToCluster, splitTable, insertIdsToKeyMaster, removePK, addPK, createNewKeyMasterTbl, removeZeros, loadSplitData, dumpSplitData to make them work for both text and numeric keys. Introduced generic type T in some of them
- some bugs corrected:
-- an important one in createNewKeyMasterTbl, was introducing record in dbs_keys with srcDb instead of destDb as it should have been
-- some bugs in loadSplitData and dumpSplitData to account for cases in which there are less ids than number of nodes and thus some nodes don't get any data. Wasn't counting with this before.
Revision 92 - Directory Listing
Modified Fri May 5 14:39:20 2006 UTC (18 years, 4 months ago) by duarte
Made KEYMASTERDB in DataDistribution public. Now using in all other classes/programs that need KEYMASTERDB.
Revision 89 - Directory Listing
Modified Fri May 5 10:46:35 2006 UTC (18 years, 4 months ago) by duarte
Added method to setDumpDir method
Revision 87 - Directory Listing
Modified Wed May 3 08:50:26 2006 UTC (18 years, 4 months ago) by duarte
Improved considerably the splitTableToCluster method:
- got rid of the unnecessary step of creating partial tables before dumping.
- now directly dumping with new method dumpSplitData, a modified dumpData that dumps using a WHERE condition
- added variable NUM_CONCURRENT_SAMEHOST_WRITE_QUERIES used in dumpSplitData method. It sets the concurrency when dumping locally only from the master
Revision 86 - Directory Listing
Modified Fri Apr 28 10:31:35 2006 UTC (18 years, 5 months ago) by duarte
Added PARALLELISM in load/dump of tables using new class QueryThread (extends Thread)
Modified methods loadData, dumpData and loadSplitData to dump/load parallely in cases that is useful by using the QueryThread class.
New method initializeDirs(String[]) to do some of the dir initialization that was in dumpData
Got rid of one of the getConnectionToNode method, not needed anymore
New important 2 final static variables: NUM_CONCURRENT_READ_QUERIES and NUM_CONCURRENT_WRITE_QUERIES. They define how much concurrency we want in reads/writes to nfs for loads/dumps
Revision 85 - Directory Listing
Modified Mon Apr 24 12:41:27 2006 UTC (18 years, 5 months ago) by duarte
MAJOR change.
Split DataDistribution into 2 classes: DataDistributer and DataDistribution.
I haven't actually changed or added functionality
DataDistributer deals with the distribution of the data, while DataDistribution deals with things to do when data is already distributed, right now is only a few data checks
Note that DataDistributer now has two db fields: srcDb and destDb. This is different to before, when destDb was rather a parameter passed as arguments to the methods
Methods in DataDistributer have been tidied up a little (specially load and dump ones)
Revision 84 - Directory Listing
Modified Thu Apr 20 10:42:38 2006 UTC (18 years, 5 months ago) by duarte
Fixed bug in getTables4Db. Was closing the connection. Shouldn't do this!
Add method getAllIds4KeyAndTables, moved from DataDistribution. It makes more sense to have it here.

Revision 83 - Directory Listing
Modified Wed Apr 19 14:02:35 2006 UTC (18 years, 5 months ago) by duarte
Got rid of getTables4Db in DataDistribution
Add method getTables4Db to MySQLConnection. Makes a lot more sense.
Changed accordingly the only call to the method in DataDistribution's method chkCounts
Revision 81 - Directory Listing
Modified Wed Apr 12 15:27:05 2006 UTC (18 years, 5 months ago) by duarte
Changed the Connection fields to be MySQLConnection.
Thanks to this, simplify considerably a lot of the methods by using the MySQLConnection methods.
Got rid of method loadSQLDriver and URL final field
Revision 80 - Directory Listing
Modified Wed Apr 12 14:59:37 2006 UTC (18 years, 5 months ago) by duarte
Introduced better javadoc comments in constructors.
Revision 79 - Directory Listing
Modified Wed Apr 12 11:03:01 2006 UTC (18 years, 5 months ago) by duarte
Modified insertIdsToKeyMaster method. Now removing pk in table before inserting, then removing zeros and adding finally the pk back. At that point mysql should complain if there are duplicates
New methods to deal with key_master database actions. They belong in another class, but for the moment here.
- createNewKeyMasterTbl
- removePK
- addPK
- removeZeros
Revision 78 - Directory Listing
Modified Wed Apr 12 08:52:25 2006 UTC (18 years, 5 months ago) by duarte
Got rid of method createNewKeyMasterTbl
Didn't belong here but in DataDistribution (at least for now)

Revision 77 - Directory Listing
Modified Wed Apr 12 08:26:36 2006 UTC (18 years, 5 months ago) by duarte
Bug in new method createNewKeyMasterTbl
The query for inserting the new record in dbs_keys was totally wrong
Wrote something more correct and simpler!
Revision 76 - Directory Listing
Modified Tue Apr 11 16:00:26 2006 UTC (18 years, 5 months ago) by duarte
Minor change, in getHostId4Ifx one of the error messages was being written to out, now to err
Revision 75 - Directory Listing
Modified Tue Apr 11 14:33:39 2006 UTC (18 years, 5 months ago) by duarte
In latest commit method insertIdsToKeyMaster wasn't yet complying with the new way of dealing with key
Now modified insertIdsToKeyMaster accordingly. Now we create a ClusterConnection object to call the createNewKeyMasterTable method.
Revision 74 - Directory Listing
Modified Tue Apr 11 14:27:17 2006 UTC (18 years, 5 months ago) by duarte
New method createNewKeyMasterTbl
To create a new keyMaster table in the key_master database for a certain table
Will also insert a new record in dbs_keys for the new table.
If a record for it already existed it will print an error and continue as the error is harmless.
Revision 73 - Directory Listing
Modified Tue Apr 11 10:42:54 2006 UTC (18 years, 5 months ago) by duarte
Got rid of keyColumn
Now key is directly the keyColumn name, e.g. key is asu_id not asu
This makes things less confusing and simpler.
We've done this following last commit of DataDistribution to also change the ways we deal with key/keyColumn.
Note that now the checkKeyCounts and checkDifferingKeys are using to get the keyTable name a ClusterConnection object and the new ClusterConnection method getTableOnNode
Revision 72 - Directory Listing
Modified Tue Apr 11 10:29:39 2006 UTC (18 years, 5 months ago) by duarte
2 important changes:
Fixed important bug on the constructor that gets the key passed (the bug was there since a lot of revisions ago and always passed since that constructor was not used in other classes)
Got rid of keyColumn, was useless. Now key is directly the keyColumn name which is more logical and makes everything simpler
- changed all calls to keyColumn to key
- got rid of keyColumn field and setKeyColumn
- changed completely the methods setKeyTable to get the table name from the dbs_keys on key_master db
- introduced new method getTableOnNode. Gets the name of the table where splitted data is stored for this db and key
Revision 71 - Directory Listing
Modified Mon Apr 10 16:01:01 2006 UTC (18 years, 5 months ago) by duarte
New method getIdSetsFromNodes, equivalent to splitIdsIntoSets but rather a posteriori, when tables are already distributed in cluster's nodes
Modified method getAllIds4KeyAndTable, now taking host as parameter too, more general
Changed the comments a lot for all those 3 methods. There are many catches to be taken in account, the comments explain them quite well
Revision 70 - Directory Listing
Modified Fri Apr 7 14:49:02 2006 UTC (18 years, 5 months ago) by duarte
KEYMASTERDB had value for testing, change that back.
Revision 69 - Directory Listing
Modified Fri Apr 7 14:44:08 2006 UTC (18 years, 5 months ago) by duarte
Added method insertIdsToKeyMaster
Added call to the new insertIdsToKeyMaster in splitTableToCluster method
Revision 68 - Directory Listing
Modified Fri Apr 7 13:26:05 2006 UTC (18 years, 5 months ago) by duarte
Added another clusterExecuteQuery method to take a HashMap of queries rather than only one.
To be used in cases where the queries to be sent to nodes are different for each node (like in load/dump methods of this class)
Right now strictly serial must paralelize it as with the other clusterExecuteQuery
Revision 67 - Directory Listing
Modified Fri Apr 7 12:59:18 2006 UTC (18 years, 5 months ago) by duarte
Modified methods getAllIdxAndClients and getAllIdxFromMaster.
They return now:
- getAllIdxAndClients: an int[]
- getAllIdxFromMaster: a HashMap<Integer,String>
Got rid of having ResultSets returned which is very messy and dangerous.
Revision 66 - Directory Listing
Modified Fri Apr 7 09:31:08 2006 UTC (18 years, 5 months ago) by duarte
Made MASTER final static variable also public. It is in use by other classes.
Revision 65 - Directory Listing
Modified Fri Apr 7 09:26:03 2006 UTC (18 years, 5 months ago) by duarte
Initial commit of DataDistribution.java into aglappe repository
Copied from repository scripts-jose rev 69
If want to have a look at previous history must do it from repository scripts-jose, there was no way of copying with history between different repositories
Revision 64 - Directory Listing
Modified Thu Apr 6 14:47:09 2006 UTC (18 years, 5 months ago) by duarte
Added method getCreateIndex4Table
Revision 63 - Directory Listing
Modified Thu Apr 6 12:18:18 2006 UTC (18 years, 5 months ago) by duarte
Fixed bug in getAllIndexes4Table, the SELECT needed a DISTINCT
Revision 62 - Directory Listing
Modified Thu Apr 6 12:15:37 2006 UTC (18 years, 5 months ago) by duarte
Got rid of method dbExists. Was useless and not working.
Revision 61 - Directory Listing
Modified Thu Apr 6 10:07:22 2006 UTC (18 years, 5 months ago) by duarte
Added method setSqlMode, to set sql_mode server variable
Revision 60 - Directory Listing
Modified Thu Apr 6 09:24:28 2006 UTC (18 years, 5 months ago) by duarte
Added method dbExists to check whether database exists in server, used in constructor that passes a dbName
Moved all the private methods to the beginning of methods section
Revision 59 - Directory Listing
Modified Thu Apr 6 08:24:15 2006 UTC (18 years, 5 months ago) by duarte
Changed comments in constructors
Changed in method readConnectionFile:
- variable to count mandatory parameters to paramCount
- number of mandatory parameters now 4, dbname is also mandatory
Revision 58 - Directory Listing
Modified Wed Apr 5 08:45:23 2006 UTC (18 years, 5 months ago) by duarte
Now executeSQL method throws exception instead of catching it. Thought it was better than the calling class deals with these exceptions.
Revision 57 - Directory Listing
Modified Wed Apr 5 07:38:32 2006 UTC (18 years, 5 months ago) by duarte
Added getConnectionObject
Added printDbSizeInfo and 2 getRange methods from utils4DB
Made private the loadMySQLDriver and readConnectionFile methods

Revision 56 - Directory Listing
Modified Tue Apr 4 17:27:58 2006 UTC (18 years, 5 months ago) by filippis
execUpdateQuery method added and code in comments was removed
Revision 55 - Directory Listing
Modified Tue Apr 4 15:27:49 2006 UTC (18 years, 5 months ago) by duarte
Initial commit.
Class to create a connection to mysql db with basic functionality.
Cann take parameters for connection as argument in constructor or from connection file (passing the filename to the constructor)
Using code from both DBConnection (henning) and mySQLConnect (ioannis)
Revision 54 - Directory Listing
Modified Wed Mar 29 14:26:03 2006 UTC (18 years, 6 months ago) by stehr
initial import
Revision 53 - Directory Listing
Modified Wed Mar 29 13:01:40 2006 UTC (18 years, 6 months ago) by duarte
Fixed a bug with setKeyDb method, was not actually working:
 as well as setting the MASTERDB string needed to change connection to master database to point to new db!
From now on take care if setKeyDb is used in another class. It will open another master connection, thus master connection won't be always the same during the run of the program
Revision 52 - Directory Listing
Modified Wed Mar 29 12:49:13 2006 UTC (18 years, 6 months ago) by duarte
Changed error message printed in getHostId4Idx
Revision 51 - Directory Listing
Modified Wed Mar 29 12:29:56 2006 UTC (18 years, 6 months ago) by duarte
Added setKeyDb method, to be used in testing, i.e. with this method we can change from another class the default MASTERDB database.
Revision 50 - Directory Listing
Modified Tue Mar 28 15:05:31 2006 UTC (18 years, 6 months ago) by filippis
More examples added and the current ones modified according to Graph2Pml changes
Revision 49 - Directory Listing
Modified Tue Mar 28 15:04:24 2006 UTC (18 years, 6 months ago) by filippis
More flexibility in coloring, popDefaults/setDefaults methods plus comments
Revision 48 - Directory Listing
Modified Tue Mar 28 15:03:32 2006 UTC (18 years, 6 months ago) by filippis
Refresh method added plus refresh added before saving image
Revision 47 - Directory Listing
Modified Mon Mar 27 21:01:06 2006 UTC (18 years, 6 months ago) by filippis
Added cgo functionality/examples in Graph2Pml and testGraph2Pml
Revision 46 - Directory Listing
Modified Mon Mar 27 20:59:42 2006 UTC (18 years, 6 months ago) by filippis
PyMol class: adding refresh in saveImage methods
Revision 45 - Directory Listing
Modified Mon Mar 27 16:32:22 2006 UTC (18 years, 6 months ago) by filippis
Graph2Pymol class now functional
testGraph2Pymol class now functional with comments also
PyMol class:python strings methods and removeList, concatList, refresh methods added
Machine class: indentation
Revision 44 - Directory Listing
Modified Wed Mar 22 17:14:01 2006 UTC (18 years, 6 months ago) by filippis
In PyMol class, objectNameQuotes class variable is replaced by the method parameter called variable. Graph2Pml is modified accrodingly.
Revision 43 - Directory Listing
Modified Wed Mar 22 09:30:40 2006 UTC (18 years, 6 months ago) by duarte
Added executeSql method
Revision 42 - Directory Listing
Modified Tue Mar 21 19:13:20 2006 UTC (18 years, 6 months ago) by filippis
Adding Graph2Pml and testGraph2Pml classes (non functional code!)
Revision 41 - Directory Listing
Modified Tue Mar 21 18:41:48 2006 UTC (18 years, 6 months ago) by filippis
getRange methods now return double array instead of Float array. Previous code is into comments.
Revision 40 - Directory Listing
Modified Tue Mar 21 18:21:00 2006 UTC (18 years, 6 months ago) by filippis
Adding Msdsd2Pdb and PyMol classes
Revision 39 - Directory Listing
Modified Tue Mar 21 17:21:54 2006 UTC (18 years, 6 months ago) by filippis
Adding comments
Revision 38 - Directory Listing
Modified Mon Mar 20 11:37:12 2006 UTC (18 years, 6 months ago) by duarte
Added getAllIdxAndClients method:
gets all ids and client_names for a certain key
Revision 37 - Directory Listing
Modified Fri Mar 17 11:22:19 2006 UTC (18 years, 6 months ago) by duarte
Some changes in error messages to be more clear.
Revision 36 - Directory Listing
Modified Fri Mar 17 11:03:15 2006 UTC (18 years, 6 months ago) by duarte
Now using constructor without key and createStatement with key, since createStatement without key is not allowed anymore (is now private)
Revision 35 - Directory Listing
Modified Fri Mar 17 11:00:33 2006 UTC (18 years, 6 months ago) by duarte
Clean up a bit and added some more comments
Revision 34 - Directory Listing
Modified Fri Mar 17 10:48:03 2006 UTC (18 years, 6 months ago) by duarte
Refactor some method names to be more consistent.
Changed some fields to be final (and uppercase them)
Added comments for the most importat methods
Made the createStatment(idx) method private, this should only be used internally. Would be dangerous to use it from anothe class.
Revision 33 - Directory Listing
Modified Wed Mar 15 11:58:24 2006 UTC (18 years, 6 months ago) by duarte
Changed all error printing in catches to STDERR instead of STDOUT
Revision 32 - Directory Listing
Modified Tue Mar 14 09:45:57 2006 UTC (18 years, 6 months ago) by duarte
New exec method taking only a String argument wasn't working. Fixed the bug.
Revision 31 - Directory Listing
Modified Tue Mar 14 07:40:32 2006 UTC (18 years, 6 months ago) by duarte
Added exec method to take only a string as argument.
Revision 30 - Directory Listing
Modified Fri Mar 10 15:19:32 2006 UTC (18 years, 6 months ago) by stehr
introduced generics, so class will compile in Java 5, not sure though whether the functionality is the same as before, will need more testing
Revision 29 - Directory Listing
Modified Fri Mar 10 10:57:12 2006 UTC (18 years, 6 months ago) by stehr
changed server port to standard
Revision 28 - Directory Listing
Modified Fri Mar 10 10:56:22 2006 UTC (18 years, 6 months ago) by stehr
prevent overlong commands from being sent to the server
Revision 27 - Directory Listing
Modified Thu Mar 9 17:12:43 2006 UTC (18 years, 6 months ago) by stehr
initial import
Revision 26 - Directory Listing
Modified Thu Mar 9 15:55:56 2006 UTC (18 years, 6 months ago) by stehr
fixed bug for very long command strings (> 255 characters)
Revision 25 - Directory Listing
Modified Thu Mar 9 10:11:16 2006 UTC (18 years, 6 months ago) by stehr

Revision 24 - Directory Listing
Modified Thu Mar 9 10:08:44 2006 UTC (18 years, 6 months ago) by stehr
moved executables (classes with main function) to root directory
Revision 23 - Directory Listing
Modified Wed Mar 8 15:25:45 2006 UTC (18 years, 6 months ago) by duarte
Fixed important bug:
- now closing nCon connection before opening a new one in the setHost method.
- this is important. Before lots of connection were left opened after having used the ClusterConnection object
Revision 22 - Directory Listing
Modified Tue Mar 7 13:22:37 2006 UTC (18 years, 6 months ago) by duarte
Fixed bug in getIdxSet method. Wasn't reading properly the index_matrix table into the array. Was starting from columnn 1 which actually is the serial column. Now starting from column 2.
Revision 21 - Directory Listing
Modified Tue Mar 7 11:50:37 2006 UTC (18 years, 6 months ago) by duarte
New method int[][] getIdxSet. 
- Returns a 2-dimensional array with all indices for a certain key.
- Each column j corresponds to client_id j+1
- Each row i is a set of idx values for each of the client_ids. If there is no idx for a certain client_id then the value is 0.

Revision 20 - Directory Listing
Modified Mon Mar 6 15:19:40 2006 UTC (18 years, 6 months ago) by stehr
updated commentary
Revision 19 - Directory Listing
Modified Mon Mar 6 15:15:57 2006 UTC (18 years, 6 months ago) by stehr
deleted, file was a copy of makenbhtable.java, original file was lost
Revision 18 - Directory Listing
Modified Mon Mar 6 15:03:46 2006 UTC (18 years, 6 months ago) by stehr
initial import

Revision 17 - Directory Listing
Modified Mon Mar 6 09:20:16 2006 UTC (18 years, 6 months ago) by duarte
Grouped all the setIdxColumn and setMasterTable into setKey.
Also rationalised a bit the constructors by calling one from the other.
Revision 16 - Directory Listing
Modified Mon Mar 6 08:32:55 2006 UTC (18 years, 6 months ago) by duarte
Added package tools.
Revision 15 - Directory Listing
Modified Mon Mar 6 08:25:22 2006 UTC (18 years, 6 months ago) by duarte
Initial commit of the ClusterConnection class + small test class to test it out.

Revision 14 - Directory Listing
Modified Mon Mar 6 08:05:31 2006 UTC (18 years, 6 months ago) by stehr
removed ununsed imports and variables
Revision 13 - Directory Listing
Modified Fri Mar 3 15:15:31 2006 UTC (18 years, 6 months ago) by filippis
Adding SystemCmd class
Revision 12 - Directory Listing
Modified Thu Mar 2 17:21:28 2006 UTC (18 years, 7 months ago) by stehr
removed some debug code

Revision 11 - Directory Listing
Modified Thu Mar 2 15:42:09 2006 UTC (18 years, 7 months ago) by stehr
Corrected some bad mistake

Revision 10 - Directory Listing
Modified Thu Mar 2 11:42:06 2006 UTC (18 years, 7 months ago) by stehr
Initial commit of the remote-pymol-from-java stuff

Revision 9 - Directory Listing
Modified Tue Feb 14 11:00:40 2006 UTC (18 years, 7 months ago) by filippis
Adding R class
Revision 8 - Directory Listing
Modified Mon Jan 23 09:20:44 2006 UTC (18 years, 8 months ago) by duarte
Deleted old tools.trunk files
Revision 7 - Directory Listing
Modified Mon Jan 23 09:19:47 2006 UTC (18 years, 8 months ago) by duarte
Moved everything to subdir tools, so that we keep the tools name for the package. Also changed the package name in the files to tools. To work with it please check out only file:///.../svn/tools/trunk/tools
Revision 6 - Directory Listing
Modified Wed Jan 18 19:07:41 2006 UTC (18 years, 8 months ago) by filippis
Adding getDbSizeInfo method into utils4DB program
Revision 5 - Directory Listing
Modified Wed Jan 18 18:52:48 2006 UTC (18 years, 8 months ago) by filippis
Adding files utils*
Revision 4 - Directory Listing
Modified Wed Jan 18 18:49:01 2006 UTC (18 years, 8 months ago) by filippis
Package tools changed to tools.trunk because code could not compile!
Revision 3 - Directory Listing
Modified Wed Jan 18 18:23:39 2006 UTC (18 years, 8 months ago) by filippis
The name of the report table can be passed as argument now (default value is report as previous)
Revision 2 - Directory Listing
Modified Wed Jan 18 18:10:10 2006 UTC (18 years, 8 months ago) by filippis
Comments in system.out.println & Dealing with no password cases
Revision 1 - Directory Listing
Added Wed Jan 18 17:48:52 2006 UTC (18 years, 8 months ago) by filippis
Initial import of tools