Difference between revisions of "Read pdb nuc.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(Restore pre-bulk-edit wiki content)
(sync with Spinach main 3975f139: single chain requirement)
 
(3 intermediate revisions by the same user not shown)
Line 6: Line 6:
 
     [res_num,res_typ,pdb_id,coords]=read_pdb_nuc(pdb_file_name)
 
     [res_num,res_typ,pdb_id,coords]=read_pdb_nuc(pdb_file_name)
  
−
==Arguments==
+
==Parameters==
  
 
     pdb_file_name - a character string giving the name of the PDB file
 
     pdb_file_name - a character string giving the name of the PDB file
Line 23: Line 23:
  
 
==Notes==
 
==Notes==
−
# All atoms in the file are read, make sure the PDB only contains one model.
+
# All atoms in the file are read, make sure the PDB only contains one model and one chain. Chain identifiers are accepted but not returned, files with more than one chain are refused.
  
 
==See also==
 
==See also==
−
[[Import,_export,_and_visualisation#Data_import|Data import]]
+
[[c2spinach.m]], [[cyprinol.m]], [[fatty_acid.m]], [[g2spinach.m]], [[gissmo2spinach.m]], [[gparse.m]], [[karplus_fit.m]], [[killcross.m]], [[killdiag.m]], [[merge_inp.m]], [[methyl_group.m]], [[nuclacid.m]], [[ocparse.m]], [[oparse.m]], [[parsexml.m]], [[protein.m]], [[read_bmrb.m]], [[read_pdb_pro.m]], [[v2spinach.m]], [[weblab2nqi.m]], [[x2spinach.m]], [[Import,_export,_and_visualisation]], [[Protein NMR simulations]]
−
 
 
−
[[Protein NMR simulations]]
 
−
 
 
  
 
''Version 2.8, authors: [[Ilya Kuprov]]''
 
''Version 2.8, authors: [[Ilya Kuprov]]''

Latest revision as of 10:58, 18 September 2026

Reads the coordinates of all atoms from the user-specified PDB file and returns, for each atom, the residue number, the residue type, the PDB label and the Cartesian coordinates.

Syntax

    [res_num,res_typ,pdb_id,coords]=read_pdb_nuc(pdb_file_name)

Parameters

    pdb_file_name - a character string giving the name of the PDB file

Outputs

    nuc_num  - nspins x 1 vector giving the number of the nucleotide to which each spin belongs

    nuc_typ  - nspins x 1 cell array of strings giving the PDB identifier of the nucleotide to 
               which each spin belongs (e.g. 'GUA')

    pdb_id   - nspins x 1 cell array of strings giving the PDB identifier of the nucleic acid atom 
               type to which each spin belongs (e.g. 'C1P')

    coords  - nspins x 1 cell array of 3-vectors giving Cartesian coordinates of each spin in Angstrom

Notes

  1. All atoms in the file are read, make sure the PDB only contains one model and one chain. Chain identifiers are accepted but not returned, files with more than one chain are refused.

See also

c2spinach.m, cyprinol.m, fatty_acid.m, g2spinach.m, gissmo2spinach.m, gparse.m, karplus_fit.m, killcross.m, killdiag.m, merge_inp.m, methyl_group.m, nuclacid.m, ocparse.m, oparse.m, parsexml.m, protein.m, read_bmrb.m, read_pdb_pro.m, v2spinach.m, weblab2nqi.m, x2spinach.m, Import,_export,_and_visualisation, Protein NMR simulations

Version 2.8, authors: Ilya Kuprov