-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Amber mask syntax for chainid selections? #209
Comments
It looks like UCSF Chimera does support chain selections in the syntax: I guess this comes down to the question of whether the ParmEd "very similar to" syntax includes chain support. |
From looking at mask.py, looks like maybe not yet, but perhaps it could be extended to include chain selections? |
Amber never traditionally stored chain information, so it was never supported in the mask syntax. Have a look at the selection/slicing syntax supported by Selecting a particular chain is pretty easy. Let's say you want chain A: import parmed as pmd
struct = pmd.load_file('something.pdb')
chainA = struct['A',:,:] # Select all residues in chain A and all atoms in that residue
chainAB = struct[['A', 'B'],:,:] Each will generate a new instance of |
You can also generate a |
@swails is there intention to just may be add a method named |
No.
No. If I introduced a syntax like that, I'd either do what MDTraj does (use
This is a possible extension, but not one that is important to me. |
@swails I've been thinking of expanding the Amber mask parser to be able to On Mon, Jun 22, 2015 at 10:58 AM, Jason Swails notifications@github.com
Daniel R. Roe, PhD |
+1 for this. I've been waiting. |
A couple ideas:
An example of 1:
An example of 2:
Another idea for flexibility is to say that chains are strings, and use the same "chain" syntax to denote molecules when the chain is given a numerical value. |
I'm not sure we even finished this discussion! I think either format works for us! |
This isn't the right place to talk about expanding the Amber mask syntax. There are (at least) 3 mask parsers that will need to be updated for this -- the one in cpptraj, the one in sander/pmemd, and the one in ParmEd. The one in sander/pmemd is probably less important, unless we want to start having sander/pmemd understand the optional CHAINID flag that ParmEd's addPDB flag can add. But that is almost certainly not going to happen (lots of work for minimal gain). But this will require a discussion/decision from the Amber dev team. I'll bring it up at the developer's meeting. But I'm closing this here. |
Is there some special syntax for Amber mask selection of specific chain IDs?
The text was updated successfully, but these errors were encountered: