Re: [ccp4bb] Merging CCP4i projects from two computers
SVN is extraordinary for these types of things. Combining Peter Briggs and Bill Scott's suggestion, perhaps one ideal solution would be SVN support built into ccp4i. However, in the meantime or that never happens, here is a script that might serve as a template if: #! /bin/csh -f cd $HOME/ccp4i svn update /usr/local/bin/ccp4i svn add * --force svn commit # end of script Its that simple. Commit is called when ccp4i exits, even if abnormally. The only time commit isn't called is when the shell terminates abnormally. This script would be named ccp4i and dropped into your ~/bin. I give ~/bin precedence over all other directories in my $path specification for these reasons. Alternatively, it could be aliased. In this way, svn would be more-or-less transparent except for commit's asking for commit notes. These can be circumvented if you really want--but more notes are always better than less notes. If you have an OSX box with good bandwidth, see: http://preview.tinyurl.com/ysb78w That is a tinyurl to a tarfile with instructions to get an svn daemon properly configured on OSX. James On Mar 7, 2008, at 5:38 AM, William Scott wrote: Syncing directories with unison (use the same version of the program on all computers) or rsync can help. Lately I've been using svn, which is I think the best way to deal with this. Setting up a server on linux is probably easiest. You can do this with any type of file, by the way, it doesn't have to be ascii. William G. Scott contact info: http://chemistry.ucsc.edu/~wgscott On Mar 7, 2008, at 3:57 AM, Derek Logan wrote: Hi everyone, I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-) Thanks Derek -- Derek Logan tel: +46 46 222 1443 Molecular Biophysicsfax: +46 46 222 4692 Lund University mob: +46 76 8585 707 Box 124, Lund, Sweden -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com
[ccp4bb] Merging CCP4i projects from two computers
Hi everyone, I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-) Thanks Derek -- Derek Logan tel: +46 46 222 1443 Molecular Biophysicsfax: +46 46 222 4692 Lund University mob: +46 76 8585 707 Box 124, Lund, Sweden
Re: [ccp4bb] Merging CCP4i projects from two computers
Hi Derek There's not really any way of doing what you're asking at present. If merging utility would be useful to others then I would be prepared to look into providing one, although there are a bunch of fiddly issues to deal with (e.g. keeping dates consistent, handling file name clashes and so on). Do any other readers of this list want to comment? Best wishes Peter Derek Logan wrote: Hi everyone, I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-) Thanks Derek -- Derek Logan tel: +46 46 222 1443 Molecular Biophysicsfax: +46 46 222 4692 Lund University mob: +46 76 8585 707 Box 124, Lund, Sweden -- ___ Peter J Briggs, [EMAIL PROTECTED] Tel: +44 1925 603826 CCP4, [EMAIL PROTECTED] Fax: +44 1925 603825 http://www.ccp4.ac.uk/ Daresbury Laboratory, Daresbury, Warrington WA4 4AD
Re: [ccp4bb] Merging CCP4i projects from two computers
Syncing directories with unison (use the same version of the program on all computers) or rsync can help. Lately I've been using svn, which is I think the best way to deal with this. Setting up a server on linux is probably easiest. You can do this with any type of file, by the way, it doesn't have to be ascii. William G. Scott contact info: http://chemistry.ucsc.edu/~wgscott On Mar 7, 2008, at 3:57 AM, Derek Logan wrote: Hi everyone, I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-) Thanks Derek -- Derek Logan tel: +46 46 222 1443 Molecular Biophysicsfax: +46 46 222 4692 Lund University mob: +46 76 8585 707 Box 124, Lund, Sweden
Re: [ccp4bb] Merging CCP4i projects from two computers
Unison is good, as is rsync, but in this particular case will be complicated (if ( understand correctly) by the use of the identical file names for different files on the two computers. I don't see an easy, automatic way around this. I would rename one or some of the directories, put them on the same computer, and then manually go through them and decide which ones are duplicates, and which are unique but identically named files, and rename those. If this is a Unix/Linux system, it might be useful to know that the diff command can work on an entire directory, if you plead with it sincerely enough and use the right parameters. In future, unison or rsync could be used on a regular basis to avoid another situation like this arising. Back in the good old days, we were able to share disks between computers with something called NFS, and even further back, file versioning in VMS might have been relevant and useful. But I am wandering. Cheers, - === With the single exception of Cornell, there is not a college in the United States where truth has ever been a welcome guest - R.G. Ingersoll === David J. Schuller modern man in a post-modern world MacCHESS, Cornell University [EMAIL PROTECTED] On Fri, 2008-03-07 at 12:15 +, Johan Turkenburg wrote: Hi, The way I cope with this is by using synchronisation between directories (folders) on the two computers. In my case both are running linux, and the program Unison provides a simple tool to synchronise. If you make sure the projects have the same name on the two computers, the cpp4 database files copy over ok, and the interface copes ok. I am sure this method is easy to break, so be careful trying it out! Johan P.J.Briggs wrote: Hi Derek There's not really any way of doing what you're asking at present. If merging utility would be useful to others then I would be prepared to look into providing one, although there are a bunch of fiddly issues to deal with (e.g. keeping dates consistent, handling file name clashes and so on). Do any other readers of this list want to comment? Best wishes Peter Derek Logan wrote: Hi everyone, I've been working on a project using CCP4i on two separate computers in parallel and now unfortunately have jobs spread over the two locations. I would now like to consolidate these. Some of the new jobs on one computer will have the same run number as different ones on the other. Is there any convenient way to merge the projects? I guess the answer is no, or else the question would have been asked and answered already ;-) Thanks Derek -- Derek Logan tel: +46 46 222 1443 Molecular Biophysicsfax: +46 46 222 4692 Lund University mob: +46 76 8585 707 Box 124, Lund, Sweden
Re: [ccp4bb] Merging CCP4i projects from two computers
NFS is alive and well (even on OS X 10.5), but having separate copies on different computers and/or an svn server has the additional merits of being a backup system and one you can use with computers that don't have static IPs. David J. Schuller wrote: Back in the good old days, we were able to share disks between computers with something called NFS, and even further back, file versioning in VMS might have been relevant and useful. But I am wandering.
Re: [ccp4bb] Merging CCP4i projects from two computers
David J. Schuller wrote: ... even further back, file versioning in VMS might have been relevant and useful. But I am wandering. [:) Problem is both files are version *.*;1. I keep getting: -RMS-E-FEX, file already exists, not superseded %BACKUP-E-OPENOUT, error opening DISK$USER1:[00.ACRIVOS.JUL99]I0TEST.DIR;1 as output -RMS-E-FEX, file already exists, not superseded %BACKUP-E-OPENOUT, error opening DISK$USER1:[00.BERRY]TEMP.TXT;1 as output -RMS-E-FEX, file already exists, not superseded %BACKUP-E-OPENOUT, error opening DISK$USER1:[00.SAURON]KK9108051.DIR;1 as output ... SYSOPER job terminated at 8-JAN-2008 22:25:07.17 Accounting information: Buffered I/O count: 317527 Peak working set size:1597 Direct I/O count:192669 Peak page file size: 6950 Page faults: 4162 Mounted volumes: 0 Charged CPU time: 0 00:23:26.42 Elapsed time: 0 00:25:07.12 $