generate ORCA input files from SMILES
- ORCA_EXECUTABLE - it is a global variable, because I wanted it to appear on top of the file; it is utilised only by one function but it is meant to be changed by the user.
orca_generator(smiles: str, nb: int) → None
Generate ORCA input file from SMILES. ORCA arguments are hardcoded into the function.
Arguments:
smiles {str} -- SMILES structure of the molecule.
nb {int} -- number. This will be the name of the input file.
orca_reader(smiles: str, nb: int) → dict
Read following properties of ORCA output file:
- HOMO energy
- LUMO energy
- Dipole moment
- Isotropic polarizability
- Total thermal energy, U
- Total enthalpy, H
- Entropy term, S
- Gibbs free energy, G
- Rotational constant, A
- Rotational constant, B
- Rotational constant, C
Arguments:
smiles {str} -- SMILES structure of the molecule.
nb {int} -- number. This is the name of the output file to be read.
Returns: {dict} -- a dictionary of read properties.
orcanize(smiles: str, nb: int) → dict
This function does the following steps:
- Generate ORCA input file based on molecule SMILES by calling orca_generator function.
- Call ORCA job with generated input file.
- Read calculated properties from generated output file and return them as dictionary. This is done by calling orca_reader function.
SMILES of successfully processed molecules are saved into done.log file. The done.log also contains the number which is input and output files name. If there was an error in calculations, then the molecule's SMILES is saved into undone.log file.
Arguments:
smiles {str} -- [SMILES molecule structure]
nb {int} -- [Number. This is ORCA input and output file name]
Returns: {dict} -- [Dictionary of properties]
orcanize_many(molecules: List[str], save: bool = True) → DataFrame
Run orcanize function with a collection of SMILES.
Arguments:
molecules {Union[str]} -- collection of SMILES strings.
save {bool} -- save the pandas dataframe to csv(True, default) or not(False); by convention it is saved everytime ORCA successfully finishes calculation
Returns: {pd.DataFrame} -- pandas dataframe with read properties
This file was automatically generated via lazydocs. ... and then modified