Package ffx.utilities
Class Hybrid36
java.lang.Object
ffx.utilities.Hybrid36
Java port of the hy36encode() and hy36decode() functions in the hybrid_36.py Python
prototype/reference implementation.
- Since:
- 1.0
- Author:
- Michael J. Schnieders
Derived from code by: Ralf W. Grosse-Kunstleve, Vincent B. Chen, Jeff J. Headd, Sep 2007.
- See Also:
-
Method Summary
-
Method Details
-
decode
Hybrid-36 decoder: converts string s to integer result.- Parameters:
width
- must be 4 (e.g. for residue sequence numbers) or 5 (e.g. for atom serial numbers)s
- theString
to be converted.- Returns:
- Returns the conversion result.
-
encode
Hybrid-36 encoder: converts integer value to string result.- Parameters:
width
- must be 4 (e.g. for residue sequence numbers) or 5 (e.g. for atom serial numbers).value
- the integer value to be converted.- Returns:
- a
String
String of size width.
-