public static PolymerNotation getInverse ( PolymerNotation polymer ) throws RNAUtilsException , org . helm . notation2 . exception . NotationException , ChemistryException , NucleotideLoadingException { checkRNA ( polymer ) ; PolymerNotation inverse ; try { inverse = SequenceConverter . readRNA ( generateInverse ( polymer ) . toString ( ) ) . getListOfPolymers ( ) . get ( 0 ) ; inverse = new PolymerNotation ( inverse . getPolymerID ( ) , inverse . getPolymerElements ( ) , "Inverse to " + polymer . getPolymerID ( ) . getId ( ) ) ; return inverse ; } catch ( NotationException | FastaFormatException | HELM2HandledException e ) { e . printStackTrace ( ) ; throw new RNAUtilsException ( "The inverse strand can not be built" ) ; } }
method to get the polymer with the inverse sequence of the current polymer