> I was wondering if there is some practical documentation available on the
> macro implementation in ccpnmr/analysis. I know there is an extensive API
> documentation with lots of functions. However, what I am looking for is more
> like a tutorial/introduction to get started with some basic functionality.
> (some example macros for instance, preferably including some comments and
> explanations)
Hi Patrick,
Unfortunately this is a bit laking at the moment and I agree that we need
more documentation here, but as usual it's a matter of human resources.
We will see what can be done, but don't expect anything major until after
the CCPN conference. In the mean time we are happy to answer specific
questions.
> One of the things I was thinking about is the ability to 'quickly' launch
> external programs on the currently selected spectrum file. Perhaps something
> like this is already available?
This can be simple. Try something like:
-------------------------------------------------------------------------------
def execCommandOnSpecFile(argServer):
import os
spectrum = argServer.getSpectrum()
dataLoc = spectrum.dataLocation
fileName = dataLoc.path
dirName = dataLoc.url.path
fullPath = os.path.join(dirName,fileName)
os.system('ls -l %s' % fullPath)
-------------------------------------------------------------------------------
Also, interacting with the tables in Analysis can be done, but is more
tricky.
T.
-------------------------------------------------------------------------------
Dr Tim Stevens Email: [log in to unmask]
Department of Biochemistry [log in to unmask]
University of Cambridge Phone: +44 1223 766018 (office)
80 Tennis Court Road +44 7816 338275 (mobile)
Old Addenbrooke's Site +44 1223 364613 (home)
Cambridge CB2 1GA WWWeb: http://www.bio.cam.ac.uk/~tjs23
United Kingdom http://www.pantonia.co.uk
-------------------------------------------------------------------------------
------ +NH3CH(CH(CH3)OH)C(O)NHCH(CH(CH3)CH2CH3)C(O)NHCH(CH2CH2SCH3)CO2- -------
-------------------------------------------------------------------------------
|