MOASL: Prediction of the mechanism of action from transcriptional signature based on similarity learning!
* sklearn
* numpy
* pandas
* scipy
* pytorch-metric-learning
* h5py
* faiss-gpu
git clone https://github.com/jianglikun/MOASL.git
We present MOASL (MOAs prediction via Similarity Learning), which automatically learns similarity embedding among signatures of shared MOAs through contrastive approach. We evaluated the accuracy of signature matching using MOASL on different transcriptional activities score (TAS) datasets as well as diverse cell lines. MOASL offers substantial performance improvements over several statistical and machine learning methods. In addition, we demonstrate the rationale of the model by visualizing the signature annotation procedure, where the query signatures can easily predict the MOAs labels by calculating their similarity to the reference embedding. Finally, we applied MOASL to glucocorticoid receptor (GR) agonist and 8 compounds in top-10 are correctly defined as GR agonist.
Download the L1000 dataset form CLUE;
Use cmapPy process the L1000 data before you gernerating the dataset by youself;
Or you can directly use my processed data, download from https://pan.baidu.com/s/1syd05gFX7x4_STb3eVi13w (verify code 2023);
# prepare single signature data
python data/prepare_data_level5.py
# prepare TAS-high data
python data/prepare_data_tas_high.py
# prepare TAS-all data and signle cell data
python data/prepare_data_tas_all.py
python src/train.py
# all compare method script in ./compare
Benchmark.py
CMapGSEA.py
CMapKS.py
Drsim.py
Euclidean.py
RF.py
Random.py
SVM.py
Spearman.py
jaccard.py
# change "experiment_result.xlsx" as suuplymentary_file.xlsx, table=TableS2
plot_acc_tas.ipynb
analysis_drug_demention.ipynb
# change "experiment_result.xlsx" as suuplymentary_file.xlsx, table=TableS3
plot_acc_low.ipynb
cell_display.ipynb
MOASL: Prediction of the mechanism of action from transcriptional signature based on similarity learning
submit in 2023
Likun Jiang [email protected]
Xiangrong Liu [email protected]
Xiamen University,Xiamen,China