PyMOL get the name of selected protein - bioinformatics

So I'm using a PyMOL script to find the surface residues on a protein (found at http://www.pymolwiki.org/index.php/FindSurfaceResidues). And I need it to write a text file containing the name of the protein that is currently selected in the PyMOL session. As far as I've searched, I can't find a PyMOL command to get the name of the selected protein. Does anyone with more experience with PyMOL have an idea on how to accomplish this?
Thanks

I think you are looking for the get_names function.

Related

How to bind a ligand to a protein in PyMOL?

I currently have a protein which is the focus of my study (.pse file) and several ligands (.pdb files) that I wish to bind to this protein to view where and how they bind. However, there are no biological sequences for the given molecules, so I am wondering what command I need to bind the ligand molecules to the main protein 1 at a time.
When I open the ligand files from the main protein file, I can see the ligand molecules but does this show an accurate representation of where they are actually binding?
Thank you!
For those of you who are wondering, you simply need to open your protein file (from MOE) within PyMOL and it will bind correctly, as binding information is stored in the file from MOE.

Picture processing program, art generator

I've found a really amazing wallpaper and later found out that it was a modified version of the original picture (which is an album cover).
Is anyone aware of the program or script being used in order to produce such kind of picture given any input?
Original picture:
Processed picture:
Zoom to the processed picture to see the style:
Is anyone aware of the program or script being used in order to produce such kind of picture given any input?
I am aware of one computer vision area called "Style transfer" using deep neural networks. There is this famous paper on this topic.
A few GitHub repos:
https://github.com/lengstrom/fast-style-transfer
https://github.com/fzliu/style-transfer
https://github.com/anishathalye/neural-style
i would say it can be done eadily by script. I am building an art generator called the BoredArt Club and using PHP GDlib for image manip. But if I wanted to use imageMagicK i could do more and it has a windows commandline option.
as for online tools... look at LunaPic and imgonline (UA i think)... they have masking tools and textures, etc fun stuff
I have a bash shell script that uses ImageMagick that will do something similar. See my script, weave
Here is an example:
Input:
Processed:

Read a filename while running and insert it (bash)

I'm new to bash so I need a lot of help for probably a little thing. I'll try to explain, what I want to do or where I need help. (Excuse my english if I make mistakes)
There is a Script, which creates a numbers of .gv Files. In those .gv Files are some commands to make a graph. With "dot" I'm gonna create a picture with that.
My code now is
dot -Tsvg *.gv -o ????.svg
I need help with those ???? - In the *.gv are all .gv listed (you know what I mean I guess...) anyway, the ????'s should have the same name as the file,but there are more than one file so I don't know how to code that. It just should take the Filename while it's running.
The -O option generates names for you, based on the input name and the output format.

automatic copy paste from Browser to Microsoft Word

I want to copy some specific texts from internet browser(chrome) and want to paste them in proper fields of Microsoft word.. Let me explain what I want exactly... I have this kind of page structure in chrome-
Name-Deepak,Raju,Jhon,Robert.......
Salary-200,254,673,953...
Phone-987535747,856889479,64688539,357954228....
Etc..
I have a table in MS word as-
Sl. Phone. Name. Salary.
Can I make a auto copy paste program to make my table-
Sl. Phone. Name. Salary
1. 987535747. Deepak. 200
2. .......
Like this? Suggest me the best suitable platform to compile this.. Its best for me, if a bat file can do the job.. I know bit odd question.. And I should not ask the entire program,rather a section of it..Bt still....... actually I don't know from where to start..
Rather than use a wget which will only retrieve the document, what you want is a way of parsing the results of the web content and writing into an output file.
After searching the web, I could only come across
lynx which
is a text based browser and you can parse the -dump parameter to
output the text into file which you can then write a script to do
the final bit.
Also take a look at this
link
for more info on switches you can use most especially if the desired
text has links in it (-nolist)
elinks which is an advanced text based browser

What are macid filetypes in excel vba

What are all the possible MacID("filetype")
I need the one specifically for CSV but i couldn't find a list anywhere online surprisingly.
Just a little aside for this thread.
Yes there are few places to find details of the MacIDs, but beware.
If a file is create on a PC it may not have its MacID set correctly, or at all for that matter.
I am working with Excel files created on both platforms. The XLSX ID is correct if the file is made on Mac but is empty if made on PC.
I have found the best solution is to ignore both forms of wildcards for the two platforms and instead just load all files and use the extension .xlsx
Hope this helps someone
Bob J.
First run:
mdls "FileName"
Find the TypeCode in the Output:
kMDItemFSTypeCode = "TEXT"
You can use:
Dir(Path,MacID("TEXT"))

Resources