theislab / chemCPA

Code for "Predicting Cellular Responses to Novel Drug Perturbations at a Single-Cell Resolution", NeurIPS 2022.
https://arxiv.org/abs/2204.13545
MIT License
88 stars 23 forks source link

bug in lincs.ipynb #124

Closed bhomass closed 10 months ago

bhomass commented 11 months ago

def extractdrug(cat): split = cat.split('') if len(split) == 2: return split[-1] return '_'.join(split[1:]) # bug here in original code split[1:-1]

if left the way it is, eval_category of VCAP_assinex_D328 would be truncated to assinex, which would not match the condition of assinex_D328. Same for other examples like HDACi1,2 + 3_mix and TUL_XIX003