How can we search specific amino acid on PyMol? - pymol

I would like to know if there is any way to click or any command that I can use to find a particular amino acid sequence in PyMol. Now it is quite time-consuming that I have to scroll over the length of protein to get the target site.
Please let me know if there is any button or command I can use for this purpose.
Thank you for your answer in advance.

The built-in command line.
The select command is there for that purpose. Use the selection algebra to restrict your search. Or you can also use selection macros.

Related

Azure Search highlights each search term included as part of phrase search

I have noticed that when performing a phrase search with double quotes, azure Search return appropriate search results but it highlights each individual word in the phrase.
For example when we do phrase search on “data scientist” it highlights “Data” and "Scientist" as well ideally it should have highlighted just “data scientist”.
Is this the default behavior of Azure Search and is there any way to alter it.
Is this the default behavior of Azure Search and is there any way to alter it.
Unfortunately there is no way to customize this behavior at the moment.
In Azure Search we use Lucene's Postings Highlighter. This highlighter ignores positions of terms that matched, that's why you see all phrase terms highlighted independently.
You could refer to the similar SO thread.
If you want to promote this feature to achieve you could go to feedback page and vote for it.

Creating your own LaTeX keyboard layout : 1 key = multiple caracters

I've been looking for the answer for quite some time now. This is a project I have but I can't manage to find a way to do it. The main idea would be to plug an additional keyboard on my computer that write multiple letters by hitting only one key. For example, instead of writing down a (when I hit the a key), it would write \textbf{ (for example).
I already manage to find the keyboard layout file under Linux and to switch the a and b keys, but I cannot find a way to print multiple characters.
I know it exist editors (like Texmaker or Kile) that have auto-completion, but I'm most of the time working in project in groups and therefore we use writelatex.com which does not propose auto-completion in it's free user pack ! Besides, I'm doing that for my personal interest.
Thanks a lot.
Have a look at autokey. It can assign phrases to hotkeys. It requires X11.
Another option might be to use a powerful text editor like vim or emacs which both have features like this, and then copy/paste the text into writelatex.com.
Some browsers have add-ons that allow you to edit the contents of a text field on a web page with a chosen text editor.
Edit: In Xorg you can use the X KeyBoard extension to e.g. change the meaning of individual keys. While you can configure the keyboard to generate (multibyte) unicode characters, you cannot assign arbitraty character strings to one key, to the best of my knowledge.

Creating custom search button in Notepad++

I am looking for a way to create custom buttons for Notepad++. So far I haven't been able to find solutions regarding this.
The buttons would be doing a regular expression search and highlight the search results as well. This would make it much easier for me to analyze error logs. This would eliminate the need of copy/pasting the long regex search queries.
I'm trying to use the Customize Toolbar plugin to accomplish this, but I couldn't find a thorough documentation of it and therefore having troubles.
Any help would be appreciated.
There you go:
Download "Customize Toolbar" from the "Plugin Manager"
Go to menu "Plugins" > "Customize Toolbar" and select "Custom Buttons"
Restart Notepad++
Now it's the important part, where you need to create the button's functionality. In your case you want to simply search and fortunately this can be implemented in a Macro. If you need something more complex that can't be recorded in a Macro, consider the use of "Python Script" plugin (which is really easy even with a minimal knowledge of Python) or writing your own plugin (which I guess is more difficult, I never tried to). So, let us assume that you recorded a Macro and you named it "test".
Find and open the file %APPDATA%\Notepad++\plugins\config\CustomizeToolbar.btn
Add the following new row in the file:
Macro,test,,,
That's all. You now have a new button in your toolbar that runs your macro.

Visual Studio hot key - switch Find context/location

Is there a hot key to toggle the search context/location in the "Find"/"Find in Files" commands (Ctr+F and Shift+Ctrl+F respectively )? I'm talking about the drop down that asks where to search for example Current Project, Current Document, Entire Solution etc.
"Find" is probably my most used feature since working with markup and CSS very often I can't just F12 to a selector definition or Shift+F12 to Find Usages, a regular text search is really the only option and I want to make this as efficient as possible.
Yes, I can tab to it but this takes 6-tabs and if I do it fast, often get the count wrong and prematurely execute bad searches; so it's not cutting it.
If there isn't a hotkey how can I set one? Ctrl + F3 would work well since F3 is "Find Next"
Thanks
I'm not sure if there is a command in Visual Studio that does what you are looking for.
If there is one, you can set the shortcut key in the Tools\Options menu (Environment\Keyboard).
In the screenshot, I'm searching for all the VS command that contain "find". Perhaps one of these is what you need.
Then move to the Press shortcut keys textbox and choose your desired key binding.

Design pattern for Excel like workbook editor

I've been assigned to a software development task for a excel like editor. Basically the editor is working on 2-dimensional data, should have the basic editing features such as add/remove rows/columns, edit cells, undo redo etc.
Please point me some good design patterns for this type of job, Thanks!
Rather than trying to figure out all design patterns for a project in advance, wait until you run into a specific design issue and think about patterns that address that issue.
That being said, the features you list here do call out the likelyhood that you'll be wanting to use the Command pattern, so that each possible operation (add column, add row, remove column, edit cell, etc.) is supported by a command object, and enabling undo/redo for your commands with additional help from the Memento pattern.
Depends on context of use.
You could check out some common usage guidelines for tables here: http://www.oracle.com/webfolder/ux/middleware/richclient/index.html?/webfolder/ux/middleware/richclient/guidelines5/tblInteraction.html
Very often users want an Excel-like UX for table data manipulation, including actual export to Excel. You can provide for edit, sort, add row, enlarge, etc. If the user is editing in a table try that guideline. It's intended for enterprise users, so customize accordingly.
HTH

Resources