r/CompDrugNerds • • Sep 15 '20

Do you want to do research on drugs from the comfort of your own home? Do you want to learn how to code? Do you know how to code but want to contribute to projects? This is the guide for you.

89 Upvotes

Welcome to /r/CompDrugNerds! We are coordinating open source, decentralized, in-silico research on drugs. Most of the knowledge you gain and software you contribute to will be applicable to a wide range of drugs, including medicinal, recreational, nootropic, anti-aging, etc.

Big pharmaceutical companies have developed sophisticated software for in-silico drug discovery. Some functions of this software include predicting whether the drug can be absorbed through the stomach and blood/brain barrier, along with it's metabolism and toxicity, machine learning models to take an arbitrary compound and predict what receptors in the body it might act on, and predicting how effective it will be at the receptors it interacts with. A lot of this technology is pretty amazing stuff, and could be put to use towards a number of interesting areas, but isn't because the pharma companies aren't interested.

A small amount of this software exists scattered in open source or web-accessible forms, but it tends to be highly fragmented, optimized for specific use cases, and has documentation geared towards subject-matter experts.

It doesn't have to be this way! We can bring these ideas together in an open source way, so that anyone with minimal ability to use a command line and introductory coding skills can use this software to research drugs without an expensive lab, and can improve the software for everyone else. Beyond drug discovery, open source projects are making inroads into diverse worlds such as brain research (watch this video to get hyped about DIY EEG), or even automating agriculture (interesting to the folks over at /r/spacebuckets and /r/druggardening).

I want to contribute! How do I start?

Most open source projects using something called git to manage contributions from all their contributors, and many of them host their git projects on GitHub. To get started, GitHub provides this very short course, or you can just follow the instructions on this repository to make your first contribution in just a few minutes!

Once you know how to contribute to a project on GitHub you can potentially contribute to any number of open source projects. Some examples of companies with many projects on GitHub include Microsoft, Google, Apple, and Discord. Of course we are more interested in computational drug research, so we include a number of related projects to help out below.

What are some projects I can help out on?

Projects use "issues" to track bugs, feature requests, and other proposed changes to the code. When you find a project you are interested, check out it's issues tab on GitHub to see what changes other people have already proposed. Issues are sometimes tagged with things like "good first issue" if the issue is small and easy for a beginner to accomplish. Check out some existing projects to see if you can help out, and to gain ideas for software you would like to see built for your use case.

Here are some projects to check out. Note some of them are not open source and thus not on any public source control site like GitHub, so we have to use slow, manual, web interfaces to use them, or pay a good deal of money. But fear not, almost all of the non-open-source software has published papers describing their exact models, just waiting to be implemented by the open source community.

Drug Target Interaction:

Open Drug Discovery Toolkit. Really cool project, implements a wrapper around RDKit and AutoDock Vina, along with some interesting scoring algorithms like NNScore. Semi actively developed (most recent commit was 2 months ago) and open source.

Chemprop. This is a project recently released by MIT that uses some sophisticated deep learning to predict drug target interactions, and as of 2020 is pretty much "state of the art" in prediction of drug properties. They trained their model on an antibiotics data set and discovered a new antibiotic, and are now using it to research COVID-19 drugs. This is begging to be turned towards discovering novel 5-HT2A agonists, or new nootropics, or any number of things. Actively developed and open source.

DeepChem. Focused primarily on helping you build neural networks for analyzing drugs, seems to primarily be a wrapper around tensorflow with a slightly easier to use API for cheminformatics. Actively developed and open source.

SwissTargetPrediction and SwissDock. Web only. Provide a drug and target prediction spits out the receptors it thinks the drug is most likely to interact with. SwissDock allows you to manually select a protein and run a docking simulation between the ligand and the protein. Some problems about web-only tools: Takes a few seconds per drug (or minutes to hours for SwissDock), and their terms of use state they will ban you if you run an "excessive" number of them. Unclear if they would be okay with researchers modeling recreational style drugs if their service gets swamped by our project. Not actively developed.

