Skip to main content
--- ## Neurotransmitter Synthesis This repository contains scripts to simulate the synthesis of neurotransmitters from amino acids using RDKit. It includes the biochemical pathways for creating neurotransmitters such as serotonin from tryptophan. ### Features - Simulate the conversion of tryptophan to serotonin. - Generate and save molecular structure images at each step. - Easily extendable to other neurotransmitter synthesis pathways. ### Setup and Usage 1. Clone the repository:    ```sh    git clone https://github.com/AdwikParashar /NeurotransmitterSynthesis.git    cd NeurotransmitterSynthesis    ``` 2. Install the required packages:    ```sh    pip install -r requirements.txt    ``` 3. Run the script to simulate serotonin synthesis:    ```sh    python Serotonin_synthesis.py    ``` ### Requirements - RDKit - Pillow The script generates images of the molecules at each step and saves the...



---


## Neurotransmitter Synthesis


This repository contains scripts to simulate the synthesis of neurotransmitters from amino acids using RDKit. It includes the biochemical pathways for creating neurotransmitters such as serotonin from tryptophan.


### Features

- Simulate the conversion of tryptophan to serotonin.

- Generate and save molecular structure images at each step.

- Easily extendable to other neurotransmitter synthesis pathways.


### Setup and Usage

1. Clone the repository:

   ```sh

   git clone https://github.com/AdwikParashar



/NeurotransmitterSynthesis.git

   cd NeurotransmitterSynthesis

   ```


2. Install the required packages:

   ```sh

   pip install -r requirements.txt

   ```


3. Run the script to simulate serotonin synthesis:

   ```sh

   python Serotonin_synthesis.py

   ```


### Requirements

- RDKit

- Pillow


The script generates images of the molecules at each step and saves them in the current directory.


---


Tryptophan







Serotonin



Code Starts From Here, can be run thrugh pycharm through bio_sim Conda Enivironment


 from rdkit import Chem

from rdkit.Chem import AllChem

from rdkit.Chem import Draw

import os


# Define a function to display a molecule and save it to a file

def display_and_save_molecule(mol, filename, title):

    if mol is not None:

        img = Draw.MolToImage(mol)

        img.save(filename)

        print(f"{title} molecule created and saved as {filename}.")

    else:

        print(f"Failed to create {title} molecule.")


# Define the SMILES string for tryptophan

tryptophan_smiles = "N[C@@H](C(O)=O)Cc1c[nH]c2ccccc12"


# Step 1: Create the molecule object for tryptophan

tryptophan = Chem.MolFromSmiles(tryptophan_smiles)

display_and_save_molecule(tryptophan, "tryptophan.png", "Tryptophan")


# Step 2: Manually simulate the hydroxylation of Tryptophan to 5-HTP

htp_smiles = "N[C@@H](C(O)=O)Cc1c[nH]c2ccc(O)cc12"

htp = Chem.MolFromSmiles(htp_smiles)

display_and_save_molecule(htp, "5-htp.png", "5-HTP")


# Step 3: Decarboxylation of 5-HTP to Serotonin

if htp is not None:

    # Define the decarboxylation reaction (removes the carboxyl group)

    decarboxylation_reaction = AllChem.ReactionFromSmarts('[C:1](C(=O)O)[C:2]>>[C:1][C:2]')


    # Apply the decarboxylation reaction to 5-HTP

    products = decarboxylation_reaction.RunReactants((htp,))

    if products:

        serotonin = products[0][0]  # Get the first product

        serotonin.UpdatePropertyCache()  # Ensure the molecule properties are up-to-date

        display_and_save_molecule(serotonin, "serotonin.png", "Serotonin")

    else:

        print("Decarboxylation reaction failed.")

else:

    print("Skipping decarboxylation step due to failed hydroxylation.")


# Check the current working directory

print("Current working directory:", os.getcwd())


# Verify that the images are saved in the current working directory

print("Files in current directory:", os.listdir(os.getcwd()))


Comments

Popular posts from this blog

Coronavirus: Is this was a plan of China

Friends, 4 to 5 lakhs people die every year in India from tuberculosis, around 2 lakhs people die due to malaria, and around 45 thousand people die due to hepatitis(a type of virus) And 20 people have died from coronavirus only 20 people in India. Why all this ruckus? Why so much fear? Why did our entire country stop? I will not answer all these questions, I will give you some clue. So that you will understand by yourself. It all started with China. Friends, this China hides itself from the world even it does not use Google and Facebook in the country China always hides its personal affairs. Today people in the world are using Google Chrome for search, but in China, China uses its own browser.Surprisingly, where 1.75 billion people in the world use WhatsApp, China has its own WeChat . China made alibaba .com to compete, not only that, people are using it all over the world, it is the same alibaba.Which is distributing masks all over the world. China did not...

24 Districts That Can Get Exemption On 20 April

We have prepared the list of 24 districts for you. Where has not been a single Coronavirus case for the last 14 days. Are your district also in these districts, carefully check these lists? Those Districts are:- •  Maharashtra-Gondia •  Chhattisgarh- Rajnandgaon (राजनांदगांव)                              Durg                               Bilaspur •  Karnatak-Devanagari                       kodaku                        Tumakuru                         Udupi •  Goa-South goa • Kerala- Wayanad                 K ottiyam •  Manipur-Western Imphal •  Jammu Kashmir- Rajouri •...

Lockdown 2.0: Things That May Be Permitted After April 20

As our Prime Minister Narendra Modi said on April 14 That from 20 April Some work may resume in these lockdown. So, let's know what will open and what will not?                           After 20 April  Will Work                                  Will Not Work Farming-farmers               • Hotel-Restaurant  Jute Industry                      • Mall-Cinema Hall IT Sector                              • Train-Metro Cold Storage                       • Educational                              ...