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 them in the current directory. --- Tryptophan Serotonin Code Starts From Here, can be run thrugh pycha



---


## 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 all

Top 5 Things To Do In The Lockdown | That can change your life.

Our respected Prime minister has extended the lockdown to 3 may and During this period we all have to stay in our homes. Also, we should respect this decision of our Prime Minister Because it is for our safety only. But, we can utilize this time to improve ourselves, To work on our passion, To know ourselves more better. We are suggesting you 5 very productive things that can change your life, If you follow them. Here are Top 5 Things To Do In The Lockdown.   Fix the relationships that required communication. In our present busy life. We do not get so much time to understand our family and interact with them well. It can be anyone any family member or a friend With which we could not communicate due to our busy life. Psychological Research says One of the biggest factor of Happiness is a long term relationship, a good relationship.  2. Limit becoming addicted to your phone,gaming, anything  Now, It can happen that if we are all sitting at our house then we

Saudi Arabia To Abolish Flogging| News India Updates

The Kingdom of Saudi Arabia Saudi Arabia apply sharia (Islamic law) as its national law. The kingdom occupies 80% of the Arabian Peninsula. Saudi Arabia borders Yemen, UAE, Qatar, Bahrain, Kuwait, Iraq and Jordan. (There is no land border with Bahrain but a bridge connects the two countries) Saudis Embrace  Rapid Changes previously Saudi Arabia was the only country in the world where a woman could go to jail for driving. The royal decree made by king Salman in May 2017 allows women to access Government and Health Services without requiring consent from their mail Guardians, who otherwise have the ultimate  authority over what women in the country can do. Saudi Arabia And Human Rights  Freedom house is a US based US government-funded Non-profit Non-governmental organisation that conducts Research and advocacy on democracy political freedom and human rights. You can Check SaudI Arabia points in terms of Freedom. Here :  Freedom House rates 210 countries and territorie