I'm using Pymol to measure the distance between two atoms of a nucleic acid. I have a pdb. file from molecular dynamics calculation. When I open that file in pymol I have multiple states of the molecule. I want to measure the distance between two specific atoms and for each state, and export the distances to a file. Then I can visualise the distribution in distance. Can anyone please suggest a method to do this using pymol.
measure distance between two atoms, in each state, in pymol
472 Views Asked by gwarr At
1
There are 1 best solutions below
Related Questions in PYTHON
- new thread blocks main thread
- Extracting viewCount & SubscriberCount from YouTube API V3 for a given channel, where channelID does not equal userID
- Display images on Django Template Site
- Difference between list() and dict() with generators
- How can I serialize a numpy array while preserving matrix dimensions?
- Protractor did not run properly when using browser.wait, msg: "Wait timed out after XXXms"
- Why is my program adding int as string (4+7 = 47)?
- store numpy array in mysql
- how to omit the less frequent words from a dictionary in python?
- Update a text file with ( new words+ \n ) after the words is appended into a list
- python how to write list of lists to file
- Removing URL features from tokens in NLTK
- Optimizing for Social Leaderboards
- Python : Get size of string in bytes
- What is the code of the sorted function?
Related Questions in BIOINFORMATICS
- Delete first line of all files in a folder (on ubuntu)
- With every loop iteration in Python use resulting file for subprocess call
- What might explain the [blastall] ERROR: Arguments must start with '-' error?
- In bioinformatics, what is a singleton?
- Coding genotypes from nucleotides to 0/1/2 in R (or Python)
- How to extract short sequence based on step size?
- Find Substring of Trie Keys
- Identify conserved sequences in lists of integers
- How to extract start and end sites based on capital letter in a sequence?
- getting records which are different from two fastq files
- choosing reads with Hamming distance zero
- Bash: Converting 4 columns of text interleaved lines (tab-delimited columns to FASTQ file)
- Unable to read an SBML file in SBMLR
- How to extract coordinates in P-match result?
- Repeated ordered sequence search algorithm
Related Questions in PYMOL
- Running Pymol console commands through Bash script
- Brew error "No such file or directory - /usr/local/Cellar/pango/1.46.1" on running "brew install brewsci/bio/pymol"
- How do I pass over an error in pymol/python?
- R package Bio3D tutorial reproducing
- Writing Pymol internal console commands and output in txt in PymolPy3
- unnatural amino acid insert to the protein
- Saving/ exporting a selection of residues from ChimeraX to a separate file (on Windows)?
- How to extract a cartesian file (.xyz format) from a Pymol molecule?
- miniconda UnsatisfiableError on Python version when installing pymol-open-source in Amazon Linux
- Create shortcut to file in native python
- Error encountered when using Autodock/Vina Plugin in PyMOL
- Biopython SASA looks wrong and disagrees with and Pymol SASA
- Layers in pyMOL or making certain amino acids "pop out"
- Move/turn object in PyMOL
- Only call function if PyMOL running
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
my attempt , code using
1m82.pdbas example molecule anddistance("dist_1m82" , "/1m82/A/A/U`22/P" , "/1m82/A/A/U`22/N1" , mode = 0)as distance command (you could useget_distanceif you don't want/need to create a distance object:output:
picture , distances are drawn as light yellow dashed lines :
As per the
part of your question, I need to create a
.pyfile like:runnable.py:then add at the end of my first script these lines :
of course
runnable.pyis in the same folder of my main scriptthis will get you an extra window a matplotlib one like this one:
where, this need to be checked you'll find the distribution of the calculated distance.
Unfortunately you get an Error too, better a warning like:
but at least it'll run fast.
Trying to put the
runnable.pyinside main script or reverting to use :from matplotlib.backends.backend_qt5agg import FigureCanvasQTAggwill result in:
with the window showinh the right histogram (the one above), at this point a
pymolwindow very slow to load and sending out the message above tens of time.I guess this second part needs more time to be answered.
Addendum
redefining
runnable.pyasrunnable_2.pyso that my script carries:and
runnable_2.py, copied and adapted from https://www.pythonguis.com/tutorials/plotting-matplotlib/is:I get the histogram depicted above (now being a PyMOL window , not a matplotlib one) without any sort of error.
While using
from pymol.Qt import QtWidgets, QtCoreand therunnable_2.pyQWidgets inside the main script (so not started bycmd.do('run, ...)`keeps being slow to present the histogram and carries the:
I guess I am missing something like this post for pymol using PyQt:
Create a new Tk window/thread in the PyMOL session and output matplotlib graph on it