public final static List < PolymerNotation > getRNAPolymers ( List < PolymerNotation > polymers ) { List < PolymerNotation > rnaPolymers = new ArrayList < PolymerNotation > ( ) ; for ( PolymerNotation polymer : polymers ) { if ( polymer . getPolymerID ( ) instanceof RNAEntity ) { rnaPolymers . add ( polymer ) ; } } return rnaPolymers ; }
method to get all rna polymers given a List of PolymerNotation objects