public static String getNucleotideNaturalAnalogSequenceFromNotation ( HELM2Notation helm2Notation ) throws NotationException , HELM2HandledException , ChemistryException { List < PolymerNotation > polymers = helm2Notation . getListOfPolymers ( ) ; StringBuffer sb = new StringBuffer ( ) ; for ( PolymerNotation polymer : polymers ) { try { sb . append ( RNAUtils . getNaturalAnalogSequence ( polymer ) + " " ) ; } catch ( RNAUtilsException e ) { e . printStackTrace ( ) ; throw new NotationException ( "Input complex notation contains non-nucleid acid polymer" ) ; } } sb . setLength ( sb . length ( ) - 1 ) ; return sb . toString ( ) ; }
method to generate for all rna polymers the natural analogue sequence