This repository contains the TCL script for the plasmid editor written by M. Wayne Davis.
http://jorgensen.biology.utah.edu/wayned/ape/
I made a couple of changes to this repository in an attempt to make it easier to install/use on a linux host. The hosts I work with all use environment modules[1] and so I am providing an example module file and instructions assuming an environment similar to mine.
Our environment modules installation is based in /sw where all the modules are in /sw/modules and the project root is /sw/local. Thus the top of the module file defines those directories and attempts to automagically detect everything else. With that in mind, installation using environment modules is the following:
- Pull the repository into the directory: /sw/local/ape/some_version_number
- Copy the modulefile (currently modules/202007) to /sw/modules/ape/some_version_number
module add ape
- Invoke
ape
and the first time it should ask for the location of the data files.
The installation without environment modules is also quite simple:
- pull the repository.
- edit bin/ape so that the variable APE_DIR points to the location of the repository.
- Put bin/ape in an alias or in the PATH.
- The first time ape is run on a new host, it will bring up a little box asking where the various files are located. Tell it to go to the downloaded location.
This repository is an essentially unchanged copy of M. Wayne Davis' code. If one wishes to perform a similar extraction on a different version of the editor, here is what I did. In an attempt to make that easier, I included a copy of the tclkit[2] and sdx.kit[3] I used.
- Go into the bin/ directory of the repository.
- Download the ApE windows zip file and unzip it into the $(pwd).
- Extract the data with:
tclkit sdx.kit unwrap ApE_win_current.exe
, this creates the ApE_win_current.vfs/ directory containing the tcl script, the accessory files, and the miscellaneous stuff used by tclkit/sdx. - Copy out the main script with:
cp ApE_win_current.vfs/lib/app-AppMain/AppMain.tcl ..
- Copy the accessory files, I usually delete the existing files first, but I
doubt that is necessary:
rsync -av ApE_win_current.vfs/Accessory\ Files/ ..
- Delete the windows specific material:
rm -r ../lib
- Clean up the $(pwd).