public static boolean areAntiparallel ( PolymerNotation polymerOne , PolymerNotation polymerTwo ) throws RNAUtilsException , HELM2HandledException , ChemistryException , NucleotideLoadingException { checkRNA ( polymerOne ) ; checkRNA ( polymerTwo ) ; PolymerNotation antiparallel = getAntiparallel ( polymerOne ) ; String sequenceOne = FastaFormat . generateFastaFromRNA ( MethodsMonomerUtils . getListOfHandledMonomers ( antiparallel . getListMonomers ( ) ) ) ; String sequenceTwo = FastaFormat . generateFastaFromRNA ( MethodsMonomerUtils . getListOfHandledMonomers ( polymerTwo . getListMonomers ( ) ) ) ; return sequenceOne . equals ( sequenceTwo ) ; }
method to check if two given polymers are complement to each other