|
Algorithm 1 The algorithm for transformation of SMILES strings into SMILES matrices |
|
Require:
|
▹ SMILES dataset |
|
|
▹ Unique symbols |
|
|
▹ Maximal symbol length |
|
|
▹ Empty symbol |
| for each do
|
|
| for each do
|
|
| if then
|
|
|
|
|
| end if
|
|
| if then
|
|
|
|
|
| end if
|
|
| end for
|
|
| end for
|
|
|
|
▹ One-hot matrix to be filled |
|
|
▹ Transformed dataset |
|
|
▹ MP values from dataset |
|
|
▹ Output value |
| for each do
|
|
|
|
▹ For tracking vector columns |
| for each do
|
|
|
|
|
|
|
|
| if then
|
|
|
|
|
|
|
|
|
|
|
| else
|
|
| for each do
|
|
|
|
|
| end for
|
|
| end if
|
|
|
|
|
|
|
|
| end for
|
|
| end for
|
|