Hi Haleh,
To address the issue of converting a non-standard PDB file to a standard format using MATLAB, you can follow these steps:
- Read the non-standard PDB file using pdbread:matlabCopy codepdbStruct = pdbread('non_standard.pdb');
- Modify the PDB structure to conform to the standard format: This step might involve ensuring that all required fields are present and correctly formatted. You may need to write a custom function to adjust the structure as needed.
- Write the modified PDB structure using pdbwrite:
pdbwrite('standard.pdb', pdbStruct);
If you encounter errors such as "old PDB structure" or "too many arguments," it may be due to incorrect or missing fields in the PDB structure.
Hope this helps.