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
  • Availability
  • Usage

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.

ai tools vs traditional tools in bioinformatics
AI Tools vs Traditional Tools in Bioinformatics- Which one to select?
Algorithms Artificial Intelligence Machine Learning Software Tools
AI vs Physics in Molecular Docking
AI vs Physics in Molecular Docking: Towards Faster and More Accurate Pose Prediction
Artificial Intelligence Drug Discovery Machine Learning
10 years of Bioinformatics Review: From a Blog to a Bioinformatics Knowledge Hub!
Editorial
Starting in Bioinformatics? Do This First!
Starting in Bioinformatics? Do This First!
Tips & Tricks

You Might Also Like

How to make swarm boxplot?
Bioinformatics ProgrammingGitHubPython

How to make swarm boxplot?

February 23, 2023
How to obtain ligand structures in PDB format from PDB ligand IDs?
Bioinformatics ProgrammingCheminformaticsPython

How to obtain ligand structures in PDB format from PDB ligand IDs?

February 18, 2023
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
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
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