You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reading a pdb file created using extract_from_pdb (from T-Coffee) with MIToS throw errors, as the ATOM lines have only 66 characters. However, BioStructures' read function works fine. So, the following function uses BioStructures to save an intermediate file that MIToS can read.
"""This function reads a PDB file created with extract_from_pdb and returns a MIToS' PDB object."""functionread_pdb(pdb_file::String)
# Read the PDB file with BioStructures
tmp = BioStructures.read(pdb_file, BioStructures.PDB)
# Save the BioStructures' PDB object into a temporary file
tmp_file =tempname()
BioStructures.writepdb(tmp_file, tmp)
# Read the temporary file with MIToS
pdb =read(tmp_file, PDBFile)
# Delete the temporary filerm(tmp_file)
return pdb
end
From one of those PDB files:
REMARK Output of the program extract_from_pdb (Version 2.43)
REMARK Legal PDB format not Guaranteed
REMARK This format is not meant to be used in place of the PDB format
REMARK The header refers to the original entry
REMARK The sequence from the original file has been taken in the field: ATOM
REMARK extract_from_pdb, 2001, 2002, 2003, 2004, 2005 2006 (c) CNRS and Cedric Notredame
The text was updated successfully, but these errors were encountered:
Reading a pdb file created using
extract_from_pdb
(from T-Coffee) with MIToS throw errors, as the ATOM lines have only 66 characters. However, BioStructures' read function works fine. So, the following function uses BioStructures to save an intermediate file that MIToS can read.From one of those PDB files:
The text was updated successfully, but these errors were encountered: