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

Dr. Muniba Faiza
2 Min Read

Previously, we have provided the vs_analysis.py script to analyze virtual screening (VS) results obtained from Autodock Vina. In this article, we have provided another script to search for binding affinity associated with a compound.

Users can easily search for specific binding affinities by providing a compound name given that the same name is present in the log filename.

Usage

Download the file from our GitHub account 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_compound.py <compound-name>

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

$ python vs_analysis.py <compound-name>

Example

For example, if you have hundreds of log files and one is named log_naphthalene.txt, then you can provide naphthalene as a compound name. The script will display its binding affinity. You can run it as shown below:

$ python3 vs_analysis_compound.py naphthalene

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 required to name your log files along with the name of a compound.

How to cite:

Faiza M., (2022). vs_analysis_compound.py: Python script to search for binding affinities based on compound names. 8(9):page 8-12 The article is available at https://bioinformaticsreview.com/20220917/vs_analysis_compound-py-python-script-to-search-for-binding-affinities-based-on-compound-names/
Faiza, M., (2024). VS_Analysis: A Python package to perform post-virtual screening analysis, 10(1): page 8-12. https://bioinformaticsreview.com/20240110/vs_analysis-a-python-package-to-perform-post-virtual-screening-analysis/
Share This Article
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