Difference between revisions of "Read pdb nuc.m"
(Sync syntax/arguments/outputs with current Spinach source) |
(Restore pre-bulk-edit wiki content) |
||
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:read_pdb_nuc.m}} __NOTOC__ | {{DISPLAYTITLE:read_pdb_nuc.m}} __NOTOC__ | ||
| − | |||
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. | 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== | ==Syntax== | ||
| − | [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== | ==Arguments== | ||
| − | + | pdb_file_name - a character string giving the name of the PDB file | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
==Outputs== | ==Outputs== | ||
| − | nuc_num - nspins x 1 vector giving the number of the nucleotide to which each spin belongs | + | 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 | nuc_typ - nspins x 1 cell array of strings giving the PDB identifier of the nucleotide to | ||
| Line 41: | 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. | ||
==See also== | ==See also== | ||
| − | |||
[[Import,_export,_and_visualisation#Data_import|Data import]] | [[Import,_export,_and_visualisation#Data_import|Data import]] | ||
Revision as of 15:49, 5 April 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)
Arguments
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
- All atoms in the file are read, make sure the PDB only contains one model.
See also
Version 2.8, authors: Ilya Kuprov