PredictNPS. Basically SwissTargetPrediction but targeted towards novel psychoactive substances, this tool was created by the Euopean Union to improve their ability to regulate research chemicals. They provide their finished tool as a Windows-only, GUI-only, model that requires the KNIME platform to run. Not actively developed.

target-pred-py. Replication of SwissTargetPrediction or PredictNPS but in Python. Actively developed and open source.

ADME:

SwissAME. Web only. Provide a drug (via a SMILES string) and it will spit out predictions about absorption, druglikeness, toxicity, etc. Same web-only problems. Takes a few seconds per drug, and their terms of use state they will ban you if you run an "excessive" number of them. Unclear if they would be okay with researchers modeling recreational style drugs if their service gets swamped by our project. Published paper describing their exact models. Not actively developed.

admetSAR. Web only. Same idea as SwissADME, but run by a Chinese university instead of a Swiss one. I haven't actually got their website to load, it might be abandoned. But they also have a published paper describing their exact models, waiting to be implemented by open source friends. Not actively developed.

adme-pred-py. Replication of SwissADME in Python for local use. Actively developed and open source.

Brain research:

OpenEEG. An older EEG project that is more DIY.

OpenBCI. A newer project that is more polished. Their 3D printable headsets are quite nice.

Brainflow. Attempting to be a universal library for interfacing biosensing tools with your computer. Actively developed and open source.

MNE. Very well developed library for exploring, visualizing, and analyzing human neurophysiological data such as MEG, EEG, etc. Actively developed and open source.

Other libraries:

RDKit. Cheminformatics library written in C++ and Python.

CDK. Cheminformatics library written in Java.

ChEMBL. The ChEMBL group has many helpful cheminformatics projects.

Folding@Home. The FAH group has most of their work open source, including some cool work on their coronavirus project.

Molecular Sets (MOSES). A benchmarking platform for molecular generation models.

What projects can the community work towards?

Once we have a group of people working on these software packages, fixing bugs and adding new features that we might need, we can start working on cool projects as a community. Here are some cool project ideas I hope some people will be interested in:

  1. Drug Discovery for recreational drugs. One example of what this might look like is scanning through the ZINC database for novel 5-HT2A agonists. Either using a classical docking approach using the recently solved structure of the receptor and Open Drug Discovery Toolkit or by retraining the MIT Chemprop project with a serotonin receptor assay and using the approach they took to discover new antibiotics to find the next LSD.

  2. Better ADME-Tox for research chemical users. Right now someone who is thinking of buying a novel research chemical is pretty much their own lab rat. They can get some very basic medicinal chemistry information from SwissADME, but that is more targeted towards druglikeness than toxicity, and lacks detailed explanations for a lay person. We could build easy to use ADME-Tox software that is free, open source, locally-runnable for privacy, and provides detailed toxicity information with explanations geared towards amateur researchers. The same tool would be useful to the more adventurous people in the nootropics community as well.

  3. Better open source drug retrosynthesis. Retrosyntheis software exists but for the most part sits behind paywalls. We could improve existing retrosynthesis software, or make our own. We could even give it an amateur chemistry slant by highlighting pathways available to more amateur/home chemists.

  4. More of a moonshot project: There exist commercial headband-style EEG devices that claim to help you to learn to meditate, they do this by reading your brainwaves and if you are lost in thought they can display a light on your computer screen or play an audible tone to remind you to clear your mind. It is also said that some forms of meditation, when practiced for years, can create states of consciousness similar to a psychedelic experience. We could create a database of EEG data from people having a psychedelic experience and also normal consciousness, then train a machine learning classifier to distinguish the brainwaves of the two difference states, then build our own simple "train yourself to meditate" front end, and we would have a tool to help train yourself to meditate into a psychedelic experience.

  5. Generate a database of all possible modifications to recreational drugs, to generate prior art and ensure they are not patentable.

  6. A lawyer or paralegal could do a literature search on the patent landscape for recreational drugs. Right now there hasn't been much public work on combing through the new psychedelic patents that groups are applying for and investigating which patent claims have a chance of holding up and which do not.

