Closed mnowotka closed 8 years ago
The 7.4 refers to the pH (Physiological) the calculation is performed at, so it's not an error. I'll need to check other protocols that Anne uses just in case it's referenced from the ACD component, then if it's not referenced (or at least renamed) we can rename it here.
Hmmm, strange - my code expects "ACD_LogD" and I'm not sure if it always fails... Is it possible that in some cases "ACD_LogD" is returned and in other cases "ACD_LogD7.4"? Anyway, we will check that tomorrow.
Just checking the protocol and I found this Pilotscript I'd added already:
/* This is needed as there are 6 compounds that output acd_logd as nan these are 439951,499790,323317,323345,11922,58671,72457 */
rename('ACD_LogD7.4', 'ACD_LogD');
If ACD_LogD is not defined or acd_logD='nan'
then ACD_LogD:='';
end if;
It's also the last component before the pipeline exits. I will debug.
I've moved the component. Seems to be working now:
{
"HBD": 4,
"HBA": 3,
"Num_NegativeAtoms": 0,
"N_heavy_atoms": 26,
"N_polar_atoms": 5,
"Molecular_Species": "BASE",
"RO3_PASS": "N",
"MED_CHEM_FRIENDLY": "N",
"RTB": 7,
"ACD_LogD": "0.564",
"QueriesMapped": [
"[C;!R](-[C;!R]=O)=[C;!R]"
],
"net_charge": [
0
],
"Molecular_Formula": "C21H23N3O2",
"ACD_LogP": "2.548",
"num_ro5_violations": 0,
"PSA": 77.15,
"Molecular_Weight": 349.42622,
"RemovedSalts": "lactate stereo",
"ALogP": 3.194,
"ACD_MOST_APKA": "8.706",
"INORGANIC": false,
"ACD_MOST_BPKA": "9.295",
"Num_PositiveAtoms": 0
}
For this molfile:
CC(O)C(O)=O.CC1=C(CCNCC2=CC=C(\C=C\C(=O)NO)C=C2)C2=C(N1)C=CC=C2
The web call via POST using this URL http://scitegic.windows.ebi.ac.uk:9955/rest/chembldescriptors returns:
So there is an error in one key:
ACD_LogD7.4
, should beACD_LogD