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

How to sort binding affinities based on a cutoff using vs_analysis.py script?

Dr. Muniba Faiza
Last updated: January 10, 2024 3:06 pm
Dr. Muniba Faiza
Share
3 Min Read
How to sort binding affinities based on a cutoff using vs_analysis.py script?
SHARE

Previously, we have provided a Python script (vs_analysis.py) to analyze the virtual screening (VS) results of Autodock Vina. Now, we have updated this script to sort binding affinities based on user inputted cutoff value.

Contents
UsageExample (with a threshold):AvailabilityNOTE:

As explained in the previous article, users can easily get the binding affinities of top poses of a desired number of compounds after VS using Vina. This updated script also allows sorting log files based on a binding affinity cutoff provided by the user.

This is an interactive Python script, so users can choose whether they want to sort on the basis of a binding affinity threshold or just get the desired number of compounds having the lowest binding affinities.

Usage

Download the file from our GitHub account (details are given in the following section) and save it in the directory where you have kept all log files. If you will save it elsewhere, don’t forget to provide the full path to this file. It will run on Linux as well as on Windows and macOS.

Run it using Python 3.x.

$ python3 vs_analysis.py

OR if Python 3.x is in your path then just type the following:

$ python vs_analysis.py

If you have chosen to sort based on a cutoff value, then the output will be provided in an output file named ‘ba_output.txt’. Otherwise, the output will be in a file named ‘output.txt’. These files will be consisting of the filename and the corresponding binding affinity in front.

Example (with a threshold):

You have the same number of log files in your directory and you want to fetch the results/poses sorted with the lowest binding affinities based on a threshold. Then run the above command and while prompted, type ‘y’ or ‘yes’ and then enter a cutoff value, for instance, enter -9. It will provide the compounds having binding affinity higher than -9 in the ‘ba_output.txt’ file.

To sort without a cutoff value, read this article.

Availability

The script is freely available to download from our GitHub account.


NOTE:

  • This script screens for the log files containing the word ‘log’ in their filenames, e.g., “log_compound1.txt” or “log_methanol.txt”
  • It is recommended to name your log files along with the name of a compound. That would make the results more presentable and easy to understand. For example, you can name them as “log_naphthalene.txt” or so.

 

TAGGED:Autodock Vinabinding affinity cutoffpython scriptvirtual screeningvirtual screening analysisvs_analysis
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

Bioinformatics ProgrammingGitHubMD SimulationPythonSoftwareTools

Free_Energy_Landscape-MD: Python package to create Free Energy Landscape using PCA from GROMACS.

March 13, 2025
basic sql queries
Bioinformatics Programming

Basic SQL Queries to Create and Retrieve Information from a Database

September 19, 2020
[Tutorial] How to install Autodock Vina on MacOS?
SoftwareTools

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

March 12, 2023
Bioinformatics ProgrammingPerl

How to concatenate FASTA sequences using Perl?

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