Skip to content

Commit a5637d2

Browse files
committed
update documentation
1 parent 6fbdd5a commit a5637d2

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

docs/src/documentation.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,21 @@ julia> collectresidues(struc, sel"acidic")
281281
Residue 63:H with name GLU, 9 atoms
282282
```
283283

284+
Also, the selection syntax supports parenthesis and repeating the possible property
285+
values as a shortcut for multiple `or` clauses:
286+
287+
```julia-repl
288+
julia> collectatoms(struc, sel"resname ARG GLU and (element C N)")
289+
1320-element Vector{AbstractAtom}:
290+
Atom N with serial 9, coordinates [19.33, 32.429, -28.593]
291+
Atom CA with serial 10, coordinates [20.769, 32.605, -28.801]
292+
Atom C with serial 11, coordinates [21.503, 32.581, -27.478]
293+
294+
Atom CZ with serial 11676, coordinates [5.525, 1.346, -44.697]
295+
Atom NH1 with serial 11677, coordinates [4.626, 1.502, -45.668]
296+
Atom NH2 with serial 11678, coordinates [5.206, 0.618, -43.643]
297+
```
298+
284299
The operators currently supported are:
285300

286301
| Operators | Acts on |

0 commit comments

Comments
 (0)