Miguel wrote:
As an example, let us assume that we have a chain with the following 10
residue sequence numbers.
1 2 3 4 5 1 2 3 4 5
Q: If I say 'select 1-5' should all 10 residues be selected?
Generally I would expect all 10 residues to get selected.
Q: What do you think about using similar mechanisms to solve this
problem like that used for unix/perl "regular expressions" with the
"global" and the "non-greedy" distinctions?
Using your example "1 2 3 4 5 1 2 3 4 5" you would get these regular
expressions:
/1.*5/ -> all 10 residues selected (greedy)
/1.*?5/ -> only the first 5 residues selected (non-greedy)
> Q: If I say 'select 2-3' should 4 residues be selected?
>
This is even more complicated, because you have 3 alternatives:
2 or 4 or 7 residues
It raises the additional question if the range should be considered as
local (2,3 and 2,3) or as global (2,3,4,5,1,2,3).
As a default I would expect it to be considered as local and greedy.
> Q: If I say 'select 3-2' how many residues get selected?
>
The RasMol documentation for 'select' is not clear as to whether or not
the order of the the order of the residue numbers in the range must be the
same order that the residues are found in the file.
Q: Do you think that Jmol should require that the order of the range
expression be the same as in the pdb file?
Example:
1 2 3 4 5
If I say 'select 2-3' then two residues should be selected.
Q: What happens if I say 'select 3-2'?
Only if the range would be considered as local, the order would be
independent (not in this short example of course).
If the local/global and greedy/non-greedy behaviour is clearly defined I
think a reverse range notation would not cause additional problems.
Regards,
Rolf
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jmol-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jmol-users