Difference between revisions of "Import, export, and visualisation"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Tensor visualisation)
Line 2: Line 2:
  
 
==Tensor visualisation==
 
==Tensor visualisation==
−
 
 
[[cst_display.m]] – visualizes chemical shielding tensors and their eigensystems.
 
[[cst_display.m]] – visualizes chemical shielding tensors and their eigensystems.
  
 
[[hfc_display.m]] – visualizes hyperfine coupling 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:
+
==Data import==
−
 
+
[[gparse.m]] – a parser for Gaussian03 and Gaussian09 calculation logs.
−
    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.
+
[[g2spinach.m]] – converts [[gparse.m]] output into ''Spinach'' input structures.
  
−
[[s2spinach.m]] – reads SIMPSON spin system specification and converts it into Spinach format. Syntax:
+
[[karplus_fit.m]] – performs Karplus coefficient estimation from a Gaussian J-coupling scan.
  
−
    [sys,inter]=s2spinach(filename)
+
[[protein.m]] – protein data import from PDB and BMRB data.
  
−
only sys{} section of Simpson input is read and parsed.
+
[[s2spinach.m]] – reads SIMPSON spin system specification and converts it into Spinach format.
  
−
[[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:
+
[[strychnine.m]] – returns Spinach input structures for the spin system of strychnine.
  
−
    [sys,inter]=strychnine(spins)
+
==Data export==
 +
[[fid2ascii.m]] – writes out 1D, 2D and 3D free induction decays generated by Spinach as ASCII files.
  
−
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.
+
==Artefact removal==
 +
[[destreak.m]] – reduces streak artefacts in 2D and 3D NMR spectra.

Revision as of 15:26, 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.

Data import

gparse.m – a parser for Gaussian03 and Gaussian09 calculation logs.

g2spinach.m – converts gparse.m output into Spinach input structures.

karplus_fit.m – performs Karplus coefficient estimation from a Gaussian J-coupling scan.

protein.m – protein data import from PDB and BMRB data.

s2spinach.m – reads SIMPSON spin system specification and converts it into Spinach format.

strychnine.m – returns Spinach input structures for the spin system of strychnine.

Data export

fid2ascii.m – writes out 1D, 2D and 3D free induction decays generated by Spinach as ASCII files.

Artefact removal

destreak.m – reduces streak artefacts in 2D and 3D NMR spectra.