simbad.db package

convert_dat_to_pdb(infile, outfile)[source]

Function to move dat file to pdb file

Parameters:
infile : str

Path to the input dat file

outfile : str

Path to the output pdb file

convert_pdb_to_dat(infile, outfile)[source]

Function to move pdb file to dat file

Parameters:
infile : str

Path to the input pdb file

outfile : str

Path to the output dat file

find_simbad_dat_files(directory)[source]

Find all SIMBAD morda files

Parameters:
directory : str

Path to the SIMBAD database

Returns:
list

A list of paths to the files

is_valid_dat(infile)[source]

Validate a dat file for decompression/decoding

Parameters:
infile : str

Path to the input pdb file

Returns:
bool
read_dat(infile)[source]

Read a SIMBAD .dat file

Parameters:
infile : str

Path to the input pdb file

Returns:
bool