Hello,
In case anyone has old Ansig projects lying around that they want to get
into Analysis, the way to do this is via the Format Converter. (And this
does assignments, not just peaks, if you use the "Import->Single
files->Peaks->Ansig" option, as Wim has just informed/reminded me.)
The Format Converter wants the peaks in what is called the Ansig export
format (which is in ascii). Ansig itself works instead with a binary
format (with file extension .crp). I've attached a script which converts
from the binary to the ascii format. To run it you do:
python ansigExportPeaks.py INPUT_CRP_FILE OUTPUT_PEAKS_FILE
e.g.
python ansigExportPeaks.py pelle.crp pelle.xpk
(and so the FC will then read pelle.xpk).
It's been tested once (by Mark Pfuhl) so hopefully it will be ok, but if
anyone has any problems then let me know. (There was an old Fortran
program by Andy Raine which does the same job, but it's easier now to deal
with Python than with Fortran.)
(Wim also recommends that before importing the peaks you first create the
molecule in CCPN. And that could be done by importing the Ansig sequence
file in the FC. And at the end you are supposed to run linkResonances
with the default settings.)
Wayne
|