This module defines miscellaneous utility functions.
Return a structured string for a given list of integers.
Parameters: |
|
---|
In [1]: from prody.utilities import rangeString
In [2]: lint = [1, 2, 3, 4, 10, 15, 16, 17]
In [3]: rangeString(lint)
Out[3]: '1 to 4 10 15 to 17'
In [4]: rangeString(lint, sep=',', rng='-')
Out[4]: '1-4,10,15-17'
In [5]: rangeString(lint, ',', ':', exc=True)
Out[5]: '1:5,10,15:18'
Replace non alpha numeric characters with alt. If trim is True remove preceding and trailing arg characters. If single is True, contain only a single joining alt character.
Return one of scipy.linalg or numpy.linalg.
Returns a dictionary built from the children of element, which must be a xml.etree.ElementTree.Element instance. Keys of the dictionary are tag of children without the prefix, or namespace. Values depend on the content of the child. If a child does not have any children, its text attribute is the value. If a child has children, then the child is the value.