Hi all,
I’m a new user of KNIME. I’d tried to create a workflow for calculating QED for drug design.
After, including the Python script,
from rdkit import Chem
from rdkit.Chem import Descriptors
from rdkit import rdBase, RDConfig
import sys, os
sys.path.append(os.path.join(RDConfig.RDContribDir, ‘SA_Score’))
import sascorer
qeds =
sas =
for mol in input_table[‘mol’]:
qeds.append(Descriptors.qed(mol))
sas.append(sascorer.calculatescore(mol))
output_table = input_table
output_table[‘qed’] = qeds
output_table[‘sa_score’] = sas
print (output_table.head ())
I’m getting the following error
“Executing the Python script failed: Traceback (most recent call last): File “”, line 10, in , NameError: name ‘input_table’ is not defined”
I’m using Python 3.9.16…
It seems I could not call input from knio.input_table[0] to python environment
Can you give suggestions to fix it?
Thanks