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
SoftwareTools

How to save high resolution images in Pymol using command line?

Tariq Abdullah
Last updated: January 7, 2022 9:58 pm
Tariq Abdullah
Share
2 Min Read
How to save high resolution images in Pymol using command line?
SHARE

Previously, we have provided a tutorial on saving good-quality images using Pymol GUI. In this article, we are going to save high-resolution images using the Pymol commands.

Contents
  • Opening an input file
  • Setting display
  • Saving image
    • Saving image with transparent background
    • Saving image with background color
    • References

Open Pymol by typing Pymol in a terminal or by double-clicking the shortcut or by launching the Pymol app. Now follow the steps explained below.

Opening an input file

Go to File --> Open --> Select an input PDB file.

Setting display

You can set some parameters such as background color, view, and so on. Details are provided in the previous article.

Saving image

You can also ‘draw‘ an image but the resolution will not be high. Therefore, we will use the ‘ray‘ command. But if you want to draw an image anyway then use the following command.

> draw 1600

1600 is the dimension of image, you can set it to any number.

Saving image with transparent background

> set ray_opaque_background, 0

> ray

> png /path/to/folder/ex.png, dpi=1000

For example, you want to save this image in ‘Downloads‘, then

> png /home/user/Downloads/ex.png, dpi=1000

If you are saving on Windows, then remember to use ‘\’ as shown below

> png path\to\folder\ex.png, dpi=1000

Saving image with background color

You can set the background color either by GUI (go to Display –> Background –> White) or by using the following command.

> bg_color white

Define any color in place of ‘white’ in the above command.

Now, let’s save the image with background color.

> set ray_opaque_background, 1

> ray

> png /path/to/folder/ex.png, dpi=1000


References

  1. The PyMOL Molecular Graphics System, Version 1.2r3pre, Schrödinger, LLC.
TAGGED:dpihigh resolutionPymolsave images
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.

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

Autodock Vina: Uses & Applications
DockingSoftwareTools

Autodock Vina: Uses & Applications

May 12, 2022
hmmer
Sequence AnalysisSoftwareTools

HMMER- Uses & Applications

November 23, 2021
video tutorial: Pymol basics
Protein VisualizationSoftwareToolsVideo Tutorial

Video Tutorial: Basic Functions of PyMol

November 23, 2024
installing pymol on mac os
SoftwareTools

[Tutorial] Installing Pymol on Mac OS.

May 12, 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