Bioinformatics ReviewBioinformatics Review
Notification Show More
Font ResizerAa
  •  Home
  • Docking
  • MD Simulation
  • Tools
  • More Topics
    • Softwares
    • Sequence Analysis
    • Algorithms
    • Bioinformatics Programming
    • Bioinformatics Research Updates
    • Drug Discovery
    • Phylogenetics
    • Structural Bioinformatics
    • Editorials
    • Tips & Tricks
    • Bioinformatics News
    • Featured
    • Genomics
    • Bioinformatics Infographics
  • Community
    • BiR-Research Group
    • Community Q&A
    • Ask a question
    • Join Telegram Channel
    • Join Facebook Group
    • Join Reddit Group
    • Subscription Options
    • Become a Patron
    • Write for us
  • About Us
    • About BiR
    • BiR Scope
    • The Team
    • Guidelines for Research Collaboration
    • Feedback
    • Contact Us
    • Recent @ BiR
  • Subscription
  • Account
    • Visit Dashboard
    • Login
Font ResizerAa
Bioinformatics ReviewBioinformatics Review
Search
Have an existing account? Sign In
Follow US
Bioinformatics ProgrammingPython

sdftosmi.py: Convert multiple ligands/compounds in SDF format to SMILES.

Dr. Muniba Faiza
Last updated: November 19, 2022 11:58 pm
Dr. Muniba Faiza
Share
1 Min Read
sdftosmi.py: Convert multiple ligands/compounds in SDF format to SMILES?
SHARE

You can obtain SMILES of multiple compounds or ligands in an SDF file in one go. Here, we provide a simple Python script to do that.

Contents
AvailabilityUsage

Let’s say, we have a file in SDF format consisting of molecular structures called ‘ligands.sdf’. In order to perform some other operations, you can convert SDF to SMILES. It will not only make it easier to process but also reduce the size of the file, especially when you are dealing with millions of compounds.

Availability

The script is available on GitHub under the package ‘cheminformatics‘.

Usage

The Python script named sdftosmi.py will take the input (SDF file) filename as an argument and will provide output in the ‘smiles.txt‘ file. This file will contain SMILE corresponding to each compound in the SDF file. Therefore, you may have several duplicates because a SMILE can represent different molecules.

Run the script as shown below:

$ python3 sdftosmi.py ligands.sdf


 

TAGGED:canonical smilespython scriptrdkitsdfsdf to smilessmiles
Share This Article
Facebook Copy Link Print
ByDr. Muniba Faiza
Follow:
Dr. Muniba is a Bioinformatician based in New Delhi, India. She has completed her PhD in Bioinformatics from South China University of Technology, Guangzhou, China. She has cutting edge knowledge of bioinformatics tools, algorithms, and drug designing. When she is not reading she is found enjoying with the family. Know more about Muniba
Leave a Comment

Leave a Reply Cancel reply

You must be logged in to post a comment.

Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks
[Editorial] Is it ethical to change the order of authors’ names in a manuscript?
Editorial Opinion
Installing bbtools on Ubuntu
[Tutorial] Installing BBTools on Ubuntu (Linux).
Sequence Analysis Software Tools
wes_data_analysis Whole Exome Sequencing (WES) Data visualization Toolkit
wes_data_analysis: Whole Exome Sequencing (WES) Data visualization Toolkit
Bioinformatics Programming GitHub Python

You Might Also Like

How to get secondary structure of multiple PDB files using DSSP in Python?
Bioinformatics ProgrammingPython

How to get secondary structure of multiple PDB files using DSSP in Python?

December 5, 2022
SQL queries for complex information retrieval
Bioinformatics ProgrammingSQL

Nested SQL queries and aggregate functions for complex information retrieval from a database

October 1, 2020
How to obtain SMILES of ligands using PDB ligand IDs?
Bioinformatics ProgrammingCheminformaticsPython

How to obtain SMILES of ligands using PDB ligand IDs?

January 5, 2023
vs_analysis_compound.py: Python script to search for binding affinities based on compound names.
Bioinformatics ProgrammingGitHubPython

vs_analysis_compound.py: Python script to search for binding affinities based on compound names.

October 23, 2024
Copyright 2024 IQL Technologies
  • Journal
  • Customer Support
  • Contact Us
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Cookie Policy
  • Sitemap
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?

Not a member? Sign Up