private static StringBuilder generateInverse ( PolymerNotation polymer ) throws HELM2HandledException , RNAUtilsException , org . helm . notation2 . exception . NotationException , ChemistryException { initComplementMap ( ) ; String sequence = getNaturalAnalogSequence ( polymer ) ; StringBuilder sb = new StringBuilder ( sequence ) ; return sb . reverse ( ) ; }
method to generate the inverse sequence of the given polymer