dgllife.utils.load_smiles_from_txt

dgllife.utils.load_smiles_from_txt(file)[source]

Load SMILES from a txt file.

Parameters

file (str) – Path to a txt file where each line has a SMILES string.

Returns

List of SMILES

Return type

list of str