In the comments below please post any other good open source software packages the community should know about and potentially work on, good data sets for training machine learning models, as well as any project ideas you might have.

Some places to get started in the community:


r/CompDrugNerds • • Sep 23 '20

DMT Analogs Bound to 5-HT2B

31 Upvotes

r/CompDrugNerds • • Sep 15 '20

[Project] Let's discover a new psychedelic

27 Upvotes

Let's say that you have a computer, and you want to discover the next LSD. How would you do that?

There are two main categories of methods in computational drug discovery: Structure-based methods like docking, and ligand-based methods like pharmacophore analysis and molecular fingerprints.

Docking:

In September of 2020 the crystal structure of the agonist bound 5-HT2A receptor was published in the Protein Data Bank. It is entry 6WGT. We can use this in molecular docking software to scan through a library of compounds and identify previously unknown psychedelics. For docking software, we can use AutoDock Vina (or ODDT which is a nice wrapper around AutoDock Vina with some extra tools we will find useful) or other docking software. Docking tends to be computationally expensive, so unless someone wants to rent a supercomputer from AWS, we probably need to distribute the work load. We can use BOINC to make our own Drugs@Home project to do this.

Ligand-based:

There are many ligand-based methods for computational drug discovery, but one exciting idea is to retrain the cutting edge Chemprop model from MIT. To do this we would need to find a good serotonin receptor assay, clean the data, and train the model with our cleaned data. Then we could use the model to scan a library of compounds and take the top X hits as our new psychedelics.

Some work that needs to be done, and questions that need to be answered:

  • What library of chemicals should we screen? Initial thoughts are ZINC15, but we should think about subsets of ZINC or other databases.

  • For docking, someone should make a script to get the PDB entries ready for docking. Should probably use something like ODDT for this.

  • Does anyone have experience with BOINC? The recent success of the Minecraft@Home team finding pack.png makes me optimistic that BOINC-ification of projects is approachable by a dedicated amateur group.

  • Does anyone know any good quality serotonin receptor assays?

  • What other methods should we look at? Does anyone have experience with pharmacophore analysis, etc?


r/CompDrugNerds • • Oct 10 '20

Computational Model of Psychedelic Tracer Effects

Thumbnail
qualiacomputing.com
22 Upvotes

r/CompDrugNerds • • Oct 11 '20

N-methyl pyrrolidine 4-hydroxy indole and other analogues . Just sharing the ones with the most potential and I really liked the last ones structure since it kinda resembles an Ach. Seems like Pyrrolidine subs have allot of potential . And some pyridine one too .

Thumbnail
gallery
19 Upvotes

r/CompDrugNerds • • Oct 01 '20

Lysergamides bound to 5-HT2A

17 Upvotes

r/CompDrugNerds • • Sep 21 '20

Ph.D. Student happy to help with molecular docking if anyone is working on a docking project. I docked LSD and Psilocin to the 5-HT2B receptor to validate my docking method. LSD bound 5-HT2A receptor will be available soon.

Post image
17 Upvotes

r/CompDrugNerds • • Sep 30 '20

Project update 2020-09-30

16 Upvotes

It is the end of September, and this is a good time to make a project update. Although I created this subreddit ~1 month ago, I only really started the project 2 weeks ago, so not much time has passed. Despite only being online for 2 weeks I think we've made some interesting progress and there have been some exciting developments.

