Difference between revisions of "Import, export, and visualisation"
m (Kuprov moved page Miscellaneous functionality to Import, export, and visualisation without leaving a redirect) |
|||
| Line 1: | Line 1: | ||
| − | + | ''Spinach'' is not intended to be a data processing package. The functions listed below assist in exporting simulation results into formats that are readable to data processing software. | |
| − | + | ==Tensor visualisation== | |
| − | + | [[cst_display.m]] – visualizes chemical shielding tensors and their eigensystems. | |
| − | |||
| − | |||
| − | + | [[hfc_display.m]] – visualizes hyperfine coupling tensors and their eigensystems. | |
| − | |||
| − | |||
| − | |||
| − | |||
[[destreak.m]] – Reduces streak artefacts in 2D and 3D NMR spectra. Edges of the input spectrum must be free of genuine signals. Syntax: | [[destreak.m]] – Reduces streak artefacts in 2D and 3D NMR spectra. Edges of the input spectrum must be free of genuine signals. Syntax: | ||
| Line 37: | Line 31: | ||
At the time of writing, importing a Gaussian log is one of the easiest ways of setting up very complicated and interaction-rich systems for simulation. | At the time of writing, importing a Gaussian log is one of the easiest ways of setting up very complicated and interaction-rich systems for simulation. | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
[[karplus_fit.m]] – performs Karplus coefficient estimation from a Gaussian J-coupling scan. Syntax: | [[karplus_fit.m]] – performs Karplus coefficient estimation from a Gaussian J-coupling scan. Syntax: | ||
Revision as of 15:21, 1 January 2018
Spinach is not intended to be a data processing package. The functions listed below assist in exporting simulation results into formats that are readable to data processing software.
Tensor visualisation
cst_display.m – visualizes chemical shielding tensors and their eigensystems.
hfc_display.m – visualizes hyperfine coupling tensors and their eigensystems.
destreak.m – Reduces streak artefacts in 2D and 3D NMR spectra. Edges of the input spectrum must be free of genuine signals. Syntax:
spectrum=destreak(spectrum)
Cell arrays and structures are processed recursively.
fid2ascii.m – Writes out 1D, 2D and 3D free induction decays generated by Spinach as ASCII files in the following format [time1, time2, time3, real, imag]. Syntax:
fid2ascii(filename,fid)
Time is printed in seconds.
gparse.m – a parser for Gaussian03 and Gaussian09 calculation logs. Extracts all potentially useful information. See Section 2.i for further information. Syntax:
props=gparse(filename,options)
At the time of writing, importing a Gaussian log is one of the easiest ways of setting up very complicated and interaction-rich systems for simulation.
g2spinach.m – forms Spinach data structures from Gaussian parsing output. See Section 2.i for further information. Syntax:
[sys,inter]=g2spinach(props,nuclei,references,options)
At the time of writing, importing a Gaussian log is one of the easiest ways of setting up very complicated and interaction-rich systems for simulation.
karplus_fit.m – performs Karplus coefficient estimation from a Gaussian J-coupling scan. Syntax:
[A,B,C]=karplus_fit(dirname,atoms)
where dirname is the name of the directory containing several Gaussian magnetic property logs that differ only in the value of a specific dihedral angle in the molecular geometry. The atoms argument is a vector of four integers specifying the atoms that make up the dihedral angle. See karplus_extract.m file in examples/nmr_proteins directory for an example of how this function operates.
protein.m – protein data import. Parses PDB and BMRB data, runs a J-coupling guess, a CSA guess and outputs Spinach data structures. Syntax:
[sys,inter]=protein(pdb_file,bmrb_file,subset)
Parameters: pdb_file - string containing the name of the PDB file, bmrb_file - string containing the name of the BMRB file, subset='backbone' imports protein backbone up to CB and HB, subset='backbone-minimal' only imports the backbone, subset='backbone-hsqc' is the same as subset=’backbone’, but with GLN and ASN side chain amide groups included, subset='all' imports everything that is assigned in BMRB. If a list of numbers is supplied, spins with those numbers in the PDB file are imported, but only if they are assigned in the PDB.
Note: unassigned atom coordinates are used internally for the J-coupling prediction procedure, but these atoms are not passed to Spinach.
Note: watch carefully the output of this function, it would inform you if it has to skip an atom or a coupling for any reason. More information is available in the protein HOWTO manual.
s2spinach.m – reads SIMPSON spin system specification and converts it into Spinach format. Syntax:
[sys,inter]=s2spinach(filename)
only sys{} section of Simpson input is read and parsed.
strychnine.m – returns Spinach input structures for the spin system of strychnine, which is often a good testing case for NMR pulse sequence development. Syntax:
[sys,inter]=strychnine(spins)
where spins parameter is a cell array containing the isotopes to import, e.g. {'1H','13C'}. Note: 13C-13C J-couplings are not provided – the specification is only suitable for natural abundance 13C simulations. CSA tensors are not provided either - relaxation theory treatments using this strychnine spin system would not account for CSA relaxation.