public List < FeatureInterface < AbstractSequence < C > , C > > getFeatures ( int bioSequencePosition ) { ArrayList < FeatureInterface < AbstractSequence < C > , C > > featureHits = new ArrayList < FeatureInterface < AbstractSequence < C > , C > > ( ) ; if ( features != null ) { for ( FeatureInterface < AbstractSequence < C > , C > feature : features ) { if ( bioSequencePosition >= feature . getLocations ( ) . getStart ( ) . getPosition ( ) && bioSequencePosition <= feature . getLocations ( ) . getEnd ( ) . getPosition ( ) ) { featureHits . add ( feature ) ; } } } return featureHits ; }
Return features at a sequence position