Difference between revisions of "Read pdb pro.m"

From Spinach Documentation Wiki
Jump to: navigation, search
(→‎Notes)
Line 1: Line 1:
−
Reads protein PDB data.
+
{{DISPLAYTITLE:read_pdb_pro.m}} __NOTOC__
 +
This function reads the coordinates of all atoms from the user-specified PDB file and returns, for each atom, the amino acid number, the amino acid type, the PDB label and the Cartesian coordinates.
  
 
==Syntax==
 
==Syntax==
  
−
     [aa_num,aa_typ,pdb_id,coords]=read_pdb_pro(pdb_file_name,instance)
+
     [aa_num,aa_typ,pdb_id,coords]=read_pdb_pro(pdb_file_name,mod_id)
−
 
 
−
==Description==
 
−
This function reads the coordinates of all atoms from the user-specified PDB file and returns, for each atom, the amino acid number, the amino acid type, the PDB label and the Cartesian coordinates.
 
  
 
==Arguments==
 
==Arguments==
  
−
     pdb_file_name - a character string giving the name of the PDB file
+
     pdb_file_name - a character string with the file name
−
 
+
−
     instance      - the number of molecule to read from a PDB file
+
     mod_id        - the number of model that should be
−
                    containing multiple molecules
+
                    read from the pdb file
  
−
==Returns==
+
==Outputs==
  
−
     aa_num  - nspins x 1 vector giving the number of the amino acid to which each spin belongs
+
     aa_num  - nspins x 1 vector giving the number of  
 +
              the amino acid to which each spin belongs
 
   
 
   
−
     aa_typ  - nspins x 1 cell array of strings giving the PDB identifier of the amino acid to  
+
     aa_typ  - nspins x 1 cell array of strings giving  
 +
              the PDB identifier of the amino acid to  
 
               which each spin belongs (e.g. 'TYR')
 
               which each spin belongs (e.g. 'TYR')
 
   
 
   
−
     pdb_id   - nspins x 1 cell array of strings giving the PDB identifier of the protein atom  
+
     pdb_id - nspins x 1 cell array of strings giving  
−
              type to which each spin belongs (e.g. 'HE2')
+
              the PDB identifier of the protein atom  
 +
              type to which each spin belongs (e.g. 'HE2')
 
   
 
   
−
     coords  - nspins x 1 cell array of 3-vectors giving cartesian coordinates of each spin in Angstrom
+
     coords  - nspins x 1 cell array of 3-vectors giving  
 +
              Cartesian coordinates of each spin in Angstrom
  
−
==Examples==
+
==See also==
−
The output may be used, for example, to guess J-couplings:
+
[[Import,_export,_and_visualisation#Data_import|Data import]]
  
−
    % Parse the PDB file
+
[[Protein NMR simulations]]
−
    [pdb_aa_num,pdb_aa_typ,pdb_atom_id,pdb_coords]=read_pdb_pro('1D3Z.pdb',1);
 
−
 
−
    % Guess the J-couplings
 
−
    jmatrix=guess_j_pro(pdb_aa_num,pdb_aa_typ,pdb_atom_id,pdb_coords);
 
−
 
 
−
==Notes==
 
−
# Watch carefully the output of this function, it would inform you if it sees anything strange in the data supplied. Protein datasets available from major databases are rarely free of errors.
 
−
# More information is available in the protein [[Protein NMR simulations|getting started]] manual.
 
−
 
 
−
==See also==
 
−
[[protein.m]], [[nuclacid.m]], [[guess_j_pro.m]]
 
  
  
−
''Revision 3284, authors: [[Ilya Kuprov]]''
+
''Version 2.8, authors: [[Ilya Kuprov]]''

Revision as of 16:33, 2 July 2023

This function reads the coordinates of all atoms from the user-specified PDB file and returns, for each atom, the amino acid number, the amino acid type, the PDB label and the Cartesian coordinates.

Syntax

    [aa_num,aa_typ,pdb_id,coords]=read_pdb_pro(pdb_file_name,mod_id)

Arguments

    pdb_file_name - a character string with the file name

    mod_id        - the number of model that should be
                    read from the pdb file

Outputs

    aa_num  - nspins x 1 vector giving the number of 
              the amino acid to which each spin belongs

    aa_typ  - nspins x 1 cell array of strings giving 
              the PDB identifier of the amino acid to 
              which each spin belongs (e.g. 'TYR')

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

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

See also

Data import

Protein NMR simulations


Version 2.8, authors: Ilya Kuprov