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
ToolsVirtual Screening

Converting smiles into 3D structures using openbabel.

Tariq Abdullah
Last updated: July 28, 2020 12:05 pm
Tariq Abdullah
Share
3 Min Read
openbabel
SHARE

Openbabel is used to inter-convert many file formats [1]. It is available for Linux, Windows, and MAC operating systems. In this article, we will learn how to generate 3D structures of compounds present in the form of smiles on Ubuntu as well as on Windows.

Contents
On UbuntuOn WindowsReferences

On Ubuntu

You can download the openbabel software on Ubuntu from the repository as shown below:

$ sudo apt-get install openbabel.

Save your downloaded smiles into smiles format (.smi), for example, ‘smiles.smi’. This is our input file. To generate 3D structures of these smiles into SDF format, type the following commands:

$ obabel -i smi smiles.smi -o sdf -O out.sdf -m -h --gen3d

Here, -m is used to split the output into multiple files. It is used in batch conversion, where you have multiple smiles in a single file (as described in this article) and you want individual files as output. -h adds hydrogens.

--gen3d is used to generate 3D coordinates for the structure.

Similarly, they can be converted into pdb as well as shown below:

$ obabel -i smi smiles.smi -o pdb -O out.pdb -m -h --gen3d

You can also convert files other than smiles. For example, pdb, mol, SDF, and so on. Just change the input-ID and input filename along with the output-ID and output filename according to your requirements.

For more options, type $ obabel -H.

On Windows

On Windows, you can download the binary file from here. You can use the GUI of openbabel as follows.

  1. Open the openbabel after installation.
  2. Upload your input file and specify the input format from the dropdown.
  3. Select options appropriate to your needs such as ‘Generate 3d’, ‘Output multiple conformers separately’, and so on.
  4. Select the output format and output file location.
  5. Click ‘Convert’.

You can input smiles or any other format using the editor given on the left side of GUI and obtain output without saving into any files.


References

  1. O’Boyle, N. M., Banck, M., James, C. A., Morley, C., Vandermeersch, T., & Hutchison, G. R. (2011). Open Babel: An open chemical toolbox. Journal of cheminformatics, 3(1), 33.

 

TAGGED:mol2openbabelpdbsdfsmiles conversionvirtual screening
Share This Article
Facebook Copy Link Print
ByTariq Abdullah
Tariq is founder of Bioinformatics Review and Lead Developer at IQL Technologies. His areas of expertise include algorithm design, phylogenetics, MicroArray, Plant Systematics, and genome data analysis. If you have questions, reach out to him via his homepage.
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

AlgorithmsTools

WebFEATURE : Tool to identify and visualize Functional Sites in Macromolecules

May 20, 2020
DockingSoftwareToolsVideo Tutorial

Video tutorial: How to install Autodock Vina on Ubuntu?

November 23, 2024
[Tutorial] How to install Autodock Vina on MacOS?
SoftwareTools

[Tutorial] How to install Autodock Vina on Mac OS?

March 12, 2023
Sequence AnalysisSoftwareTools

A practical guide to selection analyses of coding sequence datasets and its intricacies

May 20, 2020
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