Ligand out of the box in command-line interface with exact co-ordinates from GUI - user-interface

We tried to dock receptor-ligand complexes using Autodock 4.2 GUI and command line automated script ADT but even with exact co-ordinates in automation, ligand is shown to be much away from receptor.

Related

Python - How to open an application like google given a pixel length and position on the screen

So I already know that there is the open -a <application> in bash which you can run to open a window.
However, my main question is how to open a window or application in a specific part of the computer screen (computer is MacOS) and a specific length of x and y pixels. I think it would be cool to run a python program or bash script that automatically opens different apps on parts of my screen.
I think you could experiment with the PyGetWindow library of python to manipulate active windows (for manipulating size and position) and with the subprocess library to call the executable files (at least on windows that's how it works).

Manipulate OS X windows with script

Ok, so I'm trying to make my setup super simple by creating a script that I can run in the morning that will launch all the applications that I use in the day and lay them out across my 'spaces' how I like them.
This was going ok and I was easily able to have a bash script launch the apps and then call to an AppleScript to move and resize their windows.
However, I like to use the new El Capitan feature and have some of my spaces as 'split view' spaces. E.g. Full screen Xcode/Terminal split. I can't seem to find a way to control this via a script.
Tl;dr Does anyone know how to get a bash script/AppleScript to put two applications into 'split view' on OS X El Capitan?
Looks like that first bit about launching and full-screening apps can be done with a fairly simple script, though it requires enabling Accessibility permissions first. It, however, won't do the split-screen bit.
I kept looking though and Better Touch Tool (pay what you want, $4.49 minimum) seems to get the closest of anything I could find, allowing you to trigger Full Screen mode and bring up the split screen Expose selector in the same action. It seems to be doing this by emulating a long mouse down on the full screen window control button (the green one in the top left). What you get is this:
I've been playing around with this and it seems there might be a (so far seemingly very un-intgelligeble, though reliable) way to control the order of full screen apps and trigger an app into split screen mode in a situation where that previously full-screened app is the only option available for splitting the screen.
For example, given the following, accomplished by launching iA Writer into full screen (space 2) via ⌘+^+F:
Focusing Safari and using Better Touch Tool to trigger split screen mode results in:
... Only one split screen app, even though there's several apps still running.
From this position you could use the "move to position" action in BTT and trigger a click on the only available app— I would think this could theoretically accomplish what you want, although it's convoluted and a bit suspect.
All that being said, it seems like the only way to get two apps launched into split screen mode without touching the mouse, since this could all be a BTT workflow you trigger from an Automator script. Digging further, you might be able to learn how BTT accomplishes their actions and write a program that does this for you, but we're already way beyond bash or simple cli scripting.
I personally just use Spectacle and tmux to zoom my windows around, though I admit, automated split screen would be somewhere close to live changing.

Activate Display Mirroring in OS X through Applescript?

Is it possible for someone to AppleScript a way to automate Display Mirroring?
If you're looking for Applescript so you can do it programmatically, I think https://github.com/fcanas/mirror-displays would be a solution. The project has two applications, one that is a command line tool to enable/disable/toggle/query mirror state, the other appears to be (I haven't tried it) a more traditional .app that can be added to the Dock and used to toggle mirroring.

Show text in the center of terminal screen in golang

I am playing with golang and want to create a simple terminal tool (on mac, but it should work on linux too). I need to display character "x" in the center of the terminal window. How can I detect width and height of terminal window and detect its changes?
A terminal package exists in the Go crypto repository:
In particular, check out the GetSize function
A lightweight alternative to the usual ncurses option, is termbox-go. This is a pure-go implementation of termbox.
It offers a simple API to get some 'graphical' stuff done in a terminal and is pretty decent as far as support for different terminal implementations goes.

The way how run program from shell script and specify its positon on screen

is in shell (Mac OS X Lion) a way how run program on specify position on screen?
I want to run two programs and specify their position on screen so one window will be next to another and they will be centered on screen.
You could try to hack something together using AppleScript. This link shows you how to set the window geometry of a certain application. The problem might be in actually talking to the processes that you just started. This SO question deals a bit with using the process id to talk to an app using AppleScript.

Resources