Closed Priyansh-Kedia closed 7 months ago
Note that some SMILES are illegal, such as "cccccc". There can be no aromatic non-ring molecule. However, we want an error message from RDKit indicating SMILES parsing error, or whatever the RDKit exception is, not a 500 server error.
Note that some SMILES are illegal, such as "cccccc". There can be no aromatic non-ring molecule. However, we want an error message from RDKit indicating SMILES parsing error, or whatever the RDKit exception is, not a 500 server error.
Correct, however the DEPICT portal developed using ChemAxon does not sanitize SMILES and presents results for SMILES like cccc
.
Should we handle it the same way or show error about illegal SMILES?
This issue was resolved by #17
This issue is mostly because we are not using
sanitize=False
while creating mol object from SMILEs Please read this discussion here for more understandingHowever, expected behaviour should be consistent by specifying explicit ways of sanitizing SMILES