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

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 •...

The scientist explained the real reason behind the appeal of burning diyas.

Amidst the growing threat of Corona, PM Narendra Modi has called for lighting a Diya, Candle or anything for 9 minutes on April 5 at 9:00 pm. Through this message, the country is said to be united to defeat the Coronavirus. And people are welcoming this appeal of our respected PM. How many times has the world seen and heard what a call of a Prime Minister means for 130 crore countrymen? In such a situation, when the houses are lit and the country is united, then all this will be heavy on the coronavirus.              दीपज्योतिः परब्रह्म दीपज्योति जनार्दनः ।               दीपो हरतु मे पापं संध्यादीप नमोऽस्तुते ॥ दीप ज्योति परम ज्योति दीप ज्योति जनार्दनः दीपो हरतु मे पापं दीप ज्योति नमोस्तुते! शुभं करोतु कल्यांणाम् आरोग्यम् धन सम्पदा | शत्रु बुद्धि विनाशाय दीपकाय नमोस्तुते     The old verse is also saying that  Deep is auspicious and factor of well-being, the lighting of Deep can free ...

Curfew due to Corona virus (Covid-19)

Public Curfew will be imposed this Sunday to deal with the Corona  epidemic. Prime minister Narendra Modi appealed to the Countrymen to look united  for 14 hours on March 22 from 7am to 9pm. He said that this curfew is for the public.During this time people do not get out of the house,do not go on the road. passengers train will be cancelled for 22 hours on public curfew:   From 12:00 a.m. on Saturday night to 10:00 p.m. on Sunday, that is, the wheel of the trains will stay on for 22 hours. According to estimates, more than 1300 trains will remain cancelled. However,trains running on the way will not be stopped in reaching the destination. Prime Minister's 5 request on this Navratri ● Do not get out of the house ● Children and the elderly should stay alert ● Follow Public Curfew ● Avoid congestion  in hospitals ● Ignore  rumors trending on social  media ( like Desi upay).