private static boolean hasModification ( MonomerNotationUnitRNA monomerNotation ) { if ( monomerNotation . getUnit ( ) . contains ( "[" ) || monomerNotation . getUnit ( ) . contains ( "(X)" ) || monomerNotation . getUnit ( ) . endsWith ( ")" ) ) { return true ; } return false ; }
method to check if the MonomerNotationUnitRNA contains modification