Opened 9 years ago

Closed 6 years ago

#528 closed enhancement (fixed)

Atom specifier wildcard characters * and ? in chain name

Reported by: Tom Goddard Owned by: Conrad Huang
Priority: minor Milestone:
Component: Command Line Version:
Keywords: Cc:
Blocked By: Blocking:
Notify when closed: Platform: all
Project: ChimeraX

Description

I'd like to be able to use wildcard characters * and ? in chain names in atom specs.

My current problem is PDB entry 4v7s that has two copies of a ribosome, 106 chains, all with 2 letter chain names. The second copy is 58 chains /c?,d?. I want to delete this second copy but don't seem to have any way to do it other than type 58 two letter chain names in because I don't have wildcard characters.

Change History (4)

comment:1 by Conrad Huang, 9 years ago

Chain specs allow ranges, so you can:

del /ca-cz,da-dz

That chain id matching is strictly ASCII alphabetical, so note that:

del /ca-dz

actually deletes more chains. In particular, chains D0-D3 are deleted.

Obviously, wildcard characters and regular expressions are more flexible, but are they really used that often for it to be worth implementing?

in reply to:  2 ; comment:2 by goddard@…, 9 years ago

Oops!  Didn’t think of ranges!  That solves my problem.  Maybe change the ticket to low priority until a need arises for wild cards.

comment:3 by Conrad Huang, 9 years ago

Priority: majorminor

Will implement when a strong use case comes up.

comment:4 by Conrad Huang, 6 years ago

Resolution: fixed
Status: assignedclosed

This was apparently implemented at some point.

Note: See TracTickets for help on using tickets.