Docking classical psychedelics:

  • /u/canmountains is a PhD student working on molecular docking for his thesis, and was able to provide some really interesting novel research as well as some great insight into the docking process.

  • He did some great novel research into the binding profiles of some DMT analogs that are out on the research chemical markets, providing some insight into how they might be similar or different to each other and to DMT. Some future work that could be done here would be to dock 5-MeO-DMT (another interesting DMT analog) to compare its binding profile, as well as to re-dock all of these molecules against the newly available 5-HT2A receptor that we are more interested in.

  • He informed us that since 5-HT2A changes shape so much whether it's agonist bound or antagonist bound, the original PDB file we were looking at would provide erroneous results. The agonist-bound crystal structure of 5-HT2A that we need was published in the PDB only six days ago! It is here: https://www.rcsb.org/structure/6WGT. Now that it has been published we need to look into docking some molecules with it, and automating the process and scoring at the orthosteric site. I will have to rely on canmountains or another person with his expert-level knowledge to help with this (maybe /u/MBaggott/ or /u/neuropharmnaut can help out here), but once we have the AutoDock Vina config script set up, and a scoring script for the orthosteric site, we could potentially start looking into Dockerizing the scripts to dock arbitrary molecules at the receptor, and then we will be ready to spin up our own Drugs@Home BOINC project!

Molecule generation

  • /u/infinitum-bio posted a demo video of their molecule generation model and front-end. They are still unsure about releasing it open source, so it's still unclear if this project will help us too much.

  • I found a cool project that we can adapt for molecule generation if infinitum-bio doesn't want to open source things. Molecular Sets (MOSES). This project implements several state of the art molecule generation models and provides a way to benchmark new ones, and it's released under a permissive MIT license. Any molecule generation project should be benchmarked using this library.

  • Some of the models in MOSES provide incredible performance, Character-level Recurrent Neural Network (CharRNN) seems to be the state of the art currently. If someone wants to play around with some really cool machine learning, they should try to retrain this network for drugs of interest to you. I don't think I'm going to focus on this at this time, so this is a call to action for anyone interested.

Data sets

  • In order to do any ligand-based drug discovery we need good datasets of molecules and their action at interesting receptors.

  • I found one candidate for a 5-HT2A receptor assay here: https://pubchem.ncbi.nlm.nih.gov/bioassay/624169 . It looks pretty good but ideally I'd like to compare and contrast a few of them before settling on one. Please look for other receptor assays and post them in this thread. Anyone with a biochem background can help here in a huge way, some of the people who have offered help are /u/shredtasticman, /u/BrittyLovu29, /u/the_quassitworsh/, /u/tomythefish .

  • /u/gzintu expressed some interest in looking into novel k-opioid receptor agonists. One great way to get that kickstarted would be to look for k-opioid receptor assays. Check out PubChem, ChEMBL, etc. (also look for the receptor structure on the PDB, and post any findings in the subreddit)

ADME-Tox

  • /u/lzzy423 posted his master's thesis presentation on Physiologically-Based Pharmacokinetic Models (PBPK) of the metabolism of THC and Ethanol. It's pretty cool, but seems to be specifically tuned to those two drugs (correct me if I'm wrong here). One task to do here, translate his MATLAB code into a non-proprietary language like Python, and implement it in a specific open source ADME-Tox library like adme-pred-py. Once his paper is published we will be able to do this better, with the finalized, published model, but work can start now if you're feeling eager.

  • /u/F1rstOutlier suggested they could help out with interpreting tox data, and would do some research on toxicology models (especially the in-silico ones). This would be good, and if anyone else also wants to tackle this the input is welcome.

Thanks to everyone that contributed in September! I hope October is a fruitful month. It will be Hacktoberfest, which means you can earn a free t-shirt (or plant a tree) for contributing to open source software on GitHub, so I plan on making more "advertising" style posts on programming subs to attract more coders.


r/CompDrugNerds • • Dec 28 '20

How can I learn more about computational/in-silico drug research?

15 Upvotes

Hi folks!

So, I recently took a class at my university, in which we used a software program called "Pymol" to generate images of various proteins and "drugs" being bound to them. Do you know where I can learn more about this program? Additionally, I am really curious about computational and in-silico studies, and I wanted to ask if there was anywhere where I could start learning about this! Does anyone know if there any journals which publish research in this area? I would really like to read more about how in-silico studies and drug research works. Thanks!


r/CompDrugNerds • • Oct 02 '20

Project Idea?

14 Upvotes

Hello everyone,

The recent structure of 25CN-NBOH with 5-HT2A presents an interesting new direction. 25CN-NBOH is a very selective 5-HT2A agonist. The question is..why, and how?

The paper gives one explanation, G238 is replaced by Ser/Thr in other biogenic amine receptors. [1] This may potentially cause a hydrogen bonding network with the cyano group [paper doesn't go into why, this is my own idea] causing conformational rearrangements that abolishes activity (would be interesting to test using computational modeling). However, 5-HT2B/C both have that glycine. So that doesn't explain why its so selective to 5-HT2A. Additionally, the G238 has no interaction with any of the other ligands throughout the various 5-HT2A/B/C structures.

There have actually been numerous studies to determine why/how phenethylamines are so effective ( compounds ranging from the NBOME family to the 2C family). [2] In fact, computational studies have been conducted on these compounds to determine how they bind.[3] Unfortunately, they did not have the info we have now (its actually interesting to see their results with the actual crystal structure we got). In fact, another paper was able to get complete selectivity of 5-HT2A (comparison to 5-HT2C). [4]

Again, the question arises as to why. What structural elements contribute to 25CN-NBOH selective interaction to 5-HT2A.

The outcome of this study would be quite interesting. It would greatly aid in the design of small molecule ligands that are even more selective/potent, and can eliminate much of the concerns for off target effects (such as the commonly known LSD-5-HT2B interaction). In fact, a computational study of this caliber could probably even be publishable, and this is probably the next step you would take anyways from the original published paper [1]. You could easily take study [3] and modify the some of the parameter and use the recent 5-HT2A either 25CN-NBOH or LSD structures are models. Furthermore, you could even calculate the relative energies of each amino acid and determine their binding energies/contributions (this would also greatly aid in rational drug design).

Any thoughts?

  1. https://www.sciencedirect.com/science/article/pii/S0092867420310667#figs6

  2. https://pubs.acs.org/doi/10.1021/cn400216u

  3. https://pubs.acs.org/doi/10.1021/ci100402f

  4. https://pubs.acs.org/doi/10.1021/cn3000668


r/CompDrugNerds • • Sep 22 '20

LSD bound to 5-HT2A Serotonin Receptor

13 Upvotes

https://www.cell.com/cell/fulltext/S0092-8674(20)31066-7

This will help so much in creating new psychedelics that act at the serotonin 2a receptor


r/CompDrugNerds • • Jun 02 '21

A particularly good webpage documenting the computational drug discover pipeline and having a comprehensive list of computational resources.

Thumbnail
click2drug.org
12 Upvotes

r/CompDrugNerds • • Oct 08 '20

Identification of psychedelic new psychoactive substances (NPS) showing biased agonism at 5-HT2AR

12 Upvotes

https://www.youtube.com/watch?v=EPLdgNhfmng

Looking at some of these compounds in terms of how they dock to 5-HT2AR would be fascinating. Notice how much stronger the Iodinated compounds are than non-iodinated compounds. Because Iodine is such a strong factor in potency, there must be something special about the way iodine interacts with some amino acid on the receptor.


r/CompDrugNerds • • Dec 01 '20

Project update 2020-11-31

11 Upvotes

It's the end of November and time for a project update. November was a fruitful month for the novel psychedelic discovery subproject, while other areas were more quiet.

Docking classical psychedelics:

  • We have successfully docked LSD to the 6WGT PDB structure using only open source software and easy to automate methods! It's pretty. Download the files here. To perform the docking like we did, simply use AutoDock Vina and run vina --receptor 6WGT_cleaned.pdbqt --ligand LSD.pdbqt --size_x 25 --size_y 25 --size_z 25 --center_x 25.36 --center_y 41.70 --center_z 53.93 --exhaustiveness 50 --num_modes 1. A big thank you to community member /u/canmountains for his close work on this project. Next steps are refining (or writing our own) scoring methods. Once we have better scoring for docked compounds in the 5-HT2A orthosteric pocket, then we are ready to start screening bigger databases of molecules.

Machine learning for novel psychedelics:

  • We spent November training many iterations of our neural network model, with plenty of tinkering and hyperparameter optimization runs. We have been able to get the accuracy up from ~0.59 to ~0.73, and are very happy with this progress. We still have a lot of work to do, and hope to get the accuracy up higher before starting the broad screen of bigger databases. A big thank you to community member /u/density_functional for their help with this. We are tracking results in this repository: https://github.com/comp-pharm/ml-psychs/

  • As an experiment, we ran our model against the Drug Repurposing Hub compounds, and the results are promising. The drugs from the database that our model predicts to be most likely 5-HT2A agonists make sense, as they are things like ergotamine derivatives.

Other

  • Nvidia GTC 2020 happened in October. They said they would post the videos of talks for broader viewing in November, but have not yet done so. Once they do post them, I'll make a post to the sub with some of the more relevant ones linked.


r/CompDrugNerds • • Sep 26 '20

Any interest in novel K Opioid Receptor Agonists?

11 Upvotes

I would love to see someone attempt to find new ones. If anyone actually does (I would, but I haven't even started my first year of uni yet) please keep us posted!!


r/CompDrugNerds • • Sep 23 '20

PDB crystal structure of agonist-bound 5-HT2A released!

Thumbnail
rcsb.org
10 Upvotes

r/CompDrugNerds • • Sep 16 '20

[Request] Looking for good bioassays of interesting receptors

9 Upvotes

In order to train machine learning models for drug discovery, we need good bioassays of interesting receptors.

As part of the search for new coronavius drugs, MIT trained their Chemprop model on this SARS bioassay: https://pubchem.ncbi.nlm.nih.gov/bioassay/1706

We need similar assays for receptors that are interesting to us. Namely, it would be cool to train this model on:

  • 5-HT2A receptors to discover new psychedelics

  • NMDA receptors to discover new dissociatives

  • CB1 receptors to discover new cannabanoids

  • GABA-A receptors to discover new benzo-like drugs

  • mu-opioid receptors to discover new opiods

  • k-opiod receptors to discover the next salvia etc.

We need your help! Please post any interesting bioassays you find in the comments below so we can get discovering.


r/CompDrugNerds • • Apr 15 '22

Small update on ML Psychs project

8 Upvotes

The project to use machine learning models to try to identify novel psychedelics has had small, incremental progress: until now. We've had a fairly large improvement in model performance from better, cleaner data. We've moved from ~60% accuracy to ~90% accuracy. We have big plans on further improving the results with augmented data, and once we're happy with model performance we hope to launch our large scale project to run the model against the large ZINC15 database (possibly setting up our own BOINC project to get the community involved in helping). Watch this space!


r/CompDrugNerds • • Mar 02 '22

Fun little HTVS screening tutorial from PlayMolecule using LSD as a template

Thumbnail
medium.com
8 Upvotes

r/CompDrugNerds • • Feb 03 '22

I screened 3 million compounds at the CB2 receptor and ended up with 250 hits.

Thumbnail
youtube.com
8 Upvotes

r/CompDrugNerds • • Sep 08 '21

Interactive Bioinformatics Tutorials with Bash (bedtools, bowtie2, samtools and other libraries to manipulate DNA)

Thumbnail sandbox.bio
8 Upvotes

r/CompDrugNerds • • Jun 16 '21

Revealing the Selectivity of 5-HT2 using Molecular Docking. Part 1: 5-HT2A/C Antagonists

Thumbnail
self.drugnerds
8 Upvotes

r/CompDrugNerds • • Apr 08 '21

[R] Biological structure and function emerge from scaling unsupervised learning to 250 million protein sequences

Thumbnail self.machinelearning
8 Upvotes

r/CompDrugNerds • • Nov 20 '20

Github repo for MolPMoFiT (Inductive transfer learning for Molecular Activity Prediction)

Thumbnail
github.com
8 Upvotes