# Selection¶

These functions are intended to be imported to tools to give a unified framework for making selections.

rna_tools.tools.extra_functions.select_fragment.select_pdb_fragment(txt, separator='-', splitting='[:\\+]', verbose=False)[source]

Take txt such as A:1-31+B:1-11 and parse into:

OrderedDict([('A', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31]),
('B', [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11])])


Warning

e.g. for A:1-31, resi 31 is included

rna_tools.tools.extra_functions.select_fragment.select_pdb_fragment_pymol_style(txt)[source]

Take txt such as A/10-15/P and parse into:

A/57/O2' -> ['A', ['57'], "O2'"]


If you want to combine a few subselections, please use ,:

--model_ignore_selection "A/57/O2',A/58/O2'"


Warning

e.g. for A:1-31, resi 31 is included