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

India Builds Critical Bridge Near China Border

BRO has constructed 430 feet long Bridge at Daporijo over the Subansiri river in Arunachal Pradesh's upper subansiri district. The bridge will provide the movement of supplies to around 3,000 troops who are deployed along the line of actual control with China. The Border Road Task Force (BRTF) begin the construction of the bridge on March 17 on April 14, The Bridge was reported to built successfully. Arunachal Pradesh's  CM inaugurated the bridge over the video conference on April 20. Details The Border Roads Organisation (BRO) had  upgraded the bridge from class 24 to class 40 tons so that it can bear the heaviest load such as artillery guns that can be taken forward a long the LAC.  The upgrade will also help in the future infrastructure development of upper Subansiri. Project Arunank Project Aprunank is responsible for the construction and maintenance of x approximately 1113 kilometres of roads in Arunachal Pradesh and Assam. It is being implemen...

Trump seeks Modi's help to release Hydrochloroquine ordered by US to treat Covid-19 patients

So Trump has said openly that he called (phone Call ) PM Modi and said that Give US Exemption on Export of Hydrochloroquine (a type of medicine used to cure malaria, now helping in making medicine for Covid-19) and Export to the US. Now, first of all, I would suggest you to see this speech. points To Note Here As Trump mentioned-US is not out of hydroxychloroquine tablets they are making some in the US. The US has ordered Hydrochloroquine Tablet from around the world and many other countries are sending them the tablet too.  India being a producer of hydrochloric tablets can add the US effort to contain COVID-19. India Production Capacity  of Hydrochloroquine Presently, the country's production capacity is 20 crores tablet every month.  India is leading clear across the globe in the manufacturing of HCQ with IPCA Laboratories, Zydus Cadila and Wallce parmaceuticals as top Pharma Companies.           ...

China orders 2 Lakh body bags from Taiwan, Is Something is fishy.

The affinal home directory in Taiwan recently received an urgent order of 200,000  from China. This comes as more countries questions, what is the real numbers of death due to China's virus. Many countries question China's official number   China Concealed extent of a virus outbreak, US intelligence says  CIA hunts for authentic virus total in China, dismissing Government tallies Caixin, a leading Chinese business Publication, previously reported that there were thousands more funeral urns delivered to Wuhan than would be accounted for by the official Coronavirus death toll. Wuhan's death toll could be astronomically higher than the Chinese government has reported, some residence say Stacks of thousands of Urns outside funeral homes in Hubei province have driven public doubt in Beijing's reporting.  Local believe more than 42000 people have died in Wuhan.  It can't be right because the incinerators have been working around the clock, So how...