File formats

BALL INI files

BiochemicalAlgorithms.read_ball_ini_fileFunction
read_ball_ini_file(fname::AbstractString, ::Type{T} = Float32) -> BALLIniFile

Read a file in BALL's old Ini file format and return it as a BALLIniFile.

Supported keyword arguments

  • cleanup_keys::Bool = true simplifies colon-separated key names (e.g., ver:version becomes version, key:I becomes I, etc.)
source

HyperChem HIN files

BiochemicalAlgorithms.write_hinfileFunction
write_hinfile(
    fname::AbstractString,
    ac::AtomContainer
)

Save an atom container as HyperChem HIN file.

Note

HIN files define molecules as connected components in the molecular graph. If the AtomContainer is missing bonds, e.g., after reading a PDB file and not postprocessing it correctly, the HIN file may contain a surprisingly large number of molecules.

source

PDB files

BiochemicalAlgorithms.load_pdbFunction
load_pdb(fname::AbstractString, ::Type{T} = Float32) -> System{T}

Read a PDB file.

Note

Models are stored as frames, using the model number as frame_id.

source

PDBx/mmCIF files

BiochemicalAlgorithms.load_mmcifFunction
load_mmcif(fname::AbstractString, ::Type{T} = Float32) -> System{T}

Read a PDBx/mmCIF file.

Note

Models are stored as frames, using the model number as frame_id.

source

PubChem JSON

Structures data files (SDF, SDFile)