ruoqi-liu / LP-SDA

Code and Datasets for paper "Towards early detection of adverse drug reactions: combining pre-clinical drug structures and post-market safety reports"
9 stars 4 forks source link

pickle文件 #2

Open himiko14122 opened 3 years ago

himiko14122 commented 3 years ago

你好,请问你在代码中用到的pickle文件能上传一下吗,不太清楚你的pickle文件是什么内容。非常感谢

ruoqi-liu commented 3 years ago

As shown in mapping.py, we use three pickle files which are located in "pickles/":

sider_eval_pairs = pickle.load(open('pickles/sider_eval_pairs_final.pkl', 'rb'))
drugid2rxnorm = pickle.load(open('pickles/drugid2rxnorm_mapping.pkl', 'rb'))
rxnorm2features = pickle.load(open('pickles/rxnorm2features_mapping.pkl', 'rb'))
himiko14122 commented 3 years ago

As shown in mapping.py, we use three pickle files which are located in "pickles/":

sider_eval_pairs = pickle.load(open('pickles/sider_eval_pairs_final.pkl', 'rb'))
drugid2rxnorm = pickle.load(open('pickles/drugid2rxnorm_mapping.pkl', 'rb'))
rxnorm2features = pickle.load(open('pickles/rxnorm2features_mapping.pkl', 'rb'))
* "sider_eval_pairs" contains the ground truth evaluation pairs obtained from SIDER

* "drugid2rxnorm" contains the ID mapping from the drug's id in FAERS to Rxnorm id

* "rxnorm2features" contains the ID mapping from Rxnorm id to binary-encoded chemical structures.

Thanks for your reply.
I am currently doing data mining on FAERS, I have some problems, Can I ask you some questions? This is my mail: 843298038@qq.com. If you are willing to help me, please send me your contact information, thank you very much.

ruoqi-liu commented 3 years ago

As shown in mapping.py, we use three pickle files which are located in "pickles/":

sider_eval_pairs = pickle.load(open('pickles/sider_eval_pairs_final.pkl', 'rb'))
drugid2rxnorm = pickle.load(open('pickles/drugid2rxnorm_mapping.pkl', 'rb'))
rxnorm2features = pickle.load(open('pickles/rxnorm2features_mapping.pkl', 'rb'))
* "sider_eval_pairs" contains the ground truth evaluation pairs obtained from SIDER

* "drugid2rxnorm" contains the ID mapping from the drug's id in FAERS to Rxnorm id

* "rxnorm2features" contains the ID mapping from Rxnorm id to binary-encoded chemical structures.

Thanks for your reply. I am currently doing data mining on FAERS, I have some problems, Can I ask you some questions? This is my mail: 843298038@qq.com. If you are willing to help me, please send me your contact information, thank you very much.

Here's my email: liu.7324@osu.edu. Feel free to email me if you have any questions related to this project.